Support Article
The Utility function form pega rules failed to execute
SA-37578
Summary
After upgrade of Utility function form, Pega rules failed to execute and not able to create work object.
Error Messages
Caused by:
com.pega.pegarules.pub.runtime.LibraryFunctionNotFoundException: Problem invoking function: pega_rules_utilities.lookup--(String,String,String,St2c086e23263e7513a698846b7b67a739, com.pegarules.generated.lookup_071017_H6mYtssPkK6kFfGwdFSTjQ
at com.pega.pegarules.generation.internal.library.LibraryMetadataCache.getFunctionInstance(LibraryMetadataCache.java:338)
Steps to Reproduce
Go 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.
Resolution
Perform 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 17, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.