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

Error when saving case type to a new ruleset



A Case Type has 79 Covered Work Types.
A error occurs when either attempting to save the Case Type to a new Ruleset or attempting to add a new Covered Work Type.


Error Messages Failed to compile generated Java com.pegarules.generated.casetype.ra_action_pydefault_b4f4ae8582ced9954f7758a9eb733c96: ----------
1. ERROR in /com/pegarules/generated/casetype/ (at line 40)
public void perform() {
The code of method perform() is exceeding the 65535 bytes limit
1 problem (1 error)
Compile failed.

Steps to Reproduce

Attempt to add a new Covered Work Type.
Attempt to re-save the existing Case Type to a new Ruleset.


Root Cause

The reason for the exception is due to the number of covered work types the user has that are being auto-instantiated, each auto-instantiations adds code to the generated method which eventually results in the Java method limit exception

"The code of method perform() is exceeding the 65535 bytes limit"


Ensure to auto-instantiate only the ones that are to be used straight away in the code. By removing the auto-instantiation option from the covered work type, the issue resolves.

Published January 31, 2016 - 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