SAP Knowledge Base Article - Public

2980400 - onb2UpdateFromExternalHris API service error

Symptom

When running onb2UpdateFromExternalHris in Postman, the following error is showing:

 

<?xml version="1.0" encoding="utf-8"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
    <code>COE_GENERAL_SERVER_FAILURE</code>
    <message lang="en-US">[COE0019]Error while updating the hiring Info for process : <Process ID></message>
</error>
 
Backend Error: ErrorMessage = Trying to hire a candidate who is not ready to hire for process
 

Environment

SAP Successfactors Onboarding

Reproducing the Issue

Run the following query in Postman:

Post: https://<API Data Center>/odata/v2/onb2UpdateFromExternalHris

 

Body:

{
    "processId": "***",
    "userStatus": "HIRED",
    "sourceOfRecord": "ONB",
    "personIdExternal": "***",
    "assignmentIdExternal": "***",
    "userName": "*"
}

Cause

The error is pointing out to the the Hired Status in Manage Data of the affected Process ID

Resolution

The Hired Status of the Process ID in Manage Data should be set as "Ready to Hire" before running the query in Postman.

Please make sure that there is a Manager set on affected Process ID as well. 

 

Sharing this Integration Implementation guide regarding "onb2UpdateFromExternalHris" : https://help.sap.com/viewer/28bc3c8e3f214ab487ec51b1b8709adc/2011/en-US/65c2086c0d824ca18d966d0bbdceda94.html

See Also

2919052 - createOnboardee API call is failing - Onboarding 2.0

2215682 - Successfactors API URLs for different Data Centers

Keywords

onb2UpdateFromExternalHris, API, ONB 2.0, Onboarding, Postman , KBA , LOD-SF-OBX-ADM , Admin UI , Problem

Product

SAP SuccessFactors Onboarding