assign labels to created token in process flow (version 17.0.12)

assign labels to created token in process flow (version 17.0.12)

xalden_l
Not applicable
9 Views
4 Replies
Message 1 of 5

assign labels to created token in process flow (version 17.0.12)

xalden_l
Not applicable

[ FlexSim (other) ]

Hi,

I am facing some issues with the global table look up. I would want the picker to pick the item based on the global table. However, I met with some issues from the 'assign labels to created token' under the process flow.

Also, I have been encountering: ' invalid type for [] operation. Should be int. Left side type is (invalid). right side type is char*"

Can anyone please help solve the issue, thank you in advance.

sku-to-each-bay-flow-autosave.fsm

0 Likes
Accepted solutions (1)
10 Views
4 Replies
Replies (4)
Message 2 of 5

sebastian_hemmannE3JAU
Collaborator
Collaborator
Accepted solution

,

Hi, it seems as if only typing FlexScript in the field of the Label is not allowed. You can type numbers.

If you only want to use a global Table, please try out the pickoption for this. But as far as I´ve seen there is no way to point the row with "Quantity" but you have to set a number in the pickoption.

If you want to do your own script open the script window.

The second fault is shown, because you are trying to ask for an array it the Travel activity, but there is no array value written!

I´ve changed both to a (for me) working version and attached it.

0 Likes
Message 3 of 5

xalden_l
Not applicable

Hi @sebastian.hemmann , Thank you for your reply. The purpose of the model is to pick a few SKUs based on the global table in a single trip. However, the model is not working like how it's supposed to. Could you please advice, thank you.

0 Likes
Message 4 of 5

sebastian_hemmannE3JAU
Collaborator
Collaborator

Hey, the first big point is, that your logic does not pull anything from the list. This happens because your Query says, the SKU has to fit for the puller and the object on the List. But the objects on the List does not have any SKU but you are using the "Itemtype" of the Item.

16674-entrielist.png

So I´ve changed your Source. Here you have to know, that the first Columns of the Table are having a specific task, no matter how you are calling them.

The Column right of Quantity are the label that are set on the item.

16675-newsource.png

And now your List has the right information.

The second point is that I have overseen that you have different SKU than you have columns. It was my fault, because you used the tokenIndex in your model and so I thought you made everything to let this work.

So what we will need is a Query that asks for the right Quantity for the right SKU. I´ve added this to your PF Source and I had to change/ translate your GlobalTable1. But now it should work!

16667-16664-sku-to-each-bay-flow-autosave-sh2.fsm

Message 5 of 5

xalden_l
Not applicable

Hey @sebastian.hemmann ,

Thank you for pointing out where I went wrong and appreciate your help, will continue to work on my model.

Cheers, and wishing you a Happy New Year!