question

Allister Wilson avatar image
0 Likes"
Allister Wilson asked Matthew Gillespie commented

Error adding object with attached process flow to user library

Attempting to add an object with an attached process flow, to a user library which already contains an auto install component, throws the following exception :

exception: FlexScript exception: invalid index at MAIN:/project/exec/globals/nodefunctions/addtouserlibrary/Object attached to Process Flow/onPostAdd

The object is added to the library, but the process flow is not.


Reproduction:

  • open the attached model
  • add GlobalTable1 to a new user library as an auto-install component
  • add ObjectWithProcessFlow to the same user library


Fix :

MAIN:/project/exec/globals/nodefunctions/addtouserlibrary/Object attached to Process Flow/onPostAdd

Line 52 :

treenode tempObj = temp.subnodes[j]

Should be :

treenode tempObj = temp.subnodes[k]


Thanks to @Pierre-Yves for finding, debugging and reporting this issue (and fix) to us!

20230516_userlibrary_add_object_with_process_flow.fsm

FlexSim 23.0.8
exceptionuser libraryobject process flow
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

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Matthew Gillespie commented

Thanks. I've pushed this fix for the next bugfix release.

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

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

@Allister Wilson

This issue is fixed in 23.0.9 and 23.1.3 released today.

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.