question

Noah Z avatar image
0 Likes"
Noah Z asked Noah Z commented

Unique Error Question

tooltreesnapshot.pngerrortext.pngI have a processor that generates an error that I haven't seen discussed before. The main lead I have is that when I disable the time table associated with the tool the error does not appear. Anyone else have a clue what's going on here?timetable.png

FlexSim 24.2.1
system console error
errortext.png (7.1 KiB)
timetable.png (20.1 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
1 Like"
Felix Möhlmann answered Noah Z commented

This error can be caused in the following way:

A fixed resource is linked to a state gantt chart that uses uses a state table which was filled based on the state profile of a specific object and does thus not contain all 50 default states.

If the fixed resource is now set to state is not part of its state profile (for example by a time table) the Statistics Collector behind the chart will try to read the display name for that state in the state table but won't find it. It will then try to read the name from the state profile itself, but since the state was not previously in the profile yet and is only being created because the resource is now set to that state this fails as well and results in the error message.

As long as the fixed resource is persistent and does not get regenerated on reset by a parameter setting for example, this error should only appear once, since afterwards the state is part of the profile and its name can be read from there.

In general, if you make sure that the state table contains all states that are going to be used in the model, this issue should not come up.

See the attached model for an example. The first time it's run, you will get error message when the time table sets the processor to 'new' states. In subsequent runs, they will not appear again.

unknown-state-error-fm.fsm

The error could of course be caused by something else in your case. But then it'd be hard to pinpoint the cause without access to the model (or a stripped down version that shows the issue).


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

Noah Z avatar image Noah Z commented ·

I really appreciate the detailed breakdown of what can trigger that error. You are exactly correct in diagnosing the issue. I was purposefully re-creating that resource on reset each time and i did have it linked to a state gantt chart.

Your explanation enabled me to make the necessary changes to fix the issue. Thanks again!

0 Likes 0 ·