SAP Knowledge Base Article - Public

2871271 - Unable to request leave because of a rule error - Employee Central

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

  1. Go to employee profile
  2. Time Off
  3. Choose the desired time type and days
  4. 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

Product

SAP SuccessFactors HXM Core 1911