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

Negated When rule inside When rule not found by rule resolution

SA-11

Summary


A When rule negated as '![When rule name]' is referenced inside another When rule. This generates the below error when run.


Error Messages



"Looking for instance Rule-Message FAILED TO FIND A 'RULE-OBJ-WHEN' WITH THE NAME '!ISCOMMODITYCODEEMPTY' THAT APPLIES TO 'YOURRULE-FW-GSMFW-WORK-AWARD'; NO RULES WITH THIS NAME WERE FOUND IN THE RULEBASE. in the Rule Resolution cache"


Steps to Reproduce

  1. Call a When rule in the visible When condition of a layout
  2. Inside the top When rule, reference another negated When rule (!<when rule name>)

Root Cause



The Condition "Rule [When record] evaluates to true" expects [When record] to be an actual When rule from the smart prompt.


Resolution



Replace Rule condition with actual expression.

Published February 15, 2016 - Updated October 8, 2020

Was this useful?

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.

Did you find this content helpful?

Want to help us improve this content?

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