Symptom
- Data is wiped off for all employees for custom field under Compensation portlet, which customer was using to calculate Annual Salary.
- OnInit Rule created / modified via import is not working as expected.
Environment
SAP SuccessFactors Employee Central
Cause
- There is a restriction on the UI in system since Q4 2019 release that prevents such rule via UI however, this restriction is not present when creating rule via Import.
- There are not guardrails available to prevent creation of such rules via import.
- It is discouraged to create or change a rule configuration via import. The import should only be used to distribute a rule which was configured in one system via the “Configure Business Rules” UI to other systems.
Resolution
- It is not possible to select a 1:n association in a lookup condition. If the system is facing this issue then the rule was created before this change (2019).
- You can change the rule configuration like following to prevent the error from happening.
- In the rule create a variable like: var_currency = Compensation Information.Compensation [0].currency
- Then this variable must be used on the right side of the conditions in both lookups on the currency. Instead of using the property path directly:
- lookup Currency
- select Currency Code
- where Currency Code is equal to Compensation Information.Compensation [0].currency
- Use the variable for the property path in the lookup condition:
- lookup Currency
- select Currency Code
- where Currency Code is equal to var_currency
Keywords
INC4045578, rule based value got cleared from custom field under Compensation portlet, rule is not working as expected, onInit rule, rule created via import , KBA , LOD-SF-EC-CMP-RUL , Business Rules , LOD-SF-EC-CMP-UI , History or MSS UI , Problem
Product
SAP SuccessFactors Employee Central all versions