<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deep Insert request throwing an error &amp;quot;Error while parsing an XML stream&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330570#M1991534</link>
    <description>&lt;P&gt;Hi Subhajit,&lt;/P&gt;&lt;P&gt;Thanks for the response - here is the exception that I have received. Really, don't see the user freindly message to share.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 12:18:08 GMT</pubDate>
    <dc:creator>former_member150312</dc:creator>
    <dc:date>2021-03-23T12:18:08Z</dc:date>
    <item>
      <title>Deep Insert request throwing an error "Error while parsing an XML stream"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330568#M1991532</link>
      <description>&lt;P&gt;Hello &lt;STRONG&gt;There&lt;/STRONG&gt;,&lt;/P&gt;
  &lt;P&gt;This is my first Odata Serivce that I am creating. I have created a below Odata service with Navigation to HeaderDetails to TAddCost and TAddCost to TAddLog but while passing the Payload with POST method - I am getting below XML parse error. Could you please help assist if I am doing any mistakes in the payload or in Odata Service?&lt;/P&gt;
  &lt;P&gt;Error message: code&amp;gt;CX_SXML_PARSE_ERROR/001560AA0E081DEB8CA398CC1690D406&amp;lt;/code&amp;gt; &amp;lt;message xml:lang="en"&amp;gt;Error while parsing an XML stream&amp;lt;/message&amp;gt; &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Odata Service:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1903397-6k617.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;BR /&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;MPC_EXT: &lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; TYPES: BEGIN OF Head2AddCostNav,&lt;BR /&gt; Matnr TYPE ZBAPI_ADDITIVE_COST-Matnr,&lt;BR /&gt; Werks TYPE ZBAPI_ADDITIVE_COST-Werks,&lt;BR /&gt; Klvar TYPE ZBAPI_ADDITIVE_COST-Klvar,&lt;BR /&gt; Tvers TYPE ZBAPI_ADDITIVE_COST-Tvers,&lt;BR /&gt; Losgr TYPE ZBAPI_ADDITIVE_COST-Losgr,&lt;BR /&gt; Kadat TYPE ZBAPI_ADDITIVE_COST-Kadat,&lt;BR /&gt; Bidat TYPE ZBAPI_ADDITIVE_COST-Bidat,&lt;BR /&gt; Posnr TYPE ZBAPI_ADDITIVE_COST-Posnr,&lt;BR /&gt; Typps TYPE ZBAPI_ADDITIVE_COST-Typps,&lt;BR /&gt; Herk2 TYPE ZBAPI_ADDITIVE_COST-Herk2, &lt;BR /&gt; Herk3 TYPE ZBAPI_ADDITIVE_COST-Herk3,&lt;BR /&gt; Menge TYPE ZBAPI_ADDITIVE_COST-Menge,&lt;BR /&gt; Meeht TYPE ZBAPI_ADDITIVE_COST-Meeht,&lt;BR /&gt; Ltext TYPE ZBAPI_ADDITIVE_COST-Ltext,&lt;BR /&gt; Gpreis TYPE ZBAPI_ADDITIVE_COST-Gpreis,&lt;BR /&gt; Kstar TYPE ZBAPI_ADDITIVE_COST-Kstar,&lt;BR /&gt; Hrkft TYPE ZBAPI_ADDITIVE_COST-Hrkft,&lt;BR /&gt; Arbpl TYPE ZBAPI_ADDITIVE_COST-Arbpl,&lt;BR /&gt; Arbplwerk TYPE ZBAPI_ADDITIVE_COST-Arbplwerk,&lt;BR /&gt; Peinh TYPE ZBAPI_ADDITIVE_COST-Arbplwerk,&lt;BR /&gt; AddCost2AddLogNav TYPE STANDARD TABLE OF TS_TADDLOG WITH DEFAULT KEY,&lt;BR /&gt; END OF Head2AddCostNav.&lt;BR /&gt;&lt;BR /&gt; types: begin of TS_DEEP_ENTITY,&lt;BR /&gt; ITestRun TYPE C LENGTH 1,&lt;BR /&gt; IZadd TYPE C LENGTH 1,&lt;BR /&gt; IZcost TYPE C LENGTH 1,&lt;BR /&gt; Head2AddCostNav TYPE STANDARD TABLE OF Head2AddCostNav WITH DEFAULT KEY,&lt;BR /&gt; END OF TS_DEEP_ENTITY .&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Payload in JSON:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;{&lt;BR /&gt; "ITestRun":"X",&lt;BR /&gt; "IZadd":"X",&lt;BR /&gt; "IZcost":"",&lt;BR /&gt; "Head2AddCostNav":[&lt;BR /&gt; {&lt;BR /&gt; "Matnr":"",&lt;BR /&gt; "Werks":"",&lt;BR /&gt; "Klvar":"",&lt;BR /&gt; "Tvers":"",&lt;BR /&gt; "Losgr":"",&lt;BR /&gt; "Kadat":"",&lt;BR /&gt; "Bidat":"",&lt;BR /&gt; "Posnr":"",&lt;BR /&gt; "Typps":"",&lt;BR /&gt; "Herk2":"",&lt;BR /&gt; "Herk3":"",&lt;BR /&gt; "Menge":"",&lt;BR /&gt; "Meeht":"",&lt;BR /&gt; "Ltext":"",&lt;BR /&gt; "Gpreis":"",&lt;BR /&gt; "Kstar":"",&lt;BR /&gt; "Hrkft":"",&lt;BR /&gt; "Arbpl":"",&lt;BR /&gt; "Arbplwerk":"",&lt;BR /&gt; "Peinh":"",&lt;BR /&gt; "AddCost2AddLogNav":[&lt;BR /&gt; {&lt;BR /&gt; "Matnr":"",&lt;BR /&gt; "Werks":"",&lt;BR /&gt; "Klvar":"",&lt;BR /&gt; "Kadat":"",&lt;BR /&gt; "Bidat":"",&lt;BR /&gt; "Status":"",&lt;BR /&gt; "Message":""&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 09:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330568#M1991532</guid>
      <dc:creator>former_member150312</dc:creator>
      <dc:date>2021-03-23T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Insert request throwing an error "Error while parsing an XML stream"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330569#M1991533</link>
      <description>&lt;P&gt;Your payload seems to be fine..&lt;/P&gt;&lt;P&gt;What does the error log say ?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330569#M1991533</guid>
      <dc:creator>subhajit</dc:creator>
      <dc:date>2021-03-23T12:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Insert request throwing an error "Error while parsing an XML stream"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330570#M1991534</link>
      <description>&lt;P&gt;Hi Subhajit,&lt;/P&gt;&lt;P&gt;Thanks for the response - here is the exception that I have received. Really, don't see the user freindly message to share.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330570#M1991534</guid>
      <dc:creator>former_member150312</dc:creator>
      <dc:date>2021-03-23T12:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Insert request throwing an error "Error while parsing an XML stream"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330571#M1991535</link>
      <description>&lt;P&gt;maybe u can attach / share the error 'TEXT' by clicking on Error Log in Gateway Client..&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330571#M1991535</guid>
      <dc:creator>subhajit</dc:creator>
      <dc:date>2021-03-23T12:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Insert request throwing an error "Error while parsing an XML stream"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330572#M1991536</link>
      <description>&lt;P&gt;Here you go,&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1903411-ek0cd.png" /&gt;&lt;/P&gt;&lt;P&gt;But I have an interesting finding - for AddCost2AddLogNav Navigation I see "multiplicity" in below internal is mismatching with "/iwcor/if_ds_edm=&amp;gt;gc_multiplicity_many" due to which exception is thrown - do you know what does this validation means?&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1903412-5mq5m.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:44:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330572#M1991536</guid>
      <dc:creator>former_member150312</dc:creator>
      <dc:date>2021-03-23T12:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Insert request throwing an error "Error while parsing an XML stream"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330573#M1991537</link>
      <description>&lt;P&gt;The issue is fixed Subhajit. Thanks for attempting to help.&lt;/P&gt;&lt;P&gt;Fix: Cardinitlity for the association between TAddCost and TAddLog was set to 1 whereas HeaderDetails to TAddCost was 1 and M. Since, TAddCost has mismatch cardinality between both associations - we were getting the error - now I have corrected it to M and the issue is resolved. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1903415-5kplo.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-insert-request-throwing-an-error-quot-error-while-parsing-an-xml/m-p/12330573#M1991537</guid>
      <dc:creator>former_member150312</dc:creator>
      <dc:date>2021-03-23T12:59:45Z</dc:date>
    </item>
  </channel>
</rss>

