question

Nathaniel W avatar image
1 Like"
Nathaniel W asked Nathaniel W commented

Exception caught during create patient

Hello, I am working on a simulation for a service line. Previously, I had create a simulation where patients could be coming in for three different procedures. This was done by giving them a label called "Treatment", where a value of 1 would correspond to procedure "A", 2 would be procedure "B", and 3 would be procedure "C". The example schedule is shown below:

This works perfectly and there is no error message. However, I now need to add a procedure, so I created a 4th procedure with a Treatment value of 4. This schedule is shown below.

flexsigpatientissue2.png

Now, I am getting this error: Exception caught in evaluation of /Tools/ProcessFlow/Arrivals/Create Patient>stats/instances/Arrivals/onPersonCreated. Interestingly, the model runs exactly as it should, so this error doesn't have any bearing to the final results, at least not that I can tell. However, I'd still like to know what it is and to fix it incase something is going on behind the scenes that could bite me later. Can somebody explain what this error message means, and how I could remove it?

Thank you!

Nate

flexsigerrormessage.png

ATCBase.fsm

FlexSim 21.0.2
flexsim 21.0.2exception errorpatient labels
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

Parker S avatar image
0 Likes"
Parker S answered Nathaniel W commented

@Nathaniel W

In the Create Patient activity, you are assigning Label Sets according to token.Treatment:

When token.Treatment is 4, the error is thrown because there is not a 4th Label Set. You can create the 4th Label Set in People Settings and it should work fine.



1617660268036.png (40.6 KiB)
· 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.

Nathaniel W avatar image Nathaniel W commented ·

Thank you so much Parker! That worked perfectly and the error message has gone away.

0 Likes 0 ·