SAP Knowledge Base Article - Public

2696032 - Rule Definition Error : "This rule contains errors, which are highlighted in the rule details. Please correct them" : Post 1808 Release

Symptom

Post 1808 release Business rules are broken in customer's instance with error message:

"Rule Definition error - This rule contains errors, which are highlighted in the rule details. Please correct them"

  • This occurs with rules that have a "Raise Mesage" on then statement
  • Upon checking the Message on Manage Data -> Message definition, the Message is active
  • There were no recent changes made to the rule nor the Message Definition
  • Upon selecting "Edit Rule" and reselecting the same Message fixes this Error 

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP SuccessFactors Employee Central - b1808

Reproducing the Issue

  1. Navigate to Configure Business Rules and try to select a rule
  2. Some rule(s) with a Raise message in their definition throw the following Error , despite having a valid linked Message definition :

Rule_Error.jpg

Cause

  • This Error message comes up as a result of a new check that was introduced in the b1808 release
  • Before b1808, the rule engine will not verify Message definition, which means user will not know message definition been changed or not on the Configure business rules page
  • For example, if there was a change in parameter(s) on the Message Definition, the rule engine would not be checking this while it is being loaded
  • In the b1808 release, an additional logic was introduced to have the message definitions verified every single time a rule is loaded on the UI

Resolution

If you are encountering an error related to the message definition of a rule, this is most likely because you have deleted a Message Definition associated with the rule or removed a Message Definition Parameter that the rule requires.

You did not receive this error earlier as this is a result of recent checks added to ensure better rule quality. This is expected behavior. We suggest reviewing the associated Message Sefinition and its parameters to fix problems with the rule

Else, please edit the rule and reselect the Message Definition and re-save it

Keywords

SF, EC, Success factors, Employee Central, XAF-26008 , KBA , LOD-SF-EC-JOB-RUL , Job Info Business Rules , LOD-SF-MDF-RUL , Custom Oject based Business Rules , LOD-SF-EC-CMP-RUL , Business Rules , Problem

Product

SAP SuccessFactors Employee Central 1808 ; SAP SuccessFactors HCM Core 1808