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

Rule Utility Library failed to compile after a deployment

SA-45530

Summary



A custom Rule Utility Library failed to compile after a deployment.


Error Messages



Error(s) detected while generating java. Compiler reported: ---------- 1. ERROR in /com/pegarules/generated/GetDecisionDataEntriesValueExample_171505_o9UtQmLpC1QWaja8v9HOsg.java (at line 162) rtcValue = org_orgdecisionutils.GetDecisionDataEntryValues("CentralDecisionHub-Data-Context","RealTimeControl",KeyName,value,tools); ^^^^^^^^^^^^^^^^^^^^^^^^^^ The method GetDecisionDataEntryValues(String, String, String, String[], PublicAPI) is undefined for the type org_orgdecisionutils ---------- ---------- 2. ERROR in /com/pegarules/generated/GetDecisionDataEntriesValueExample_173043_p0mIx0SFlpozIskKJkJYsw.java (at line 162) rtcValue = org_orgdecisionutils.GetDecisionDataEntryValues("CentralDecisionHub-Data-Context","RealTimeControl",KeyName,value,tools); ^^^^^^^^^^^^^^^^^^^^^^^^^^ The method GetDecisionDataEntryValues(String, String, String, String[], PublicAPI) is undefined for the type org_orgdecisionutils ---------- 2 problems (2 errors) Compile failed.


Steps to Reproduce

  1. Create a library with multiple functions where function A references function B.
  2. Delete function B.
  3. Try to generate the library and a compilation error occurs.
  4. Withdraw function A in a higher ruleset version.
  5. Try to generate the library and the compilation error still occurs.

Root Cause

An issue in the custom application code or rules where the library failed to compile due to a missing function that was referenced by other functions in the library. When a function rule is withdrawn it is still included in the library generation, which is why the error occurred.



Resolution



The way to handle this situation would be to remove the invalid reference from the function before withdrawing it so the library generates successfully.

Suggest Edit

Published November 7, 2017 - 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