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

Errors display on creating or updating a function



Errors display when creating a new function or updating any existing function. 

Error Messages

The code for static initializer is exceeding 65535 bytes limit

Steps to Reproduce

  1. Create a new function in the library containing too many RUFs.
  2. Add the Java source and save the function

Root Cause

In user's environment, the library has 370 Rule-Utility-Functions (RUFs) defined. So the class generated for this library contains all these function definitions in static blocks whose size exceeds the 65535 byte limit. Hence, the error occurs.

Library is a way to group related RUFs (functions). 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. 


Perform the following local-change:

Move some of the RUFs out of the original library to the new one.


Published July 23, 2018 - 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