Author Topic: how to increase script fragment size?  (Read 3213 times)

CL.FKIE

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
how to increase script fragment size?
« on: February 25, 2014, 07:37:45 pm »
Hello,
I try to generate a RTF document template with very specific information of a single element (and it's relations).
I am using a custom script template fragment for this, which wraps the informations in a XML DOM Object. (See the Example “Example RTF Template Fragment Script”)

The Script works quite well for small test scenarios, but as soon as some Note fields get bigger the script fails:

"An invalid XML Document was supplied for a custom report."

The Error does not occur in the Script but after the “return xmlDOM.xml;“ Statement.

After some testing i found out, that the EA can work internally with arbitrarily big XML documents, but as soon as the length of the returning xmlDOM exceeds 16385 Bytes, the script stops to work with the mentioned error message.

The question is: how to increase the size the maximum parameter size internally used by EA?

After some more research i found this under the EA 11 Beta Notes:
"Script fragements can now can now return a result larget than 16k in length."

Now i wonder if if this can be changed before the the release of EA 11?

Kind regards,
cl
« Last Edit: February 25, 2014, 08:02:35 pm by CL.FKIE »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: how to increase script fragment size?
« Reply #1 on: February 25, 2014, 09:08:14 pm »
Hello cl,

this behavior is known in EA 10 and there are some threads in the forum.

As workaround you can split the information in parts less than the limit.

EA10 also has some stability problems with fragment scripts (search forum).

In EA11 beta 1 these problems are solved. I've tried a lot with EA10 but only find the workaround of splitting the information.

Helmut

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)