Error debugging

Error debugging

HKSim
Not applicable
18 Views
2 Replies
Message 1 of 3

Error debugging

HKSim
Not applicable

[ FlexSim 24.1.0 ]

Hello,


Once we start a model we have this error:

time: 25.126673 exception: Exception caught in evaluation of /Tools/ProcessFlow/Arrivals/Create Patient>stats/instances/Arrivals/onPersonCreated

How do we track this error and correct it? I don't see "stats" property under Create Patient Window.

Generally, is there a way to track where error occurs if we have a message something like "Flexscript Error   Line 1   syntax error Could not finish parsing because of previous errors""


Thank you.

0 Likes
Accepted solutions (1)
19 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Explorer
Explorer
Accepted solution

The path in the error message tells you where you can find the node the error happens in in the tree. If you right click on the "Create Patient" activity and choose "Explore Tree" you will get a tree view of the activity node. Then open its attributes tree by selecting it and clicking on the arrow that appears to the left of it.

capture1.png

By default, some person statistics are linked to the onPersonCreated event. If the error originated in the Statistics Collectors it should say that though. So we'd need to see the model to diagnose what's going wrong.

0 Likes
Message 3 of 3

Jeanette_Fullmer
Community Manager
Community Manager

Hi @HK, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes