question

anon-user avatar image
0 Likes"
anon-user asked anon-user commented

 Getting Object Function250 Error

Hi FlexSim Support Team,

Could you please see why I am getting this error while running the model?

Exception Caught in ObjectFunction250__project_library_FlexSimObject_behaviour_eventfunctions_OnTimerEvent object: /Rack31 class: /Rack31


FlexSim 21.2.2
warehouse
· 1
5 |100000

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

Connor A avatar image Connor A commented ·

Hi anonymous user, was Phil BoBo's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered anon-user commented

The "ObjectFunction250" part of the error isn't important. The important part of the error message is "OnTimerEvent object: /Rack31".

You are moving the item out of the Rack31 before it is ready. Your Event-triggered Source is listening to the Rack's OnEntry and loading the item. The Rack has "Use as Fixed Resource" checked, so when an item enters, it evaluates the Minimum Dwell Time and then creates an event to release the item after the returned dwell time has expired. You are removing the item from the rack, and then the rack is trying to finish processing the item and send it to the next fixed resource, but the item is no longer in the rack so it throws an exception.

Instead of listening to OnEntry, change your Event-triggered Source to listen to SendToPort. Then the item will have finished its processing and be ready to leave the rack and be loaded by the task executer.

arb-t5_1.fsm


arb-t5-1.fsm (688.6 KiB)
· 1
5 |100000

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

anon-user avatar image anon-user commented ·

Thank you so much for your support @Phil BoBo

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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