question

King-Ki F avatar image
0 Likes"
King-Ki F asked Phil BoBo commented

Assign Slot Error

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.


Outbound Merging v8.fsm

FlexSim 20.1.0
flexsim 20.1.0error message
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

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo commented

@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.


1588364937528.png (820.6 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.

King-Ki F avatar image King-Ki F commented ·

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 0 ·