question

Nicolas Obeso avatar image
0 Likes"
Nicolas Obeso asked Logan Gold edited

FlexScript Exception

Hi, everyone. I made some changes to my model today and began getting this error:

Invalid down cast. Object is not an instance of the target type. at MODEL:/Tools/ProcessFlow/ProcessFlow/Sink~6>stats/instances/ProcessFlow/onEntry

I tried undoing what I had changed but that did not fix anything. What could be causing this? Thank you.


Edit: I just closed out of FlexSim and reopened the model and am not getting that error anymore. I had been resetting the model after making changes so I am curious as to what the underlying cause is.


ConveyorModel.fsm

FlexSim 24.0.2
exception errorexceptionerrors
conveyormodel.fsm (4.1 MiB)
· 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.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @Nicolas Obeso, was Jeanette F's answer helpful? If so, please click the "Accept" button at the bottom of the 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

Jeanette F avatar image
0 Likes"
Jeanette F answered

Hello @Nicolas Obeso,

Opening default workspace will reset things in the view. I am assuming that something like this occurs when you close out and reopen the model.
It's difficult to say what corrupts a view. If you find repeatable steps, then we can submit it to the development team.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.