Error: Invalid reference to task sequence

Error: Invalid reference to task sequence

shanice_c
Not applicable
16 Views
3 Replies
Message 1 of 4

Error: Invalid reference to task sequence

shanice_c
Not applicable

[ FlexSim 21.2.0 ]


It says there is an invalid task has been encountered. involved2 is the object to unload to. I checked unload activity, token.pulled and token.productslot are with value, then why is the token couldn't unload successfully?

1635659006252.pngrack.fsm

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

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

Because a slot is NOT an object. The rack of the slot would be an object.
you can evaluate the token label value as ownerobject([token.label]) or as flexscript warehouse class property slot.storageObject.

0 Likes
Message 3 of 4

shanice_c
Not applicable

Thank you, it seems problem is that I'm using wrong class. I have changed the Object into Storage.Slot, and changed the item to Storage.Item. I'm sorry that I still don't understand why the token.productslot already has value in it, also in 3D flowitem the SLOT label has value in it, but it cannot be used.


1635687026202.png


1635687178445.png

rack2.fsm

0 Likes
Message 4 of 4

moehlmann_fe
Observer
Observer

The other way around: You have to pass an object into the "Unload" activity as the station, rather than the Storage.Slot class variable. This is also what Jörg meant. You can get a reference to the rack the slot is in through the two ways he suggested.

If the item was assigned to the slot prior to unloading it into the rack, it will automatically be placed in it, without calling the "Slot Assignment Strategy" of the rack.

1635751789858.png

rack2.fsm

0 Likes