Notifications

346 views

Description

Symptoms

Integrations involving any server-side scripting like in business rule or script include , etc. failing with Error "String object would exceed maximum permitted size of 33554432".

Release

All Versions

Environment

This issue has been mostly seen to happen when script includes are instantiated in a while loop. Note that the limit may be breached when other scripts invoke a "ScriptableObject", for example instantiating a script include, in a while/for loop where a GlideRecord object is passed into the script include inside the while loop. The object size grows with each loop iteration because we are adding up the GlideRecord object with each loop. One way to cause this is to loop with each GlideRecord result, and then call a script include.

Cause

The platform has a hardcoded value of 32 MB for the String object and it is not customizable via any system property.

Resolution

Make sure that what every string object defined doesn't grow beyond 32 MBs in any of the server side scripting.

NOTE: Javascript uses 2 bytes per character and there is a String object limit of 33554432 bytes.

Article Information

Last Updated:2019-08-02 20:43:00
Published:2019-05-22