Symptom
When trying to request a leave below error appear in the screen:
"ERROR_RULE_FUNCTION [rule name] - Error happen when invoke rule function: getCalendarDays, root cause: while trying to read the field 'cdate' of a null object loaded from local variable 'date'. Please check rule definition."
Environment
- SAP SuccessFactors Employee Central
- Time off
Reproducing the Issue
- Go to employee profile
- Time Off
- Choose the desired time type and days
- Click on Submit
Result: "ERROR_RULE_FUNCTION [rule name] - Error happen when invoke rule function: getCalendarDays, root cause: while trying to read the field 'cdate' of a null object loaded from local variable 'date'. Please check rule definition."
Cause
Configuration issue, probably the rule mentioned is a take rule which is trying to evaluate the separation/termination date of the employee,which is Null at this moment.
Resolution
Change the configuration of the rule mentioned in the error to get a valid value.
Keywords
error, time off, ERROR_RULE_FUNCTION, getcalendardays, cdate, date, null, object, request, leave, error, , KBA , LOD-SF-EC-TIM , Time Off , Problem