<?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 [resolved] Deal with repetition with tXMLMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Deal-with-repetition-with-tXMLMap/m-p/2294537#M67406</link>
    <description>Hi, 
&lt;BR /&gt;I have an ESBConsumer that retrieves me a XML response and I send it to a XML MAP component. 
&lt;BR /&gt;In the XMLMap entry I have this tree (extracted from repository) : 
&lt;BR /&gt;-ns 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;ART1 (loop) 
&lt;BR /&gt; -ns:Message 
&lt;BR /&gt; -ns:Value 
&lt;BR /&gt; -ns:Error 
&lt;BR /&gt; -ns:ErrorCode 
&lt;BR /&gt; -ns:ErrorLib 
&lt;BR /&gt;In the XMLMap output I have near the same thing (extracted from repository) : 
&lt;BR /&gt;-ds:REP (loop) 
&lt;BR /&gt; -ds:Msg 
&lt;BR /&gt; -ds:Result 
&lt;BR /&gt; -ds:Err 
&lt;BR /&gt; -ds:ErrCode 
&lt;BR /&gt; -ds:ErrLib 
&lt;BR /&gt; 
&lt;BR /&gt;So I after having made my mapping all works fine except... when, I have many errors outputed by my ESBConsumer like : 
&lt;BR /&gt; &amp;lt;enc:Error row="0"&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:ErrorCode&amp;gt;-1&amp;lt;/enc:ErrorCode&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:ErrorLib&amp;gt;Identity error&amp;lt;/enc:ErrorLib&amp;gt; 
&lt;BR /&gt; &amp;lt;/enc:Error&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:Error row="1"&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:ErrorCode&amp;gt;-1&amp;lt;/enc:ErrorCode&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:ErrorLib&amp;gt;Value error&amp;lt;/enc:ErrorLib&amp;gt; 
&lt;BR /&gt; &amp;lt;/enc:Error&amp;gt; 
&lt;BR /&gt;... my final result keeps only the first result error in place to retrieves all my "error" rows. 
&lt;BR /&gt;How can I set the tXMLMAP to deal with these repetitions ? 
&lt;BR /&gt;I tried the Loop option but did not suceed to obtain what in need. 
&lt;BR /&gt;Regards</description>
    <pubDate>Sat, 16 Nov 2024 11:41:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:41:18Z</dc:date>
    <item>
      <title>[resolved] Deal with repetition with tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Deal-with-repetition-with-tXMLMap/m-p/2294537#M67406</link>
      <description>Hi, 
&lt;BR /&gt;I have an ESBConsumer that retrieves me a XML response and I send it to a XML MAP component. 
&lt;BR /&gt;In the XMLMap entry I have this tree (extracted from repository) : 
&lt;BR /&gt;-ns 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;ART1 (loop) 
&lt;BR /&gt; -ns:Message 
&lt;BR /&gt; -ns:Value 
&lt;BR /&gt; -ns:Error 
&lt;BR /&gt; -ns:ErrorCode 
&lt;BR /&gt; -ns:ErrorLib 
&lt;BR /&gt;In the XMLMap output I have near the same thing (extracted from repository) : 
&lt;BR /&gt;-ds:REP (loop) 
&lt;BR /&gt; -ds:Msg 
&lt;BR /&gt; -ds:Result 
&lt;BR /&gt; -ds:Err 
&lt;BR /&gt; -ds:ErrCode 
&lt;BR /&gt; -ds:ErrLib 
&lt;BR /&gt; 
&lt;BR /&gt;So I after having made my mapping all works fine except... when, I have many errors outputed by my ESBConsumer like : 
&lt;BR /&gt; &amp;lt;enc:Error row="0"&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:ErrorCode&amp;gt;-1&amp;lt;/enc:ErrorCode&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:ErrorLib&amp;gt;Identity error&amp;lt;/enc:ErrorLib&amp;gt; 
&lt;BR /&gt; &amp;lt;/enc:Error&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:Error row="1"&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:ErrorCode&amp;gt;-1&amp;lt;/enc:ErrorCode&amp;gt; 
&lt;BR /&gt; &amp;lt;enc:ErrorLib&amp;gt;Value error&amp;lt;/enc:ErrorLib&amp;gt; 
&lt;BR /&gt; &amp;lt;/enc:Error&amp;gt; 
&lt;BR /&gt;... my final result keeps only the first result error in place to retrieves all my "error" rows. 
&lt;BR /&gt;How can I set the tXMLMAP to deal with these repetitions ? 
&lt;BR /&gt;I tried the Loop option but did not suceed to obtain what in need. 
&lt;BR /&gt;Regards</description>
      <pubDate>Sat, 16 Nov 2024 11:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Deal-with-repetition-with-tXMLMap/m-p/2294537#M67406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Deal with repetition with tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Deal-with-repetition-with-tXMLMap/m-p/2294538#M67407</link>
      <description>cedico - set your loop on ns:Error in the input and let us know what you get in the output... You typically set select the lowest level child tag in the XML as the loop expression</description>
      <pubDate>Thu, 10 Apr 2014 14:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Deal-with-repetition-with-tXMLMap/m-p/2294538#M67407</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-04-10T14:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Deal with repetition with tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Deal-with-repetition-with-tXMLMap/m-p/2294539#M67408</link>
      <description>I had already try this solution (  -ns:Error(loop)   )  but when i test it, I obtain this error :&lt;BR /&gt;(leaving the "loop" at the highest level doesn't raise any exception)&lt;BR /&gt;Exception in component tESBProviderResponse_1&lt;BR /&gt;java.lang.RuntimeException: Send Response failed! Response already sent with current request.&lt;BR /&gt;I've posted the pictures of the complete schema of my Xmlmap but it does t upload... here is a link :&lt;BR /&gt;&lt;A href="http://i.imgur.com/910uRqu.png" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/910uRqu.png&lt;/A&gt;&lt;BR /&gt;Am i missing something ?</description>
      <pubDate>Thu, 10 Apr 2014 15:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Deal-with-repetition-with-tXMLMap/m-p/2294539#M67408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-10T15:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Deal with repetition with tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Deal-with-repetition-with-tXMLMap/m-p/2294540#M67409</link>
      <description>Ok, all is fine now. I had 2 errors : 
&lt;BR /&gt;- I needed the Loop 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;ptionnal because sometimes the node -ns:Error is not returned by the ESBConsumer. 
&lt;BR /&gt;- For the "Send Response failed! Response already sent with current request." error, 
&lt;BR /&gt;I had to set ALL IN ONE = True. 
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 04 Jun 2014 08:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Deal-with-repetition-with-tXMLMap/m-p/2294540#M67409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-04T08:53:36Z</dc:date>
    </item>
  </channel>
</rss>

