question

Sandy avatar image
0 Likes"
Sandy asked Sandy commented

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

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

FlexSim (other - please specify)
FlexSim (other)
global tableprocess flow pull from list
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

Sebastian Hemmann avatar image
0 Likes"
Sebastian Hemmann answered Sandy commented

,

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.


· 3
5 |100000

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

Sandy avatar image Sandy commented ·

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.

-1 Like -1 ·
Sebastian Hemmann avatar image Sebastian Hemmann Sandy commented ·

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.

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.

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

2 Likes 2 ·
Sandy avatar image Sandy Sebastian Hemmann commented ·

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!

1 Like 1 ·