question

sara S2 avatar image
0 Likes"
sara S2 asked sara S2 commented

How to fix this error: "Label does not exist..."?

Hello,

I am trying to model the process of transporting items (boxes) from the rack to the port 'Queue3'. But when I run the model, I get an error message:

"FlexScript exception: Label property Type retrieved on /Rack1/Tote. Label does not exist. at MODEL:/Tools/GlobalLists/ItemList1>variables/fields/ItemType/expression".

I really don't know how to fix this, help me please !

model1.fsm

FlexSim 19.0.0
itemlist and processflow
model1.fsm (69.2 KiB)
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered sara S2 commented

You get the exception, because you push the tote to the list in the Send To Port function of the Rack1. The tote has not the label Type nor any other label.

If you want to push the content of the tote onto the list, you can adjust the reference to push:

item.subnodes.toArray()

in the source code editor of the function.


· 4
5 |100000

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

sara S2 avatar image sara S2 commented ·

Thank you for your reply.

I corrected the code, but I still get an error (in the attached two first files). I don't know how I should set the label ItemType to the token !

error.png

model1.fsm

Actually, I am wondering why in other model (attached below) the execution is performed without errors despite the usage of the code that you have mention in the first figure (push-tote-to-list.jpg). The only difference is that in this model, we use pallet instead of tote.

exp2.fsm

0 Likes 0 ·
error.png (350.0 KiB)
exp2.fsm (48.8 KiB)
model1.fsm (69.2 KiB)
tannerp avatar image tannerp sara S2 commented ·

Hi @sara S2,

In the example you sent called "exp2", the Process Flow logic is connected to lists and resources and it runs properly.

The other example, "model1", is not connected to any lists or resources, so the tokens can't pull items, acquire operators, or assign labels. Have you reviewed the Process Flow tutorials in the User Manual to learn how these PF activities work?

I think it would be beneficial to review some of those tutorials so that you can properly connect the activities in PF to the 3D.

0 Likes 0 ·
connected-list.png (7.6 KiB)
empty-list.png (6.9 KiB)
sara S2 avatar image sara S2 tannerp commented ·

Thank you @tanner.p.

0 Likes 0 ·
tannerp avatar image tannerp sara S2 commented ·

This is nowhere near complete, but I've updated the model so far that it doesn't crash. Hopefully this makes it easier to work on it.

updated-labels-and-pf.fsm

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.