Symptom
You are trying to run a Account creation calendar and the job is failing without giving you any log in Monitor Job.
But if you run a simulation the job finishes with no errors
Environment
SAP SuccessFactors Employee Central (EC) - All Versions
- The Time account time of which you are trying to create the account is using the flexible star date rule
Reproducing the Issue
- Go to "Manage Time Off Calendars";
- Create the account creation calendar for the time account type you want;
- Simulate and see that the job finishes with no error;
- Now run the job an it will give you the message "Job Failed";
FOR PARTNERS ONLY:
- Go to the provisioning the check the job;
- Upon checking in the details you can see an error like the below one:
java.util.concurrent.ExecutionException: java.lang.NullPointerException: while trying to invoke the method java.util.Date.equals(java.lang.Object) of a null object returned from com.successfactors.absence.bean.employeetimeaccount.calendarlogger.AccountResultBean.getStartDate()
Cause
The Time Account Type Date Reference object was not created for the employee affected by the calendar run.
This object is automatically created by the system when the time profile is assigned to an employee, however, if by the time you have added the time profile to the employee, that specific time type was not a flexible start date one then the object is not created.
This means that if you edit a time account type already assigned to a time type which is being used for any employee and you make this time account type as a flexible start date, then the object Time Account Type Date Reference will not be created.
Resolution
Please perform the following steps:
- Run the account creation calendar as simulation;
- Since the job will finish, then you'll have all the user IDs that are affected by that specific calendar;
- Now remove and re-add the same time profile for the users retrieved in the step 2;
By doing the steps above, it will create the Time Account Type Date Reference for the users.
Keywords
KBA , LOD-SF-EC-TIM , Time Off , Problem