The Utility function form pega rules failed to execute
SummaryAfter upgrade of Utility function form, Pega rules failed to execute and not able to create work object.
Error MessagesCaused by:
com.pega.pegarules.pub.runtime.LibraryFunctionNotFoundException: Problem invoking function: pega_rules_utilities.lookup--(String,String,String,St2c086e23263e7513a698846b7b67a739, com.pegarules.generated.lookup_071017_H6mYtssPkK6kFfGwdFSTjQ
Steps to ReproduceGo to rule utility function and compile the function or refer the function in the rules to get the error.
Root Cause 1. Manually compile “lookup function” in utilities library by clicking “Test function compilation” to observe the error “cacheLookup cannot be resolved to a variable”.
2. Verify the “Static Variables” section in Utilities library which is part of Pega-Rules and found that this static variable is not present.
However, for the same Out-of-the-box (OOTB) rule the static variable is present in working environment.
ResolutionPerform the following local-change steps:
- Import the “RULE-UTILITY-LIBRARY UTILITIES PEGA-RULES” to working environment.
- Click on “Generate Library” to generate the library to resolve the issue.
Published May 7, 2017 - Updated May 17, 2017