Skip to Content
1
Nov 25, 2020 at 03:11 PM

Deep Entity request Error, System expected the element '{http://www.w3.org/2005/Atom}entry'

105 Views

Hi All,

While doing a Post request from an external tool to the deep entity structure Odata Service, we are getting following error.

Post request is as follows: [This is not complete post Request, in order to localize the error, I am testing with minimum Request data.]

<?xml version="1.0" encoding="UTF-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
    <atom:content type="application/xml">
        <m:properties>
            <d:SalesOrg>1000</d:SalesOrg>
            <d:IvCrmKdNr>8107</d:IvCrmKdNr>
            <d:IvEshopAufnr>265667</d:IvEshopAufnr>
            <d:IvEshopKdnr>35545</d:IvEshopKdnr>
            <d:DocType>ZTA</d:DocType>
            <d:CollectNo>265667</d:CollectNo>
            <d:DistrChan>20</d:DistrChan>
            <d:Division>10</d:Division>
            <d:SalesGrp>D99</d:SalesGrp>
            <d:SalesOff>4030</d:SalesOff>
            <d:ReqDateH>2020-12-02T00:00:00</d:ReqDateH>
            <d:PurchDate>2020-10-19T00:00:00</d:PurchDate>
            <d:PoMethod>30</d:PoMethod>
            <d:Incoterms1>EXW</d:Incoterms1>
            <d:Incoterms2>Dietikon</d:Incoterms2>
            <d:Pmnttrms>ZB01</d:Pmnttrms>
            <d:OrdReason>005</d:OrdReason>
            <d:ShipCond>01</d:ShipCond>
        </m:properties>
    </atom:content>
</atom:entry>

During Debug , I found that the error is coming while Transforming the xml at the following location.

Error coming at the following location of the transformation .

It seems like something is missing in the atom entry tag , but dont know what exactly.

None of the existing refrences to this error have helped so far. Anyone having an Idea on how to resolve this error ?

Br,

Ketan

Attachments

error.png (22.9 kB)
error-location.png (135.2 kB)
transformation.png (76.7 kB)