Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

xs odata batch request: Error processing request stream. JSON text specified is not valid

oliver80
Discoverer

I got a problem doing POST within a batch request using postman.

My request URL is like ....../..../...xsodata/$batch

Im using the following Header

Content-Type multipart/mixed;boundary=batch

My payload is the following

--batch Content-Type:multipart/mixed;boundary=changeset

Content-Transfer-Encoding:binary

--changeset

Content-Type:application/http

Content-Transfer-Encoding:binary

Content-ID: 1

POST Trigger HTTP/1.1 Content-Type: application/json Content-Length:200

{"PARTNER_ID": "0000000003","DB_OPERATION": U,"TIMESTAMP": "201903151634323090315"}

--changeset-- --batch--

I get the following Error message "Error processing request stream. JSON text specified is not valid."

However, using a single POST, there is nothing wrong with the JSON and the record is added to the table:

for a single Post i'm using

Content-Type application/json as header and

{"PARTNER_ID": "0000000003","DB_OPERATION": U,"TIMESTAMP": "201903151634323090315"} as the payload.

Does anybody know what I'm doing wrong

  • SAP Managed Tags:
1 REPLY 1

0 Kudos

Hi Oliver, any luck in getting this issue resolved?

I am also getting same error now

  • SAP Managed Tags: