Skip to Content
Mar 21, 2014 at 03:00 PM

Error on $batch POST, system expected the element '{}entry'


Hi Experts,

I am just having a heck of a time trying to get a $batch to properly process from my external application. I am getting an HTTP response code of 202, telling me that my request is getting to where it needs to go.

However, in the body of the response I'm getting the error "System expected the element '{}entry'". After searching around through the discussions and seeing these three threads, then finding and reading this excellent help document, I am still at a loss.

I can successfully take the request body that I generate and use the Gateway client to do the entries, but when I try to use the Advanced Rest Client Application, or try to use the application I am developing I get the error noted above.

Here is how the request looks:

Header attribute Content-Type: multipart/mixed; boundary=batch, method: POST (there are some other authentication attributes, but those appear to be working)

Request body:


Content-Type: multipart/mixed; boundary=changeset


Content-Type: application/http

Content-Transfer-Encoding: binary

PUT ContractDetailsCollection(1) HTTP/1.1

Content-Type: application/atom+xml

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<atom:entry xmlns:atom="">

<atom:content type="application/xml">

<m:properties xmlns:m="" xmlns:d="">


<d:Description>batch test id 1</d:Description>







Does anyone have an idea as to what I'm doing wrong? I have tried the formats in the above discussion threads, and everything I try in tweaking the body format seems to lead to the same "expected the element..." error, but NetWeaver Gateway Client works and updates my backend data.

Any help is very much appreciated. Thank you!