Empty Recipe

Empty Recipe

luis_rodrigues
Not applicable
198 Views
2 Replies
Message 1 of 3

Empty Recipe

luis_rodrigues
Not applicable

[ FlexSim 24.0.2 ]

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

0 Likes
Accepted solutions (1)
199 Views
2 Replies
Replies (2)
Message 2 of 3

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

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

0 Likes
Message 3 of 3

luis_rodrigues
Not applicable
Thank you very much @Felix Möhlmann
0 Likes