cancel
Showing results for 
Search instead for 
Did you mean: 

Weird error occurred when using BATCH request -

former_member184739
Contributor
0 Kudos

service-error.pngHi Experts,

I am currently facing an issue where am unable to execute any batch request from the Gateway hub system which is running on Netweaver 7.5

Service returns 202 return code but there is no response data with the errors like 'HTTP/1.1 404 Not Found'

Attached herewith is the evidence for the same.

Thank you for the support.

Prabha

maheshpalavalli
Active Contributor
0 Kudos

Can you paste the full respose here?

And BTW, batch response will be accepted only, the inner requests will have failed or success stauts.

BR,

Mahesh

former_member184739
Contributor
0 Kudos

Hi Mahesh,

Thanks for the reply. Please find the response file attached herewith where is a failure.

Prabha

response-payload-batch.txt

former_member184739
Contributor
0 Kudos

Hi Nabheet,

Yes, i can see this message 'The server has not found any resource matching the Data Services Request URI'. If i execute the same entity without $batch, they are working perfectly fine.

But none of batch requests are working and am not sure if this is related to the configuration.

Thanks

Prabha

former_member184739
Contributor
0 Kudos

Hi andre.fischer gregorw Could you please suggest your views on this issue ?

Thank you very much.

Prabha

nabheetscn
Active Contributor
0 Kudos

Prabharan another question is in backend what have you done to enable batch processing?

former_member184739
Contributor
0 Kudos

Hi Nabheet,

Could you please suggest what steps are required to setup the batch processing in the backend. Thanks

Prabha

nabheetscn
Active Contributor

Prabhakaran google it you will find many good examples explaining how to set up the batch processing in details.

former_member184739
Contributor
0 Kudos

Hi Nabheet,

Indeed i tried using the different references and I am following this blog but still am facing the same issue. Anyways, thanks for the help.

https://blogs.sap.com/2018/05/06/batch-request-in-sap-gateway

Thanks

Prabha

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Asokan,

I just saw that you are using the RMTSAMPLEFLIGHT service from the /IWFND/ namespace.

Can you try out the following Service?

/sap/opu/odata/IWBEP/TEA_TEST_APPLICATION/$Batch

with the following http Header

Content-Type          
multipart/mixed;boundary=Batch

and the following payload:

--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
GET fEmployees HTTP/1.1

--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
GET Conversions HTTP/1.1

--batch--

If this still fails open a customer ticket.

Regards,

Andre

Answers (4)

Answers (4)

0 Kudos

Hi Prabaharan Asokan,

As i saw in this your service-error.png image

you have selected http method as POST and in payload you have specified as GET

in url after your service name give /$batch

in payload write below code

<code>--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/json

GET batchSet('01') HTTP/1.1
--batch--

inplace of batchset enter your entity name and in Content-Type: multipart/mixed; boundary=batch

refer below link:

Implementing Batch Operations in OData | SAP Blogs

AbhishekSharma
Active Contributor
0 Kudos

Hi Prabaharan Asokan,

You want to read data from this Service call OR you want to manipulate data ? If you want to read data try changing method to GET (as per screenshot provided).

Hope you are using new domain since SAPES4 is already migrated to SAPES5. Please try using below details.

1 request:

https://sapes5.sapdevcenter.com/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/CarrierCollection(carrid='AA')

2 request:

Nothing has been returned from the second request please validate value you are passing in Request for

TravelagencyCollection(agencynum='00001755')

Per screen shot you shared below URL should work which is not working.

https://sapes5.sapdevcenter.com/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/TravelagencyCollection(agencynum...

Hope this Helps..

Thanks-

Abhishek

former_member227918
Active Contributor
0 Kudos

I can see your HTTP method you have selected is POST, and you are performing GET in payload.

and add content type as Content-Type: multipart/mixed; boundary=batch in the header.

and if you are really testing POST then correct your payload and pass the correct content type and all as boundry=changeset etc.

Note: your Payload should follow correct spacing between different operations

former_member184739
Contributor
0 Kudos

Hi Experts,

Can someone help with your thoughts on this error ? thanks

nabheetscn
Active Contributor
0 Kudos

Did you check /IWFND/ERROR_LOG as mentioned in the response? What do you see?