Symptom
When trying to initiate onboarding process for external user using initiateOnboardingForUser API, the error is observed:
Error: [COE0019]Validation failed. Start Date mismatch with the Home Address entity: homeAddress for variants: mailing.
Note it will take your variant, so it can be "home" for example.
Environment
SAP SuccessFactors Onboarding
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
Start date provided in body is not matching with start date of homeAddress (PerAddressDEFLT API).
Resolution
Check the start date of All Employee Central entities (PerPersonal, EmpJob, EmpEmployment, EmpCompensation, PerAddressDEFLT, EmpJobRelationships, PerPersonRelationship) to make sure it has same start date / effective start date as given in API query.
Example adding PerAddressDEFLT:
{
"__metadata": {
"uri": "PerAddressDEFLT",
"type": "SFOData.PerAddressDEFLT"
},
"addressType": "home",
"personIdExternal": "454",
"startDate": "/Date(1532572453000)/",
"endDate": "/Date(3173567653000)/",
"county": "5498",
"province": "5506",
"state": "3661",
"city": "Shanghai",
"country": "CHN",
"zipCode": "201203",
"address3": "502, no.66, lane 888, Somewhere district",
"address1": "15-71 NCI Tower, No. 13332 A Test Ave"
}
Note this is an example and it is necessary to adapt to the data to your entities that are mandatory (validation is against Manage Business Configuration entities).
See Also
Keywords
initiateOnboardingForUser, COE0019, Validation failed, Start, Date, mismatch, ODATA, API, SF, initiate onboarding, start date, Employee Central, EC, OBX, Onboarding, onb, ats, integration, rehire , KBA , LOD-SF-OBX-ATS , ATS Integration , Problem
SAP Knowledge Base Article - Public