Symptom
You would receive an application error when trying to import Job History or OData API EmpJob upsert.
The application error id would be accompanied by: Failed to perform country specific validation. Please ensure that this record is associated with a valid Company record for given dates.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
Employee Central Import Employee Data- SuccessFactors HXM Suite OData API
Reproducing the Issue
- log in into system
- Update User Information
- Import Employee Data
- Download csv file for Job History
- Fill in the fields and validate/import
- Error showed as:Failed to perform country specific validation. Please ensure this record is associated with a valid Company record for given dates.
Cause
Event Reason and Legal Entity are both a must when importing job history.
Resolution
- log in into system
- Update User Information
- Import Employee Data
- Download csv file for Job History
- Fill in the fields(Please fill in Event Reason and Legal Entity's externalCode value in template). The same is applicable for the OData request payload.
- Validate this file again, if still same error, please contact Customer Success Support team.
See Also
Keywords
Country Specific Validation Error, Failed to perform country/region specific validation. Please ensure this record is associated with a valid company, job history, import, Failed to perform country/region specific validation, Failed to perform country/region specific validation. Please ensure this record is associated with a valid Company record for given dates. Failed record info: {EmpJob/userId=XXXX, EmpJob/startDate=yyyy-mm-ddT00:00:00.000Z, EmpJob/eventReason=XXX, EmpJob/seqNumber=1}. for Key with the index 0 , KBA , LOD-SF-EC-EDP , Import Employee Data (EC Core only) , LOD-SF-EC , Employee Central , LOD-SF-INT , Integrations , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , How To