question

gio-c avatar image
0 Likes"
gio-c asked gio-c commented

Unable to pull first item from list

I have a process that creates pallets in specific locations and boxes in each pallet according to gllobal tables. Then it put every token per line of order in a list of orders. the process should pull the first order and copy its OrderID, but it doesn't work as intended the value is null and says no path to firstPulled.

QUESTION LIST.fsm

FlexSim 25.0.2
listspullorders
question-list.fsm (145.8 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

Paula LG avatar image
0 Likes"
Paula LG answered gio-c commented

Hi,

The problem here is that the firstPulled token is destroyed immediately after being pulled from the list (Finish activity). It can be solved by adding a breathe activity between Push to List and Finish, so that when you try to copy the orderID, the token still exists:

1744622584549.png

I hope it helps!

question-list.fsm


1744622584549.png (21.3 KiB)
question-list.fsm (143.9 KiB)
· 5
5 |100000

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

gio-c avatar image gio-c commented ·

Thank you very much, now it writes the orderID.

I tried connecting the paths i disconnected to test these and now it says error in the travel task. Why?


question-list.fsm

0 Likes 0 ·
question-list.fsm (144.1 KiB)
Paula LG avatar image Paula LG gio-c commented ·

You're asking the operator to travel to an object named "AJSHB" (token.CodArticolo), which does not exist.

0 Likes 0 ·
gio-c avatar image gio-c Paula LG commented ·

Yes, thank you. Now it works but only for the first line of order. The next line is null. Why is it? i don't understand


question-list.fsm

0 Likes 0 ·
question-list.fsm (144.4 KiB)
Show more comments