SAP Knowledge Base Article - Public

2327367 - Getting error message: "COE_GENERAL_SERVER_FAILURE" when executing a Job Requisition query without the 'select' parameter

Symptom

Trying to query the Job Requisition entity with a JobReqId in the format defined in handbook but getting an error when trying to do so.

Request is: https://apiX.successfactors.com:443/odata/v2/JobRequisition('1816')

And response-

<?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">Failed to retrieve result with given criteria.</message>
   </error>

 

However when executing query with 'select' parameter, the results are returned as expected which proves the data is present for this JobReq Id-

https://apiX.successfactors.com:443/odata/v2/JobRequisition('1816')?$select=jobReqId

Environment

Successfactors

Cause

The issue is because the job requisition templates defined for this instance do not have the defaultLanguage set.

Resolution

In order to resolve the issue you need to follow below steps-

  1. Update the job requisition templates with the defaultLanguage.
  2. Refresh the Odata API metadata cache after updating the job requisition template.
  3. Once done, again execute the query and verify the results.
  4. Issue should be resolved.

Keywords

Issues with Job Requisition Entity Error message: "Failed to retrieve result with given criteria." with Job Requisition query without 'select' parameter. , KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM suite all versions ; SAP SuccessFactors Recruiting all versions