Skip to Content

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

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

payload.png (141.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers