Symptom
Specific Benefit not shown on open enrollment though the Eligibility rule sets Entitlement Amount to a value.
PS: Rule trace shows : Block processed with status 'SUCCESS_WITH_LOGS'. and that Benefit.entitlementAmount value is SET as well.
Environment
SAP SuccessFactors Employee Central: Employee Benefits
Reproducing the Issue
- Navigate to Benefits overview page for an employee.
- The eligible benefit is not showing up in open enrollments though entitlement being set by Eligibility rule.
Cause
Rule configuration issue.
Resolution
The rule returns "SUCCESS_WITH_LOGS" when it has to deal with transactions accessing null or anything which does not exist.
- The sample rule which leads to this behavior is as below:
Here, Commuting allowance is a custom MDF object which is not created for an user. So, when we try to check the externalCode of this non existent object it is like null.externalCode and system gives out SUCCESS_WITH_LOGS on this null scenario and does not work as it should.
- Instead, we can check if the object itself is not created like below, which works fine if we are just checking on existence of MDF object:
- OR if the need is to check for a field within the MDF object, if it existed, then form the rule to check for object's existence first AND followed by field check as below:
- If the MDf object is not available via Context.Current User, then it can be navigated via any user field.Employment Detials.MDF object like below:
Now the rule returns SUCCESS and shows benefit if the rule set Entitlement Amount.
Keywords
Success_with_logs, success with logs, entitlement amount, benefit enrollment, benefit eligibility, eligible benefit, benefit not showing, open enrollment. , KBA , LOD-SF-EC-GBF , Global Benefits , Problem