question

Theresa B avatar image
0 Likes"
Theresa B asked Felix Möhlmann commented

Exception Caught in ObjectFunction250__(etc.)

Hi, again,

I've been getting this error and I'm not sure how to debug it and find the cause of the issue.

I started with this model InputOutputDifference.fsm, versions of which I have posted before, and it spits out this error message:

1669084822020.png

Thinking the issue might be related to the trigger that sends flowItems downstream of FloorStorage2, I tried replacing the elements downstream with something simpler and deleted the Source2. execeptionCaughtInObjectFunction250.fsm

This model produced the same error (?) but apparently caused by Transporter1 in the Create Task Sequence activity of the Picking Process Flow:

1669083883805.png

I've looked through older questions about similar errors but none of them have conclusive answers that I understand.

Are these two errors the same, given the matching ObjectFunction250 code? How can I diagnose the issue given the information in the console?

Thanks in advance!

FlexSim 22.2.0
exception errorobjectfunctiondiagnostics
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Felix Möhlmann commented

You repeatedly move items from FloorStorage2 back to Processor2 because in the Process Flow you neither change the item reference nor do you decrement the "NumberStacked" label, so the tokens loop forever.

1669102796801.png (Item reference never changes)

1669102844830.png

(Always returns "False")

When an item enters FloorStorage2 an event is created that will fire when the dwell time elapses. At that point the item will likely not be in the storage anymore, which leads to the error message.


The cause for the error in your second model is that no slot could be assigned to the item and thus the task sequence is invalid.


1669102796801.png (13.9 KiB)
1669102844830.png (12.4 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.