SAP Knowledge Base Article - Public

3753488 - "Error happened when invoking rule function: getAgeOfDependentInMonths, root cause: null" is encountered after introduction of Country/Region-Specific Dependent Configuration – 1H 2026

Symptom

- A user has at least 1 dependent in their Dependents portlet.

- A business rule has been configured which uses the 'Get Age of Dependent in Months()' rule function, where a value is provided for the User ID parameter of the rule function. There is no value provided for the Country/Region parameter.

- It is mentioned in the Introducing Country/Region-Specific Dependent Configuration | SAP Help Portal What’s New Viewer, that for rules that retrieve dependent data "if User ID is provided (with or without Person ID) and the country/region field is empty, the system uses the user's country/region to determine the dependent's country/region”. However, the rule still fails to retrieve the country/region, thus causing the error, "Error executing rule XXX: ERROR_RULE_FUNCTION - Error happened when invoking rule function: getAgeOfDependentInMonths, root cause: null. 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 1H 2026

Reproducing the Issue

1. Ensure the user has valid dependent data.

2. Carry out the action that will trigger the business rule that uses the 'Get Age of Dependent in Months()' rule function.

3. Note that the error, "Error executing rule XXX: ERROR_RULE_FUNCTION - Error happened when invoking rule function: getAgeOfDependentInMonths, root cause: null. Please check rule definition" occurs either in the UI or a rule trace 

Cause

The error is caused by the dynamic "EmployeeTime.Start Date" reference in the "As On Date" field of the rule function parameters of the rule configuration as seen in the screenshot above.

Resolution

The issue is planned to be fixed in patch 2605P7 which will be released on 2nd June 2026 in Preview environments, and 4th June 2026 in Production environments.

Workaround

There are two potential workarounds for this issue until it is resolved:

  • Option 1: Replace the dynamic "EmployeeTime.Start Date" reference in the "As On Date" field with a hardcoded date value as a temporary fix or the 'Today()' function.
  • Option 2: Disable this rule temporarily to unblock the operation.

 

See Also

Keywords

KI1H2026, ECT-272367, Error happened when invoking rule function: getAgeOfDependentInMonths, root cause: null. Please check rule definition, Error executing rule XXX: ERROR_RULE_FUNCTION - Error happened when invoking rule function: getAgeOfDependentInMonths, root cause: null. Please check rule definition, Get Age of Dependent in Months(), country specific , region specific, business rule, rule, custom rule
, KBA , LOD-SF-EC-DPD , Dependents Management , LOD-SF-EC , Employee Central , LOD-SF-EC-TIM , Time Off , Known Error

Product

SAP SuccessFactors Employee Central 2605

Attachments

Pasted image.png