Error occurs when saving in XML format

Error occurs when saving in XML format

sakamoto_koUFFFM
Enthusiast Enthusiast
576 Views
4 Replies
Message 1 of 5

Error occurs when saving in XML format

sakamoto_koUFFFM
Enthusiast
Enthusiast

[ FlexSim 23.0.14 ]

Saving the model, with some model parameter tables, in XML format and then re-open that fsx file and reset it, I get an error.

exception: FlexScript exception: Setting up property to node that does not exist at MODEL:/Tools/ParameterTables/Parameters>variables/parameters/1/Value/onSet


Is there a workaround?

sample1.fsm

sample1.fsx

0 Likes
Accepted solutions (1)
577 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor

https://docs.flexsim.com/en/24.1/Reference/DeveloperAdvancedUser/XML/XML.html

There seems to be a common structure how a treenode property in model should look like. You can compare this structure of a standard property with a structure of a parameter treenode in an XML file.
You could divert the faulty parameter treenode to a sub set of your XML map and test which value causes this problem.

0 Likes
Message 3 of 5

sakamoto_koUFFFM
Enthusiast
Enthusiast

Thank you for your reply.


The error message indicates that there is a problem with the On Set node.

Therefore, we created a model with different processes to be executed on reset.

Parameter1 was set to nothing, Parameter2 was set to process property changes, and Parameter3 was set to process changes to the number of objects.

sample2.fsm


When I saved the XML, reopened it and reset it, an error occurred only with Parameter3.

sample2.fsx


I saved only the ParameterTable to a separate XML and compared the On Set nodes for parameter2 and parameter3, but could not find any obvious problem.

parameterTables.fsx


Would modifying any part of this XML information solve the problem?




0 Likes
Message 4 of 5

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Thanks for reporting this - I will send this into the developers.

The problem is that the operator reset position container is being set to NULL and not updated to point to the model when the xml is loaded:

    <node f="42" dt="3"><name></name><data><coupling>null</coupling></data></node>

It seems that clicking on the operators (in the tree or 3D view) is enough to set the container to the model and remedy the issue.


0 Likes
Message 5 of 5

sakamoto_koUFFFM
Enthusiast
Enthusiast

Thank you for your reply.


It looks like the method you described will eliminate the error.

Thank you very much.

0 Likes