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
- When try update below code by using POST method you will receive an 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 file name being wrong
- This is due to incorrect Role Based Permissions to the API User
Resolution
- Maintain sourceOfRecord name to SourceOfRecord via picklist centre. (S - Capital Letter)
- Remove any optional data which not supposed to update via API "assignmentIdExternal": "",
"personIdExternal": "" - Given permission "Update new recruit data to external HRIS" for the API User
- Post changes, You can send the post query, please find the result as mentioned below:
This request carried out your requirements successfully.
See Also
Keywords
API, OBX, sourceOfRecord, Picklist, Invalid, API Call, External HRIS, updateFromExternalHRIS , KBA , LOD-SF-OBX-ATS , ATS Integration , How To
Product
SAP SuccessFactors Onboarding all versions