question

Beom Gi L avatar image
0 Likes"
Beom Gi L asked Ben Wilson commented

How to fix the exception like this?

Hi, All.

Sometimes I got the message in the System Console, not every time to run same model.

How to fix? or get the information about cause?


time: 100492.703350 exception: FlexScript exception: MODEL:/Tools/ProcessFlow/OutPort/Custom Code>variables/codeNode

Regrads,

planner

FlexSim 20.1.3
flexsim 20.1.3exception
· 3
5 |100000

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

Jeff Nordgren avatar image Jeff Nordgren commented ·

Hi @beom_gi.l,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

Thanks.

0 Likes 0 ·
Beom Gi L avatar image Beom Gi L Jeff Nordgren commented ·

Hi jeff,


Unfortunately, it is impossible to upload the model you mentioned because the security policy of company.


Thanks.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @beom_gi.l, was tanner.p's answer helpful? If so, please click the red "Accept" button on 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
tannerp avatar image
1 Like"
tannerp answered tannerp edited

@beom_gi.l,

If the model can't be posted, then you'll have to debug it yourself. The information below indicates where the problem is:

MODEL:/Tools/ProcessFlow/OutPort/Custom Code

Go to your Custom Code activities and debug them. If there's more than one, I suggest giving them unique names so it's easier to track them. It's likely that there's an error in some of the code. You can use break points to debug the model, which is all we would do to debug something like this. Break points can be inserted by clicking in the area shown in a Custom Code window.

Hope these tools help you solve it!


break-points.png (14.5 KiB)
· 2
5 |100000

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

Beom Gi L avatar image Beom Gi L commented ·

@tanner.p

The other problem in this issue is not occurred regularly when run same model.

Almost run this exception is not occurred. This exception is occurred very rarely.


Thanks.

0 Likes 0 ·
tannerp avatar image tannerp Beom Gi L commented ·

@beom_gi.l

This makes it a little more tricky to debug. Do you have many Custom Code activities?

You must ensure that all the variables and labels used in each activity exist for every token, otherwise an exception like this may occur. For example, if the Custom Code activity uses a token's "Type" label, and then a token passes through without a "Type" label, the activity will be confused and throw an exception. Same thing if it tries to access an object that has moved or been destroyed.

Check these things and see if they help. I'm afraid that's the most I can offer without seeing the model.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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