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.
Solved! Go to Solution.
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.