Error: Bad Destination Value in Sub Process

Error: Bad Destination Value in Sub Process

nathaniel_w
Not applicable
104 Views
4 Replies
Message 1 of 5

Error: Bad Destination Value in Sub Process

nathaniel_w
Not applicable

[ FlexSim 21.0.2 ]

Hello, I am currently working on a model which will simulate a service line. In this process, a scope will be used in a procedure, and once that scope is placed in a drop off area, it will trigger a subprocess to have that scope cleaned. I am getting an error at the 3708 mark saying "time: 3708.571006 exception: Error: Bad destination value in "Staff Travels to Equipment" in "Move Equipment" ". This step is supposed to bring the scope from the drop off area to the sink. It seems weird to me, because the destination is a sink and I don't think it should be returning an error. This leads me to believe it might be a larger issue. Any help would be greatly appreciated. I have attached my model below. Thank you!

BadDestination.fsm

0 Likes
Accepted solutions (1)
105 Views
4 Replies
Replies (4)
Message 2 of 5

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

Two things:

1. You never acquired the Coloscopy Scope equipment.

2. You're acquiring the objects onto labels on current. In a general flow current is the process flow itself. Instead you should acquire onto labels on the token.

baddestination_fixed.fsm



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 5

nathaniel_w
Not applicable

Thank you very much for your help @Matthew Gillespie. What I was trying to do was acquire the scope during the patient flow and then release it after the cleaning process, which is why the scope wasn't acquired during the cleaning process. But now, and the problem I was having before, is that there is a new scope being acquired and cleaned. In the simulation baddestination_fixed.fsm, CS1 is the scope that is used for the procedure, but CS2 is the scope getting cleaned. Is there a way to make sure that the scope being cleaned is the scope that was used in the procedure? Thank you!

0 Likes
Message 4 of 5

Matthew_Gillespie
Autodesk
Autodesk

@Nathaniel W

OK, here's how I would do this. I would just release the scope in the patient flow and then have the Scope Cleaning flow listen to the OnRelease event of the Colonoscopy Scopes group. That way a token is created in that flow whenever one of the scopes in that group is released. You can use the Assign Event Object To field to store off the scope that was just released.

Scope_OnRelease.fsm
37571-1615314556110.png



Matthew Gillespie
FlexSim Software Developer

Message 5 of 5

nathaniel_w
Not applicable

@Matthew Gillespie This is exactly what I was looking for! Thank you so much for your help, I have been stuck for a while and this was one of the last major hurdles to get this up and running. Thank you!

0 Likes