Symptom
- When executing an OData API call via the OData V4 adapter, the request fails with HTTP status 406 – Not Acceptable.
- The following error message is returned:
The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the requestnull [HTTP/1.1 406 Not Acceptable] - In the LJS trace, the request and response details show:
ODataV4_Adapter_Request_Headers:
Accept : application/json;odata.metadata=full
Authorization : Basic ********
Content-Type : application/json;odata.metadata=full
OData-MaxVersion : 4.0
OData-Version : 4.0
OriginalPayload : <?xml version='1.0' encoding='UTF-8'?><ProjCustFieldsSet>
Proxy-Authorization : Bearer ********
query : xxxx
sap-client : xxxxx
SAP-PASSPORT : 2A54482A0300E600004350495F7A67322D7375622D7072642D30302D6575617A303100000000000000000000000000000000000000000000000000000000000000000000000000000000004D657373616765526563657074696F6E00000000000000000000000000000000000000000000000000004350495F7A67322D7375622D7072642D30302D6575617A30310000000000000064616332373331366337303834393265386330386333636536636635313633650000000014DAC27316C708492E8C08C3CE6CF5163E7D592333D8BD43F7A9237981890B9AA700000001000000002A54482A
SAP_MessageProcessingLogID: xxxx
SAP_MplCorrelationId : xxxx
SAP_PregeneratedMplId : xxxx
X-CSRF-Token : fetchHTTP Status Line:HTTP/1.1 406 Not Acceptable
ODataV4_Adapter_Response_Headers:
content-type : application/json;odata.metadata=minimal;charset=utf-8
content-length : 930
x-csrf-token : xxxx
content-language : en
odata-version : 4.0
sap-server : true
sap-perf-fesrec : 53929.000000
set-cookie : sap-usercontext = xxxx; path=/;
set-cookie : SAP_SESSIONID_PS4_400 = xxxx; path=/; HttpOnly;ODataV4_Adapter_Response_Body:
{"error":{"code":"/IWCOR/CX_OD_NOT_ACCEPTABLE/005056A509B11ED19BEB6513AA349DA5","message":"The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request","@SAP__common.ExceptionCategory":"Client_Error","innererror":{"ErrorDetails":{"@SAP__common.Application":{"ComponentId":"PS-ST","ServiceRepository":"xxxx","ServiceId":"xxxx","ServiceVersion":"0001"},"@SAP__common.TransactionId":"dac27316c708492e8c08c3ce6cf5163e","@SAP__common.Timestamp":"20260128120500.883563","@SAP__common.ErrorResolution":{"Analysis":"Use ADT feed reader \"SAP Gateway Error Log\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details","Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"}}}}} - The response body contains an OData error raised by the backend service.
Read more...
Environment
- SAP Integration Suite
- SAP Business Technology Platform
- Cloud Integration
Product
Cloud Integration all versions ; SAP Integration Suite all versions
Keywords
HTTP 406, Not Acceptable, OData GET call, OData V4 adapter, odata.metadata=full, odata.metadata=minimal, Accept Header, API error, response entities, content characteristics, SAP Integration Suite, OData API, cpi, cloud integration , KBA , LOD-HCI-PI-CON-OD , OData Adapters , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview