SAP Knowledge Base Article - Public

3224602 - Error "jobReqId required, with the index 0" when Updating a Job Application through OData API - Recruiting Management

Symptom

Error encountered while updating a job application through OData API: "jobReqId required, with the index 0".

Environment

SAP SuccessFactors Recruiting Management

Reproducing the Issue

  1. Try to upsert a job application through API
  2. An error is received.

POST: .../odata/v2/upsert?$format=json

Sample Request:

{
"__metadata":{

"type":"SFOData.JobApplication",
"uri": "JobApplication(application=xxx)"
},
"samplefield": "xxx"

}

Sample Response:

{
"d" : [
{
"key" : null, "status" : "ERROR", "editStatus" : null, "message" : "jobReqId required, with the index 0", "index" : 0, "httpCode" : 500, "inlineResults" : null
}
]
}

Cause

  1. The request contains an incorrect applicationId.
  2. The applicationId provided in the request belongs to an application of a deleted job requisition.

Resolution

Please provide a valid applicationId in the Upsert request.

While it is possible to retrieve the application ids of deleted job requisitions using API, it will not allow any update/upsert operation.

See Also

KBA 3552898 - Invalid Application ids Retrieved When Querying the JobApplication entity - Recruiting Management

Keywords

Application entity, Odata, Deleted applications, jobReqId required with the index 0 , KBA , LOD-SF-RCM-API , Webservices & APIs , LOD-SF-RCM-APP , Applicants and Job Applications , Problem

Product

SAP SuccessFactors Recruiting all versions