Symptom
When inserting a Candidate Profile through OData API, the system returns the following error:
<code>COE_GENERAL_BAD_REQUEST</code><message lang="en-US">country invalid, </message></error>
"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 Recruiting Management
Cause
NOTE: Make sure that the correct Country value is provided in the payload, otherwise the following cause is not valid: 2866333 - Upsert country with a label different than english does not work - Recruiting Management.
The cause behind the error is a Business Rule defaulting the Country field with one or more specific values. Here's an example:
Resolution
The system is not designed to support a Business Rule that will change the Candidate's Country value while the profile is being created. As the OData API operation triggers the Business Rule, the error happens.
Make sure that no Business Rule is associated with the Candidate Profile to change the Country value.
See Also
OData API Guide - SAP SuccessFactors API Reference Guide (OData V2)
Keywords
country, invalid, odata, api, picklist, bad, request, call, upsert, insert , KBA , LOD-SF-RCM , Recruiting Management , LOD-SF-RCM-CAN , General Candidate Issues (not Offers, not Profiles) , LOD-SF-RCM-API , Webservices & APIs , Problem