Symptom
You are trying to import multiple leaves for the same employee on the same date as per Importing Existing Leave Requests into Time Off.
Also, according to the KBA 2332567 this should be possible however you are facing an error saying: You cannot request time off from HH:MM to HH:MM because absences already exist between these times.
Environment
SAP SuccessFactors Employee Central - Time Off
Reproducing the Issue
- Go to Import and Export Data;
- Select Download Template and Employee Time;
- Fill the Template;
- Now Select Import Data and Employee Time;
- Select and File and click in Validate;
- Go to Monitor Jobs;
- See that the Import has Failed with the log "You cannot request time off from HH:MM to HH:MM because absences already exist between these times"
Cause
When importing multiple absences on the same day for the same employee there are some details you need to consider.
- Both leaves are of the same type (hours or Days);
- In Hourly leaves, you must fill all the relevant fields;
Resolution
Make sure that both leaves are hourly and that you are filling the following fields:
- startTime: format must be 00:00:00;
- endTime: format must be 00:00:00;
- deductionQuantity: format is decimal so for example 1:30 hours are 1.5;
- quantityInHours: format is decimal so for example 1:30 hours are 1.5;
See below example for these fields:
userId | undeterminedEndDate | startTime | endTime | deductionQuantity | timeType.externalCode | startDate | endDate | approvalStatus | quantityInHours | externalCode |
Employee | FALSE | 08:00:00 | 12:00:00 | 3.75 | YOURTIMETYPE1 | 07/04/2019 | 07/04/2019 | APPROVED | 3.75 | YOURCODE |
Employee | FALSE | 13:00:00 | 17:00:00 | 3.75 | YOURTIMETYPE2 | 07/04/2019 | 07/04/2019 | APPROVED | 3.75 | YOURCODE |
Keywords
import multiple leaves import hourly leaves , KBA , LOD-SF-EC-TIM , Time Off , Problem