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
- Call a When rule in the visible When condition of a layout
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.