Skip Navigation
Expand
Rulebase compile error for Then and Else clauses
Answer ID 2534   |   Last Review Date 12/12/2018

Why do I receive a 'Rulebase Compile Error' when compiling my rulebase?

Environment:

Business Rules

Issue:

When I try to compile our rules, I get an error:

Rulebase Compile Error 
Rules following 'Rule Name' will never be evaluated. Both the Then and Else clause of this rule contain a Stop.

Resolution:

When creating rules, if you include the action Transition State and Stop in both the THEN and the ELSE clauses of the rule, you cannot list other rules beneath that rule or you will get the following error:

Rulebase Compile Error
Rules following 'Rule Name' will never be evaluated. Both the Then and Else clause of this rule contain a Stop.

Due to the Transition State and Stop action in both parts of the rule, all records will be transitioned to another state.  As a result, there is no way for a record to continue past that rule to be compared to any rules listed beneath it.

To resolve this, you must either:

  • Modify the rule so that either the THEN or ELSE clause does not transition to another state, or
     
  • Reorder your rules so that the rule with the Transition State and Stop actions is listed last within the rule state.

Available Languages for this Answer:

Notify Me
The page will refresh upon submission. Any pending input will be lost.