SAP Knowledge Base Article - Public

2280817 - Getting "Invalid request message! Error: Invalid Id value JA$###-#####" error response when querying for SF API object JobApplication$###

Symptom

Getting "Invalid request message! Error: Invalid Id value JA$###-##### (expected format: null-[LONG_ID])!. Occurred at row 1!" error response when querying for SF API object JobApplication$###

Environment

SAP Successfactors

Reproducing the Issue

When trying to update a Job Application field using the Job Application API you are getting the error.

Example SOAP Request:

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<update xmlns="urn:sfobject.sfapi.successfactors.com" xmlns:ns2="urn:fault.sfapi.successfactors.com">
<type>jobapplication$792</type>
<sfobject>
<id>JA$792-10643</id>
<type>jobapplication$792</type>
<lastName xmlns="" xmlns:ns3="urn:sfobject.sfapi.successfactors.com">result1</lastName>
</sfobject>
</update>
</S:Body>
</S:Envelope>

 

Example SOAP Response:

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header/>
<S:Body>
<ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
<faultcode>ns2:Server</faultcode>
<faultstring>SFAPI Domain Error!</faultstring>
<detail>
<ns2:SFWebServiceFault xmlns="urn:sfobject.sfapi.successfactors.com" xmlns:ns2="urn:fault.sfapi.successfactors.com">
<ns2:errorCode>INVALID_REQUEST_MESSAGE</ns2:errorCode>
<ns2:errorMessage>Invalid request message! Error: Invalid Id value JA$792-10643(expected format: null-[LONG_ID])!. Occurred at row 1!</ns2:errorMessage>
</ns2:SFWebServiceFault>
</detail>
</ns2:Fault>
</S:Body>
</S:Envelope>

Cause

Job Application ID is in incorrect format.

Resolution

You need to just specify the ID, not the prefix.

Example: use "10643" instead of "JA$792-10643"

 

Example Soap Request:

<?xml version="1.0" encoding="UTF-8"?>

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<update xmlns="urn:sfobject.sfapi.successfactors.com" xmlns:ns2="urn:fault.sfapi.successfactors.com">
<type>jobapplication$792</type>
<sfobject>
<id>10643</id>
<type>jobapplication$792</type>
<lastName xmlns="" xmlns:ns3="urn:sfobject.sfapi.successfactors.com">result12</lastName>
</sfobject>
</update>
</S:Body>
</S:Envelope>

 

Example Soap Response:

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header/>
<S:Body>
<updateResponse xmlns="urn:sfobject.sfapi.successfactors.com" xmlns:ns2="urn:fault.sfapi.successfactors.com">
<result>
<jobStatus>OK</jobStatus>
<message/>
<objectEditResult>
<id>10643</id>
<errorStatus>OK</errorStatus>
<editStatus>UPDATED</editStatus>
<index>0</index>
<message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</objectEditResult>
</result>
</updateResponse>
</S:Body>
</S:Envelope>

Keywords

KBA , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM Suite 1602