I am executing a batch - OData post request from a SAPUI5 application and the request fails with the error "Resource not found for segment ''". See the error details below. Since the error doesn't mention the resource name, it is challenging to identify the root cause. Any suggestion will be highly appreciated.
Service call:
URL: https://hostname:8443/sap/opu/odata/sap/ZXX_SRV/$batch?sap-client=300
Payload:
--batch_6969-e58e-ec21
content-type: multipart/mixed; boundary=changeset_d92c-088b-e031
--changeset_d92c-088b-e031
content-type: application/http
content-transfer-encoding: binary
MERGE EntitySet(Material='001',Plant='001')?sap-client=300 HTTP/1.1
sap-contextid-accept: header
Accept: application/json
Accept-Language: en-US
DataServiceVersion: 2.0
MaxDataServiceVersion: 2.0
x-csrf-token: RAHO0LixZ5pyk9qoDbsJDw==
Content-Type: application/json
Content-Length: 520
{
"Material": "1000181334456",
"Plant": "6000",
"Field1": "2510150w0",
"Field2": "1er"
}
--changeset_d92c-088b-e031--
--batch_6969-e58e-ec21-- SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }.L1S32 { color: #7D9EC0; }.L1S33 { color: #009300; }
Error:
HTTP/1.1 400 Bad Request
Content-Type: application/json;charset=utf-8
Content-Length: 993
dataserviceversion: 1.0
{"error":{"code":"/IWBEP/CM_MGW_RT/020","message":{"lang":"en","value":"Resource not found for segment ''"},"innererror":{"application":{"component_id":"","service_namespace":"/SAP/","service_id":"ZXX_SRV","service_version":"0001"},"transactionid":"6XXXXXX34D8838E1407","timestamp":"20230118203430.8752010","Error_Resolution":{"SAP_Transaction":"For backend administrators: 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","SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)","Batch_SAP_Note":"See SAP Note 1869434 for details about working with $batch (https://service.sap.com/sap/support/notes/1869434)"},"errordetails":[{"ContentID":"","code":"/IWBEP/CX_MGW_BUSI_EXCEPTION","message":"Resource not found for segment ''","propertyref":"","severity":"error","transition":false,"target":""}]}}}
SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }.L1S32 { color: #7D9EC0; }.L1S33 { color: #009300; }