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
- Configure a Time Off take rule that runs a rule function during absence request creation.
- 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.
- 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:
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
Attachments
| Pasted image.png |
SAP Knowledge Base Article - Public