Negated When rule inside When rule not found by rule resolution
A When rule negated as '![When rule name]' is referenced inside another When rule. This generates the below error when run.
"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>)
The Condition "Rule [When record] evaluates to true" expects [When record] to be an actual When rule from the smart prompt.
Replace Rule condition with actual expression.