2436455 - serverErrorEception on querying JobRequisition Entity via ODATA

SAP Knowledge Base Article - Public

2436455 - serverErrorEception on querying JobRequisition Entity via ODATA

Symptom

While querying on Job reqiusition entitiy via ODATA API, you will get the error

{

  "error": {

    "code": "ServerErrorException",

    "message": {

      "lang": "en-US",

      "value": "Remote Exception: RuntimeException; nested exception is: \n\tjava.lang.NullPointerException: while trying to invoke the method com.successfactors.coengine.provider.j2.meta.J2SingleColumnProperty.getName() of a null object loaded from local variable 'defaultLanguageProp'"

    }

  }

}

Environment

SuccessFactrors-Recruiting Managenment

Cause

defaultLanguage Field is not defined in any of the requisition Templates

Resolution

Please perform the following to resolve this error.

1) Update any of the JobRequisition templates in provisioning with the defaultLanguage. 


2) Refresh the Odata API metadata cache after updating the jobreq template.

Please follow the KBA 2171588 which explains how to refresh the Odata API metadata

An example xml of the defaultLanguage is shown below:

<field-definition id="defaultLanguage" type="text" required="false" custom="false">

<field-label><![CDATA[Default Language]]></field-label>

<field-label lang="en_US"><![CDATA[Default Language]]></field-label>

<field-description><![CDATA[Default Language]]></field-description>

</field-definition>

See Also

defaultLanguageProp, nullPointerexception, serviceErrorException

Keywords

KBA , LOD-SF-RCM-API , Webservices & APIs , Problem

Product

SAP SuccessFactors HCM Core 1611