SAP Knowledge Base Article - Public

3839677 - Time Sheet Fails to Load with Error When Employee Has Negative Time Account Balance and Valuation Type "Valuation Function" Is Used

Symptom

When the valuation type "Valuation Function" is configured and the employee has a negative balance on at least one time account, the time sheet fails to load and one of the following errors is displayed:

Cannot invoke 'java.lang.Comparable.compareTo(Object)' because the return value of 'java.util.function.Function.apply(Object)' is null

OR

Cannot invoke 'org.joda.time.ReadablePartial.size()' because '' is null

Environment

SAP SuccessFactors Time Tracking

Reproducing the Issue

  1. Valuation type "Valuation Function" is configured in the assigned Time Recording Profile of the employee.
  2. The employee has a negative balance on at least one time account.
  3. Open the time sheet UI of the employee 
  4. Observe that the time sheet UI fails to load and one of the error messages is shown:

Cannot invoke 'java.lang.Comparable.compareTo(Object)' because the return value of 'java.util.function.Function.apply(Object)' is null

OR

Cannot invoke 'org.joda.time.ReadablePartial.size()' because '' is null

Cause

  • This is a Known Error from product release 2H 2026.
  • The new valuation type "Valuation Function", introduced in 2H2026 release, does not handle negative time account values correctly. 

Resolution

The fix for this issue is planned to be deployed with the patch 2H 2026 P3.
For patch timelines, please review SAP SuccessFactors - Patch Details > 2H2026 PREVIEW PATCH NOTES

Workaround

No workaround is available.

See Also

Keywords

KI2H2026, TIM-61414, Valuation Function, time sheet error, negative time account balance, time account, compareTo, ReadablePartial, timesheet fails to load, SF TTR, SuccessFactors Time Tracking, time sheet error
, KBA , LOD-SF-TTR-TMS , Time Sheet , Known Error

Product

SAP SuccessFactors Time Tracking all versions