Issue with Ignition Designer program: Array method length error

Hello everyone,

I am encountering an error while working on Ignition Designer and I was wondering if anyone could provide some insight or guidance.

The issue I am facing is related to the length of a functions which contains arrays with nested objects. When I try to compile the code, it throws errors related to the length that I can't seem to resolve. I suspect that this might be a bug in the program.

I'm also curious if there's a limit to the number of functions or arrays that the compiler can handle. Could this be a contributing factor to the error I'm experiencing?

Has anyone else faced a similar issue, or can provide any suggestions on how to tackle this problem?

In the first image attached, you can see approximately 20 images with arrays and nested objects, and the length error that I'm experiencing.

in the second image I deleted more than half of the functions and I have only left the ones causing the error, in fact debugging a little more I found that it is only one function that causes the error and I can not understand the reason because it is similar to most of them.

I would really appreciate any help that you can offer. Thank you in advance!

There's a limit in java and jython in the number of bytes allowed in a function or method.

Use list interpolation or similar techniques to loop with the unique parts of your constants to yield the full output. Or initialize from a database.

1 Like