cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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:

<?xml version="1.0" encoding="utf-8"?> <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <code>CX_ST_MATCH_ELEMENT/544FAE4641562346A1372144E7396586</code> <message xml:lang="en">System expected the element '{http://www.w3.org/2005/Atom}entry'</message> <innererror> <application> <component_id/> <service_namespace>/SAP/</service_namespace> <service_id>ZONLINE_STORE_SRV</service_id> <service_version>0001</service_version> </application> <transactionid>FDC5DDE6F681F12F80D2005056A24790</transactionid> <timestamp>20170118213512.2980000</timestamp> <Error_Resolution> <SAP_Transaction>Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system (System Alias DEVCLNT500) and search for entries with the timestamp above for more details</SAP_Transaction> <SAP_Note>See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)</SAP_Note> </Error_Resolution> <errordetails/> </innererror> </error>

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.

kammaje_cis
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (0)