Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us