SAP Knowledge Base Article - Public

2546468 - Accrual Calendar Jobs failing with error "null object loaded from field com.successfactors.absence.app.workschedule.WorkScheduleInfo.jobInfo"

Symptom

We have been facing an issue with accruals, the time off calender job is failing with the error d “getWorkSchedules() of a null object loaded from field com.successfactors.absence.app.workschedule.WorkScheduleInfo.jobInfo” We have tried to investigate from null Workschedule entries for any of the employees but no luck, we couldn’t figure out the same.

OR

Accrual calendar job run fails with error as seen in the backend/provisioning job: "java.lang.NullPointerException: while trying to invoke the method com.successfactors.absence.app.absencejobinfo.UserAbsenceJobInfo.getWorkSchedules() of a null object loaded from field com.successfactors.absence.app.workschedule.WorkScheduleInfo.jobInfo"

Environment

SuccessFactors

Employee Central 2.0

Time-Off

Reproducing the Issue

Step 1:Manage Time Off calendar

Step 2:Filter jobs for time account type and select date range values.

Step 3:See all the jobs fail without any jobResponse file in the Monitor Jobs admin tool.

Cause

how to check scenario of rule.PNG

The accrual rule attached to the time account type was not created from "Accrual" scenario of creating business rules but from some other.

For example: "Accruals On Planned Working Times" scenario as shown in the screenshot above.

The rule nowhere used the parameters of the "Planned working times variables".

Resolution

create new rule.PNG

select accrual scenario.PNG

Create a new accrual business rule, by selecting "Accrual" Scenario.

 Copy the same logic as in the rule and save it.

 Attach this rule to the accrual rule of the time account type.

 If required change the recruit /hire rule too.

Keywords

Accrual Calendar job runs fails, "null object loaded from field com.successfactors.absence.app.workschedule.WorkScheduleInfo.jobInfo", time off, error, employee central, absence management, work-schedule, work schedule, jobInfo , KBA , LOD-SF-EC-TIM , Time Off , Problem

Product

SAP SuccessFactors HCM Core all versions