Assign Slot Error

Assign Slot Error

king_ki_f
Not applicable
5 Views
3 Replies
Message 1 of 4

Assign Slot Error

king_ki_f
Not applicable

[ FlexSim 20.1.0 ]

Hello,

In my process, I have an operator grab a tote flowitem from the queue named MergeTo. When my operator goes to pickup the tote, I'm getting the following error message

time: 238.992838 exception: int assertattribute(TreeNode *object,char *name, int datatype)
ex: assertvariable
time: 238.992838 exception: FlexScript exception: MODEL:/Tools/ProcessFlow/PFL_Inventory/Custom Code - Assign Slot~2>variables/codeNode

I do not understand what this error message means because I do not believe I've used an int datatype in my assignslot code. Would someone be able to help me understand ? I've uploaded the model below and where the error occrus if it helps.

27899-mergingerrormessage.png


Outbound Merging v8.fsm

0 Likes
Accepted solutions (1)
6 Views
3 Replies
Replies (3)
Message 2 of 4

philboboADSK
Autodesk
Autodesk
Accepted solution

@King-Ki F

The issue is not in the "Custom Code - Assign Slot" activity that is circled in your screenshot.

The issue is in your other "Custom Code - Assign Slot" activity that is higher up in your Process Flow.

The circled section uses the "Determine Putwall Location" subflow, which has its own "Custom Code - Assign Slot" activity.

When the exception happens, the token in that activity does not have a PolyBag label, which you are passing to Storage.Item(). This throws the exception you are seeing.

27953-1588364937528.png



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 3 of 4

king_ki_f
Not applicable

Thank you! That was helpful! Would you mind explaining how to use the Watch Variable tab? It looks very useful for debugging purposes and maybe even finding specific tokens in a very large process flow.

0 Likes
Message 4 of 4

philboboADSK
Autodesk
Autodesk


Phil BoBo
Sr. Manager, Software Development
0 Likes