Unable to save a function to higher version
When user tries to 'save as' a function to Higher Version its throwing error messages.
pyLibraryName: The Library failed to compile
General Error: Error(s) detected while generating java. Compiler reported: ----------
ERROR in com/pegarules/generated/test_CheckProductAndAge_010170_lCZi53JjF4cIa_b9iyffWQ.java (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
RULE-UTILITY-FUNCTION XXXUTILITIES ISVALIDCARDHOLDERNAME #20101029T162115.223 GMT/HNB:11-01-01
2.) Try to save as to higher version.
3.) Error message is seen
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 .