Cancel
Showing results for 
Search instead for 
Did you mean: 

Data type object as parameter gives unknown index error in 12.2

Legend
Legend

Hello!

 

I've stumbled upon weird behaviour when running old models upgraded to Plant Simulation 12.2. A method that is called with a param of type object being used as a row index to set a cell with a varible of data type object gives me the error Unknown index. The row index has a relative reference in the example, but the error happens even with absolute references in the row index.

 

I've managed to replicate it using only these objects in the screenshot below. It seems to require both an object variable in the referencing and in the assigning. If you replace new below with just ~.SingleProc2, it works. And as you can see in row 4 and 5, if you modify the reference and convert it to string and then back again it works as well. This error did not appear when running models with the same setup in 12.1.1.

 

settingObjectReference.PNG

4 REPLIES 4

Re: Data type object as parameter gives unknown index error in 12.2

Siemens Phenom Siemens Phenom
Siemens Phenom

You found a bug in SimTalk 2.0 which is also included in Plant Simulation 12.1.The bug only affects indexes of data type 'object'. We will fix it in the service packs 12.1.2 and 12.2.1.

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Data type object as parameter gives unknown index error in 12.2

Legend
Legend
Thank you Michael!

Re: Data type object as parameter gives unknown index error in 12.2

Experimenter
Experimenter

Hello Michael,

 

I am facing a similar problem in all param statements in my model (Plast Simulation v12.2).

 

Please let me know how to solve this error.

 

Thank you,

Yogesh

Re: Data type object as parameter gives unknown index error in 12.2

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you need to use SimTalk 1.0 in Plant Simulation 12.2

 

 

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net