SAP Knowledge Base Article - Public

3485683 - API invalid picklist error for updateFromExternalHRIS ONB

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

  1. Maintain sourceOfRecord name to SourceOfRecord via picklist centre. (S - Capital Letter)
  2. Remove any optional data which not supposed to update via API  "assignmentIdExternal": "",
     "personIdExternal": ""
  3. Given permission "Update new recruit data to external HRIS" for the API User 
  4. Post changes, You can send the post query, please find the result as mentioned below:
    This request carried out your requirements successfully.

See Also

https://help.sap.com/docs/SAP_SUCCESSFACTORS_PLATFORM/d599f15995d348a1b45ba5603e2aba9b/c9c44c74416042ad9766dd6137d55042.html

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