Skip to Content
0

oData error CX_ST_MATCH_ELEMENT: System expected the element '{http://www.w3.org/2005/Atom}entry

Jan 18, 2017 at 11:35 PM

369

avatar image

I have an oData service setup in GW, and we are receiving the following error message when testing outside of the SAP GW client (works correctly there). This is a PUT request, and receiving the following error message:

http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> CX_ST_MATCH_ELEMENT/544FAE4641562346A1372144E7396586 System expected the element '{ http://www.w3.org/2005/Atom}entry'> /SAP/ ZONLINE_STORE_SRV 0001 FDC5DDE6F681F12F80D2005056A24790 20170118213512.2980000 Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system (System Alias DEVCLNT500) and search for entries with the timestamp above for more details See SAP Note 1797736 for error analysis ( https://service.sap.com/sap/support/notes/1797736)>

In the header, I have Content-Type = application/atom+xml;type=entry;charset=utf-8 and X-CSRF-Token=fetchedtoken

The body is this:

<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:base="https://*MYURL*/sap/opu/odata/sap/ZONLINE_STORE_SRV/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<id>https://*MYURL*/sap/opu/odata/sap/ZONLINE_STORE_SRV/Update_PasswordSet('jane@mycompany.com')</id>
<title type="text">Update_PasswordSet('jane@mycompany.com')</title>
<updated>2017-01-12T19:02:57Z</updated>
<category term="ZONLINE_STORE_SRV.Update_Password" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<link href="Update_PasswordSet('jane@mycompany.com')" rel="self" title="Update_Password"/>
<atom:content type="application/xml">
<m:properties>
<d:Email>jane@mycompany.com</d:Email>
<d:Password>MyNewPassword!</d:Password>
</m:properties>
</atom:content>
</atom:entry>

Can anyone tell me how to resolve this issue? I have done quite a bit of research, and all blogs point to the solution above, but it's not working.

10 |10000 characters needed characters left characters exceeded

How are you calling this update? from UI5?

If you are calling from external rest clients, using a simple request body in json is much easier.

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers