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.

Implementing Time Management in SAP SuccessFactors - Before You Start at: https://help.sap.com/docs/SAP_SUCCESSFACTORS_TIME_TRACKING/6619e553226244d89872529ae3f8df34/190db239ea754fa49efed0a1404345e6.html?state=PRODUCTION,undefined&q="Use%20of%20Absence%20Rule%20Functions%20Restricted%20"&locale=en-US

  • Basically what this means is that absence function are to be used only with absence time type
  • so you cannot use and absence function on a time type which is not for absence

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