question

cvnnf avatar image
0 Likes"
cvnnf asked Felix Möhlmann commented

An invalid task has been ecountered

Hello, I got this error at process flow on my example

'An invalid task has been ecountered'

how can i fix it?

Thank you for your help

GumTO_QNA.fsm

FlexSim 24.1.0
agvprocess flow
gumto-qna.fsm (156.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 Felix Möhlmann commented

The error tells you that "involved 1" is NULL, meaning not a valid value.

capture1.png

Involved 1 of a load task is the item but even without knowing this, you can check what's going wrong in the Process Flow. After the error appears, the token that caused it will be stuck and not move on (in this case it's even the only token present in the Process Flow at the time). So you can go to the token and check what values you used in the load task activity and whether those are all present.

Here, the label "qq" which should denote the item is not present on the token.


capture1.png (5.5 KiB)
· 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.

cvnnf avatar image cvnnf commented ·
thanks for your answer!


i have changed label 'qq' to 'item' but

how can i take this label in 'BB_BC' token?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann cvnnf commented ·

You can get a reference to the finished item in the Event-Triggered Source. Assuming that this is what you want to transport.

capture1.png

What name you choose for the label is up to you. Just make sure that any subsequent activities are set up accordingly.

0 Likes 0 ·
capture1.png (12.0 KiB)