Symptom
- Receiving the following error while trying to update POST method:
- The request could not be completed due to an invalid picklist value ONB specified in parameter sourceOfRecord. Ensure that valid picklist values are passed.
Environment
SAP SuccessFactors Onboarding
Reproducing the Issue
- Try update using the below code, with POST method
- Receive error: The request could not be completed due to an invalid picklist value ONB specified in parameter sourceOfRecord. Ensure that valid picklist values are passed
"__metadata":{
"uri":"updateFromExternalHrisONB",
"type":"SFOData.updateFromExternalHrisONB"
},
"onbStableId": "xxxxxxxxxxxxxxxxx",
"hireStatus": "HIRED",
}
Cause
The issue is caused by SourceofRecord name misconfiguration in Picklist Center and / or incorrect Role Based Permissions of the API User.
Resolution
- Maintain sourceOfRecord name as SourceOfRecord in Admin Center > Picklist Center:
S - is a Capital Letter;
"Non-unique External Code" fields have the same corresponding external code, so ONB for ONB and EC for EC. - Remove any optional data which not supposed to update via API "assignmentIdExternal": "",
"personIdExternal": "" - Give permission "Update new recruit data to external HRIS" to the API User.
- Post changes, try again the post query, and the result is as mentioned below:
This request carried out your requirements successfully.
See Also
SAP Help Portal: updateFromExternalHrisONB
Keywords
API, OBX, sourceOfRecord, Picklist, Invalid, API Call, External HRIS, updateFromExternalHRIS, Ensure that valid picklist values are passed, SourceOfRecord , KBA , LOD-SF-OBX-ATS , ATS Integration , How To
Product
SAP SuccessFactors Onboarding
SAP Knowledge Base Article - Public