SAP Knowledge Base Article - Public

3485683 - API invalid picklist sourceOfRecord error for updateFromExternalHRIS - Onboarding

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

  1. Try update using the below code, with POST method
  2. 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

  1. 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.

  2. Remove any optional data which not supposed to update via API  "assignmentIdExternal": "",
     "personIdExternal": ""

  3. Give permission "Update new recruit data to external HRIS" to the API User.

  4. 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