question

luis-rodrigues avatar image
0 Likes"
luis-rodrigues asked luis-rodrigues commented

Empty Recipe

Hi, I'm working on a model which uses recipes and a schedule source. I have 17 materials that are loaded with the transporter and some others that are loaded automatically and are not represented in the model. Some of the recipes only use automatically loaded materials so in the recipe table won't show any quantity and the model returns an error. Is there a way that I can make this error disappear without changing the way the model works?

ml00-to-ml04.fsm

FlexSim 24.0.2
empty recipe
ml00-to-ml04.fsm (92.0 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered luis-rodrigues commented

The issue is that the "items" label is currently only created when material is pulled but is required in the rest of the flow to determine how many items need to be handled. You can simply create the label with an empty array as the value in the source, so even if no items are pulled, the label exists.

In fact, a label called "items00" is already being created (stemming from a previous version I believe). Simply rename it to just "items".

Another issue, and I think I might have introduced it in the other thread, is that "Check for empty items" should create as many tokens as there are entries in the array, not always 1.

capture1.png


capture1.png (9.3 KiB)
· 1
5 |100000

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

luis-rodrigues avatar image luis-rodrigues commented ·
Thank you very much @Felix Möhlmann
0 Likes 0 ·