Skip to Content
Feb 19, 2019 at 03:51 PM

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

276 Views Last edit Feb 19, 2019 at 04:01 PM 2 rev

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-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)