question

HK avatar image
0 Likes"
HK asked Jeanette F commented

Error debugging

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.

FlexSim 24.1.0
error debugging
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

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

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

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.


capture1.png (24.3 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.