Symptom
You're trying to initiate onboarding process for external user using initiateOnboardingForUser API, when you POST the API query,
Error: [COE0019]Validation failed. Start Date mismatch with the Home Address entity: homeAddress for variants: mailing.
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 HCM Suite
- ODATA API
Reproducing the Issue
- POST below request using initiateOnboardingForUser API:
https://<API-Server>/odata/v2/initiateOnboardingForUser
Body:
{
"userId":"john",
"atsApplicationId":"john",
"startDate": "2019-08-29T00:00:00"
} - Error: [COE0019]Validation failed. Start Date mismatch with the Home Address entity: homeAddress for variants: mailing.
Cause
From the error we can say that, start date provided in body is not matching with start date of homeAddress (PerAddressDEFLT API).
All Employee Central entities (PerPerson, EmpJob, EmpEmployment) should've same start date / effective start date as given in API query.
Resolution
Check the start date of All Employee Central entities (PerPerson, EmpJob, EmpEmployment) is same as provided in API query.
If not, please correct the start date in the query, it should match start date of EC entities.
See Also
Keywords
initiateOnboardingForUser, COE0019, Validation failed, Start Date mismatch, ODATA, API, onboarding, SF, initiate onboarding, start date, Employee Central, EC. , KBA , LOD-SF-OBD-API , Webservices & API's , Problem