SAP Knowledge Base Article - Public

3782327 - Rule execution failed: "Error executing rule get_absence: ERROR_RULE_FUNCTION - Error happened when invoking rule function: absenceInDaysForPeriodBasedOnCalendarDays, root cause: Mandatory parameters were not supplied. Please check rule definition."

Symptom

When applying a leave, an error message appears:Error executing rule get_absence: ERROR_RULE_FUNCTION - Error happened when invoking rule function: absenceInDaysForPeriodBasedOnCalendarDays, root cause: Mandatory parameters were not supplied. Please check rule definition.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental. 

Environment

SAP SuccessFactors Employee Central

Reproducing the Issue

  1. Configure a Time Off take rule that runs a rule function during absence request creation.
  2. Start an absence request where the rule function depends on parameters sourced from fields that are not yet filled in the request, error message displays.
    take rule error.png

  3. The error disappears after maintaining the custom field.

Resolution

This is expected because the field involved in the rule function is not maintained yet. If you already set the field to be mandatory and want to avoid the error message, please add if condition in the take rule as below:
if condition.png

Keywords

time off, take rule, rule execution failed, triggerEmployeeTimeAlertEvent, mandatory parameters were not supplied, employee time alert, validation error, absence request, time management, rule function error, get absence in days, calendar days, time type, empty field, parameter missing , KBA , LOD-SF-EC-TIM-RUL , TAT Rules, Validation & Take rules , Problem

Product

SAP SuccessFactors Employee Central all versions

Attachments

Pasted image.png