SAP Knowledge Base Article - Public

3244252 - You are Trying to use an Absence Rule Function With a Time Type That is not of the Absence Category

Symptom

Application Error When Creating an Absence:

error "absenceInDaysForPeriodBasedOnCalendarDays: Error happened when invoking rule function: absenceInDaysForPeriodBasedOnCalendarDays, root cause: You are trying to use an absence rule function with a time type that is not of the absence category. Check the rule function. Absence rule functions can only be used with absence time types.",Rule "RULE_ID" execution failed with error "absenceInDaysForPeriodBasedOnCalendarDays: Error happened when invoking rule function: absenceInDaysForPeriodBasedOnCalendarDays, root cause: You are trying to use an absence rule function with a time type that is not of the absence category. Check the rule function. Absence rule functions can only be used with absence time types."

Environment

  • SAP SuccessFactors HXM Suite Core 2205
  • Employee Central
  • Time Off

Reproducing the Issue

  • Create an absence
  • Error occurs

Cause

Configuration issue:

The use of absence rule functions with attendance time types led to errors in the system. We added this validation to prevent any unwanted exceptions.

Resolution

We strongly encourage customers to use absence rule functions only for absence time types.

SAP SuccessFactors What's New Viewer - Use of Absence Rule Functions Restricted to Absence Time Types at: https://help.sap.com/docs/SAP_SUCCESSFACTORS_RELEASE_INFORMATION/8e0d540f96474717bbf18df51e54e522/a0211b370ee04930a60c3499a1073797.html?locale=en-US

Keywords

absenceInDaysForPeriodBasedOnCalendarDays, "You are trying to use an absence rule function with a time type that is not of the absence category", "Application Error When Creating an Absence", "Absence rule functions can only be used with absence time types" , KBA , LOD-SF-EC-TIM , Time Off , Problem

Product

SAP SuccessFactors Learning 2205