Script Editor Size Limit?

Posted by: wgfrench on 4 August 2017, 3:02 pm EST

  • Posted 4 August 2017, 3:02 pm EST

    Greetings,



    I'm getting some very strange behavior using the script editor to create reports to export to RPX files.

    I have a lot of code in my Detail_OnFormat event procedure. It runs just fine. However, at some point, I added one more line of code. When I run the report, I get an error 5800. Then when I go back into the script editor, ALL my Detail_OnFormat code is gone.

    This happens even if it's a line of code copied from elsewhere in the proc - so there's no bug. And even if the code was buggy, why would my entire event proc disappear?



    I'm wondering if there is some limit to the size of the script file that AR can handle. Is there a maximum length of the scipt editor textbox? If there a file size limit for the script?



    I'm using AR 2.4.0.1279.



    Thanks in advance for any help.



    - will f
  • Replied 4 August 2017, 3:02 pm EST

    I don't know of such a limitation but it is possible. The first thing to do is to upgrade to the latest build and if that doesn't solve the problem try to factor out some of the code to external classes and create instances of it that you introduce to the report using AddNamedItem. This would make the code easier to read later and overcome size limitation if there is any. You can also post the RPX file for us to check it.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels