Skip to Content
Former Member
Dec 16, 2013 at 02:14 PM

System expected the element '{}entry



i am trying to consume the Netweaver Gateway service via $.ajax().

the GET (Read) operation is successful, but when i am trying to create a new record i.e. POST, i am getting the following error:

System expected the element '{}entry.

Following is the approach i am following :

1) using $.ajax() & type= 'GET' to fetch the X-CSRF-Token.

2) in the success of $.ajax (), trying to consume the type='POST' & sending the above fetched CSRF token, so as to create a new record.

the token is successfully fetched, but thereafter the above mentioned error comes.

following are the 2 headers i am using :

headers : {

"X-Requested-With" : "XMLHttpRequest",

"Content-Type" : "application/atom+xml",

"DataServiceVersion" : "1.0",

"X-CSRF-Token" : "Fetch",

"xmlns" : ""


type: 'GET',

url : oDATA_URL,

dataType : 'json',

username : uId,

password : pWd,

& once the token is fetched :

headers : { "X-Requested-With" : "XMLHttpRequest", "Content-Type" : "application/atom+xml", //application/json ,application/atom+xml;type=entry "DataServiceVersion" : "2.0", "Accept" : "application/atom+xml,application/xml,application/atomsvc+xml", "X-CSRF-Token" : header_xcsrf_token, }, type: "POST", url : oDATA_URL, dataType : "json", username : uId,

password : pWd,

the exact error message is :

"<?xml version="1.0" encoding="utf-8"?><error xmlns=""><code>CX_ST_MATCH_ELEMENT/544FAE4641562346A1372144E7396586</code><message xml:lang="en">System expected the element '{}entry'</message><innererror><transactionid>CC5966E34FB8F166A726001F29E5DD9A</transactionid><errordetails/></innererror></error>"

Please help !!