Support Article

The Utility function form pega rules failed to execute



After upgrade of Utility function form, Pega rules failed to execute and not able to create work object.

Error Messages

Caused by: 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(

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.


Perform the following local-change steps:
  1. Import the “RULE-UTILITY-LIBRARY UTILITIES PEGA-RULES” to working environment.
  2. Click on “Generate Library” to generate the library to resolve the issue.

Published May 7, 2017 - Updated May 17, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.