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 a function to higher version



When user tries to 'save as' a function to Higher Version its throwing error messages.

Error Messages

pyLibraryName: The Library failed to compile
General Error: Error(s) detected while generating java. Compiler reported: ----------
 ERROR in com/pegarules/generated/ (at line 136)
if (custIDProp ! = null && custIDProp.getStringValue().equals(custPermIDProp.getStringValue()))
Syntax error on tokens, they can be merge to form !=

Steps to Reproduce

1.) Open the below rule
2.) Try to save as to higher version.
3.) Error message is seen

Root Cause

PRPC doesn’t allow you to save a function rule if there are compilation errors with the code.
The syntactical errors in the java code of the function rules in lower version will have to be fixed in order to resolve the issue


1)You will have to unlock the rulesets where the functions are present and update them.
2)If the above is not possible, then delete the functions from the lower ruleset (via database). You can then create a new function .
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

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.

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