question

Weronika FK avatar image
0 Likes"
Weronika FK asked Weronika FK commented

Error while running a model

Hi,

I've made a model using a Process Flow tool. Unfortunately, I've got a problem with running it. When I click the run button, my FlexSim stops working. I don't know if it's a model's problem or my own computer's. I'm trying to use labels to differentiate types of t-shirts.

Nadruk na koszulkach.fsm

FlexSim 21.2.0
processflowmodel run
5 |100000

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

Steven Hamoen avatar image
1 Like"
Steven Hamoen answered Weronika FK commented

@Weronika FK You are mixing the logic of 3D and process flow together. This is not a good idea and if you do it be careful!. In your case you have a source (Źródło) that creates a a box in the queue (Magazyn). The event triggered source in the process flow listens to the onentry of the queue and when the onentry takes place it creates another box in the queue which triggers the onentry again, which creates another box etc etc So in fact you create an infinite loop.

So either create all the flow items in process flow or create them with a source, but not both.

· 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.

Weronika FK avatar image Weronika FK commented ·

@Steven Hamoen I deleted a source from my 3D process and I stayed with the items in the process flow. FlexSim doesn't stop working but it doesn't want to take any actions. Is there any possibility that I have another error? Nadruk na koszulkach.fsm

0 Likes 0 ·
Weronika FK avatar image
0 Likes"
Weronika FK answered Weronika FK commented

@Steven Hamoen I understand it now :) I've added a source in the 3D model and connected it with event triggered. I have the last question if you don't mind... I have 3 types of t-shirts - "biala", "czarna" and "kolorowa". I've tried to assign labels to token.koszulka, but the object decide doesn't see it. "biala" should go to the 1st connector out (image) and "czarna" and "kolorowa" to the 2nd one. I've also tried to assign labels by a percentage because they appeal in equal amounts - 33%each color. I will be very thankful for your help!

1640088588092.png

Nadruk na koszulkach.fsm


· 2
5 |100000

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

Steven Hamoen avatar image Steven Hamoen commented ·

@Weronika FK The problem is that in the Assign labels activity called "Kolor koszulki" you write on the "Assign Labels To" "token.koszulka". But koszulka is the reference to the box. So depending on what you want, you change the "Assign Labels To" simply to "token" or on the "Kolor koszulki" decide activity you change it to token.koszulka.biala instead of token.biala.

Always take a good look at the error messages. In your case this already told you that the label is not existing: time: 36.299259 exception: FlexScript exception: label biala doesn't exist on token id: 1 at MODEL:/Tools/ProcessFlow/ProcessFlow/Kolor koszulki~2>variables/decision

Then you can click on the token

1640089152358.png

And you can see that the biala label or any of the other is not existing

0 Likes 0 ·
1640089152358.png (22.0 KiB)
Weronika FK avatar image Weronika FK Steven Hamoen commented ·
Thank you very much @Steven Hamoen !! Everything works perfectly :)
0 Likes 0 ·
Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered

@Weronika FK If I now look at your model there is no source anymore. The 3D source has been removed but there is no source in the process flow. In the process flow you have an even triggered. But you don't have an event anymore so that source is never triggered.

5 |100000

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