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.

Theresa B avatar image Theresa B commented ·

Thanks, Felix! A fresh set of eyes when I've been looking at a model for too long is a world of help.

I guess the diagnostic method here is just to look at the parts of the model that the named objects are related to.

Was there anything in the error messages that hinted that the error was in the Process Flow? Is there any way of looking up the meaning of ObjectFunction250?

Fixed model for posterity: InputOutputDifference.fsm

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Theresa B commented ·
I don't believe there is a way to look up what "ObjectFunction250" refers to exactly. The hint I used was that it relates to some timed event (..."_OnTimerEvent"). These mostly occur due to items that are involved in pending events having been moved, so I looked if this happens in your model somewhere involving the FloorStorage2 mentioned in the error messages.
0 Likes 0 ·