Exception Caught in ObjectFunction250

Exception Caught in ObjectFunction250

rafaagoes
Community Visitor Community Visitor
5 Views
2 Replies
Message 1 of 3

Exception Caught in ObjectFunction250

rafaagoes
Community Visitor
Community Visitor

[ FlexSim 22.2.0 ]

Hello, I am trying to unload the boxes that are in the agv to a processor using processflow. I tried with queues and the exception is the same. The idea is that in my Unload activity, I unload a box to the line and I loop it until there is nothing else to load. I check this end condition with token.agv.subnodes[1].subnodes.length.

Always in the second time that I am going to unload, this exception emerges, in the unload activity. I made some breakpoints and simplified the code but it still occurrs.

Maybe it is relevant that I created a pallet and 4 boxes in it but I do not use their token references to try to unload. I always use the token.agv.subnodes...

flexsim-nvl0bsugon.png

I have attached the model. AGV Simulation.fsm

0 Likes
6 Views
2 Replies
Replies (2)
Message 2 of 3

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Rafael Turchenski,

Thank you for contributing to our community! We couldn't identify a maintained license or subscription linked to your account.

You may need to update your profile information to identify yourself as a license owner or their associate. Check out our article for how to ensure you receive timely support. If you update your profile comment back to let us know - we'll adjust the priority of your post accordingly.

If your current license is expired, please contact your local distributor to renew.

0 Likes
Message 3 of 3

FelipeCapalbo
Not applicable

Hello, Rafael.
For the unload activity, I switched to using "token.item" (instead of just "item" as before) as the reference to execute the unload.

tokenitem.png

This adjustment works well for the unloading process itself, but you may need to refine the surrounding flow. You could add a Wait for Event activity for the token to wait the next unload event.

0 Likes