Symptom
When Customer tries to connect with SF system using OData query but faces below Error as they are using "Search" Operation for Query.
<reason>Error sending bytes: null. :Application Error</reason>
- Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SAP SuccessFactors HXM suite
- Integrations
- OData API
- Integrations
Reproducing the Issue
1. Run the query in third party application using "Search" operation(oracle).
2. Run the below query.
https://apisalesdemo4.successfactors.com:443/odata/v2/FOBusinessUnit(externalCode='%7BXXXXX%7D',startDate=datetime'%7BXXXXX%7D')?%24select=externalCode%2ClastModifiedOn%2Cname%2Cstatus
3. Received below error as response.
error message:
Fault:<soap-env:Fault xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">soap:Server</faultcode>
<faultstring>ICS runtime execution error</faultstring>
<detail>
<ICSfaultVar />
<reason>Error sending bytes: null. :Application Error</reason>
<operation>SearchFOBusinessUnit</operation>
<request_payload />
</detail>
</soap-env:Fault>
Cause
This is expected behavior from the system.
The operation used in the third-party application is "Search" which is not supported operation for OData API call.
Resolution
Change the operation to "GET" and execute the query the see the output.
You can refer below OData guide for understanding the supported operation for entity
SAP SuccessFactors HXM Suite OData API: Reference Guide (V2)
Keywords
Supported Operation, Search, Get, Query, Insert, Upsert, Error sending bytes: null. :Application Error , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem