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.