cancel
Showing results for 
Search instead for 
Did you mean: 

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

manukapur
Active Participant
0 Kudos

Hello Experts,

I am trying to call a create deep entity set method which I have programmed to Create a PM order with multiple operations and services. I have maintained the relevant associations and the read operation works fine as expected.

I am trying to pass a xml payload to call the create deep entity set operation and I am getting an error which says

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

<code>CX_ST_MATCH_ELEMENT/544FAE4641562346A1372144E7396586</code>

<message xml:lang="en">System expected the element '{http://www.w3.org/2005/Atom}entry'</message>

I am attaching my payload file along with this post.

Please check and let me know if I am missing any steps/details.

Regards,

Manu

Accepted Solutions (0)

Answers (1)

Answers (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Manu,

Please try with the below payload and check.

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

<atom:entry 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">

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

<m:properties>

<d:ORDERID>%00000000001</d:ORDERID>

<d:ORDER_TYPE>ZRR1</d:ORDER_TYPE>

<d:PLANPLANT>1110</d:PLANPLANT>

<d:MN_WK_CTR>24/7</d:MN_WK_CTR>

<d:PMACTTYPE>R05</d:PMACTTYPE>

<d:PLANGROUP>003</d:PLANGROUP>

<d:FUNCT_LOC>000003/0001/001</d:FUNCT_LOC>

<d:SHORT_TEXT>First Test from Deep Entity</d:SHORT_TEXT>

<d:START_DATE>2016-08-04T00:00:00</d:START_DATE>

<d:FINISH_DATE>2016-08-05T00:00:00</d:FINISH_DATE>

</m:properties>

</atom:content>

<atom:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PMOrderOperationsSet" type="application/atom+xml;type=feed" title="ZPMORDERS1_SRV.PMOrderHeaderOperationsAssociation">

<m:inline>

<atom:feed>

<atom:entry>

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

<m:properties>

<d:ORDERID>%00000000001</d:ORDERID>

<d:ACTIVITY>0010</d:ACTIVITY>

<d:CONTROL_KEY>ZINT</d:CONTROL_KEY>

<d:WORK_CNTR>24/7</d:WORK_CNTR>

<d:DESCRIPTION>test2342423</d:DESCRIPTION>

<d:QUANTITY>1.000</d:QUANTITY>

<d:BASE_UOM/>

<d:ACTTYPE>ZSERV</d:ACTTYPE>

</m:properties>

</atom:content>

</atom:entry>

<atom:entry>

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

<m:properties>

<d:ORDERID>%00000000001</d:ORDERID>

<d:ACTIVITY>0020</d:ACTIVITY>

<d:CONTROL_KEY>ZINT</d:CONTROL_KEY>

<d:WORK_CNTR>24/7</d:WORK_CNTR>

<d:DESCRIPTION>test2342423</d:DESCRIPTION>

<d:QUANTITY>2.000</d:QUANTITY>

<d:PRICE>0.00</d:PRICE>

<d:PURCH_ORG/><d:PUR_GROUP/>

<d:ACTTYPE>ZSERV</d:ACTTYPE>

</m:properties>

</atom:content>

</atom:entry>

</atom:feed>

</m:inline>

</atom:link>

<atom:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PMOperationServicesSet" type="application/atom+xml;type=feed" title="ZPMORDERS1_SRV.PMOperationServicesAssociation">

<m:inline>

<atom:feed>

<atom:entry>

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

<m:properties>

<d:ORDERID>%00000000001</d:ORDERID>

<d:ACTIVITY>0010</d:ACTIVITY>

<d:OUTLINE>0000000001</d:OUTLINE>

<d:SRV_LINE>0000000010</d:SRV_LINE>

<d:SERVICE>L010001LC-Z0100900</d:SERVICE>

<d:SHORT_TEXT>ELECREP</d:SHORT_TEXT>

<d:SSC_SRV_TYPE>L01</d:SSC_SRV_TYPE>

<d:QUANTITY>4.000</d:QUANTITY>

<d:UOM>EA</d:UOM>

<d:OVF_UNLIM>X</d:OVF_UNLIM>

</m:properties>

</atom:content>

</atom:entry>

<atom:entry>

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

<m:properties>

<d:ORDERID>%00000000001</d:ORDERID>

<d:ACTIVITY>0020</d:ACTIVITY>

<d:OUTLINE>0000000042</d:OUTLINE>

<d:SRV_LINE>0000000010</d:SRV_LINE>

<d:SERVICE>L010001LC-Z0100900</d:SERVICE>

<d:SHORT_TEXT>ELECREP</d:SHORT_TEXT>

<d:SSC_SRV_TYPE>L01</d:SSC_SRV_TYPE>

<d:QUANTITY>3.000</d:QUANTITY>

<d:UOM>EA</d:UOM>

<d:OVF_UNLIM>X</d:OVF_UNLIM>

</m:properties>

</atom:content>

</atom:entry>

</atom:feed>

</m:inline>

</atom:link>

</atom:entry>

Regards,

Ashwin