question

Antonio L avatar image
0 Likes"
Antonio L asked Abraham Vo2 commented

FlexScript exception - Label does not exist.

Hi All,

this is my first review of FlexSim and my first model. I'm trying to model a system where two sources create two different parts. One part will be processed in a first Processor and the other to a second processor. If I include a "conditional port" or a "Port by case" in the output of the Queue between the sources and the processes I get this message in the system console everytime a part is processed:

time: 18.000000 exception: FlexScript exception: Label property Type retrieved on /Queue1/Box. Label does not exist. at MODEL:/Queue1>variables/sendtoport

Also, the system is not working as expected. What am I doing wrong?

Thank you.

FlexSim 18.2.0
exceptionconditional portport by case
· 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.

1 Answer

gilbert jerald avatar image
0 Likes"
gilbert jerald answered Abraham Vo2 commented

@Antonio L

Hi Antonio,

Port by case logic will work on the basis of label-value on the created item. The error that you get is because you didn't set a label value on the created item.

I have attached the model for your reference have a look at it.

support-1.fsm

Thanks


support-1.fsm (266.2 KiB)
· 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.