SAP Knowledge Base Article - Public

2719828 - b1811: Specific Time Off Rule Functions Not Working

Symptom

  • Error message is encountered when requesting absences for certain time types where absence validation rule using employee time based time off rule functions rule function is associated: "Error executing rule: ERROR_RULE_FUNCTION - Error happen when invoke rule function: ruleFunctionName, root cause: Either the 'lhs' or 'value' is null. Please check rule definition."
  • Any time off rule using the following rule functions are not properly working: Calculate Balance(), Get Sum of Advances(), Get Sum of Accruals Since Last Transfer(), Calculate Entitlement Balance(), Is Consecutive Limit for Time Type Reached(), Get Absence in Days for Period based on Calendar Days for Time Types (), Get Absence in Days for Period based on Working Days for Time Types(), Get Absence in Hours for Period for Time Types(), Get Balance For Posting Types In Period() and Get Number Of Postings For Posting Types In Period()

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
  • SAP SuccessFactors Employee Central Time Off

Reproducing the Issue

1. Go to Admin Center > Configure Business Rules and configure an absence validation rule using Is Consecutive Limit for Time Type Reached() function

TakeRuleValidationConfig.png

2. In Admin Center > Manage Time Off Structures, add the absence validation under Take Rules of the time type. Click Save.

TimeTypeConfigTakeRule.png

3. Request for an absence using the time type where validation was added. Rule execution error message is displayed.

TimeOffESS1.png

Cause

This is currently a known preview release issue.

Resolution

This defect will be fixed via patch on November 30th/December 1st (PTCH-28852 & PTCH-28853)

Keywords

Take Rule, Rule Function, Absence Validation, Execution Error, Error executing rule: ERROR_RULE_FUNCTION, Error happen when invoke rule function: areConsecutiveQuantityReachedForEmployeeTime, Calculate Balance, Get Sum of Advances, Get Sum of Accruals Since Last Transfer, Calculate Entitlement Balance, Is Consecutive Limit for Time Type Reached, Get Absence in Days for Period based on Calendar Days for Time Types, Get Absence in Days for Period based on Working Days for Time Types, Get Absence in Hours for Period for Time Types, Get Balance For Posting Types In Period, Get Number Of Postings For Posting Types In Period, 1811,TIM-7436, PTCH-28853, PTCH-28852, XAF-27070 , KBA , LOD-SF-EC-TIM , Time-Off , Bug Filed

Product

SAP SuccessFactors HCM Core 1811