Support Article
Unable to Save As a Function rule
SA-78968
Summary
Unable to Save As a Function rule.
Error Messages
The code for static initializer is exceeding 65535 bytes limit
Steps to Reproduce
Save As an existing function in a library which has many Rule Utility Functions (RUF).
Root Cause
In the user's environment, the library has multiple RUFs defined. Hence, the class generated for this library contains all these function definitions in static blocks whose size exceeded the 65535 byte limit, due to which the error occurred.
The library is a method to group related RUFs. Creating every RUF together in the same library is similar to a flat structure which results in Compilation errors. In general, the number of RUFs per library should always be reasonable.
Resolution
Perform the following local-change:
Move some of the RUFs out of the original library to the new library.
Published August 19, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.