<?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>Question Re: XML Namespace Error with XPATH condition in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaa-p/13995710#M4900537</link>
    <description>Hi Snayak, Thanks, it worked! Thanks Maik and Ryan for your valuable response.</description>
    <pubDate>Fri, 24 Jan 2025 11:09:10 GMT</pubDate>
    <dc:creator>barath_dv</dc:creator>
    <dc:date>2025-01-24T11:09:10Z</dc:date>
    <item>
      <title>XML Namespace Error with XPATH condition</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaq-p/13962139</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;We have below as the content which needs to be routed based on the field 'Message' value.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&amp;gt;
  &amp;lt;code&amp;gt;06/019&amp;lt;/code&amp;gt;
  &amp;lt;message xml:lang="en"&amp;gt;Document  does not exist&amp;lt;/message&amp;gt;
  &amp;lt;innererror&amp;gt;
    &amp;lt;application&amp;gt;
      &amp;lt;component_id/&amp;gt;
      &amp;lt;service_namespace&amp;gt;/SAP/&amp;lt;/service_namespace&amp;gt;
      &amp;lt;service_id&amp;gt;TEST&amp;lt;/service_id&amp;gt;
      &amp;lt;service_version&amp;gt;0001&amp;lt;/service_version&amp;gt;
    &amp;lt;/application&amp;gt;
    &amp;lt;transactionid&amp;gt;d828d56baed54a718432432e7cd27533&amp;lt;/transactionid&amp;gt;
    &amp;lt;timestamp/&amp;gt;
    &amp;lt;Error_Resolution&amp;gt;
      &amp;lt;SAP_Transaction/&amp;gt;
      &amp;lt;SAP_Note&amp;gt;See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)&amp;lt;/SAP_Note&amp;gt;
    &amp;lt;/Error_Resolution&amp;gt;
    &amp;lt;errordetails&amp;gt;
      &amp;lt;errordetail&amp;gt;
        &amp;lt;ContentID/&amp;gt;
        &amp;lt;code&amp;gt;06/033&amp;lt;/code&amp;gt;
        &amp;lt;message&amp;gt;Document  does not exist&amp;lt;/message&amp;gt;
        &amp;lt;propertyref/&amp;gt;
        &amp;lt;severity&amp;gt;error&amp;lt;/severity&amp;gt;
        &amp;lt;target/&amp;gt;
        &amp;lt;transition&amp;gt;false&amp;lt;/transition&amp;gt;
      &amp;lt;/errordetail&amp;gt;
    &amp;lt;/errordetails&amp;gt;
  &amp;lt;/innererror&amp;gt;
&amp;lt;/error&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried the condition = //innererror/errordetails/errordetail[contains(message, 'Document')]&lt;/P&gt;&lt;P&gt;Somehow, it is not working due to the namespace. I've also added the namespace in the runtime configuration as xmlns=&lt;A href="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" target="_blank"&gt;http://schemas.microsoft.com/ado/2007/08/dataservices/metadata&lt;/A&gt; Still getting invalid namespace declared error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your valuable inputs and support.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Barath Vivekanandan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 13:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaq-p/13962139</guid>
      <dc:creator>barath_dv</dc:creator>
      <dc:date>2024-12-12T13:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: XML Namespace Error with XPATH condition</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaa-p/13962155#M4896026</link>
      <description>&lt;P&gt;I think you would need to anonymize the XML for your expression to work because it doesn't expect use of a namespace without a prefix. &amp;nbsp;I tested several variations and none of them work for a namespace without a prefix.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaa-p/13962155#M4896026</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2024-12-12T14:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: XML Namespace Error with XPATH condition</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaa-p/13962522#M4896093</link>
      <description>&lt;P&gt;As an addition to Ryan. I prefer to use XSLT below to clean the XML namespaces:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/5268182/how-to-remove-namespaces-from-xml-using-xslt" target="_blank"&gt;https://stackoverflow.com/questions/5268182/how-to-remove-namespaces-from-xml-using-xslt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 05:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaa-p/13962522#M4896093</guid>
      <dc:creator>maik_bosch</dc:creator>
      <dc:date>2024-12-13T05:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: XML Namespace Error with XPATH condition</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaa-p/13962824#M4896150</link>
      <description>Hi Barath, You can use this xml routing condition:- //*:innererror/*:errordetails/*:errordetail[contains(*:message, 'Document')]</description>
      <pubDate>Fri, 13 Dec 2024 12:17:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaa-p/13962824#M4896150</guid>
      <dc:creator>snayak</dc:creator>
      <dc:date>2024-12-13T12:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: XML Namespace Error with XPATH condition</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaa-p/13995710#M4900537</link>
      <description>Hi Snayak, Thanks, it worked! Thanks Maik and Ryan for your valuable response.</description>
      <pubDate>Fri, 24 Jan 2025 11:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-namespace-error-with-xpath-condition/qaa-p/13995710#M4900537</guid>
      <dc:creator>barath_dv</dc:creator>
      <dc:date>2025-01-24T11:09:10Z</dc:date>
    </item>
  </channel>
</rss>

