<?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: Probem: Talend is writing multiple xml rows into 1 xml file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262897#M43217</link>
    <description>&lt;P&gt;Okay that sounds promising, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But could you elaborate on how to generate the flow in the FixedFlowInput?&amp;nbsp;&lt;BR /&gt;Would I need to tempSave the row / case before the FlowToIterate or how can I access the rows coming out of the txmlMap in the FixedFlowInput Component?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 07:21:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-20T07:21:19Z</dc:date>
    <item>
      <title>Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262891#M43211</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm currently parsing a xml file containing multiple &amp;lt;Case&amp;gt; tags and creating 1 new xml file for each &amp;lt;Case&amp;gt; tag found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This works good so far, 1 row goes into the tXmlMap 29 rows go out (29 cases), but then when I want to write the xml files using a tFileOutputXml, I end up with 29 files (good) which all contain each and everyone of the 29 new files (bad).&lt;/P&gt;
&lt;P&gt;So on one side the FileOutput create 1 File for each row, but on the other hand seems to add all rows into everyone of these files and I cannot understand why.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone encountered something like this?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262891#M43211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262892#M43212</link>
      <description>&lt;P&gt;You should share your job design.&lt;/P&gt;
&lt;P&gt;Anyway, after&amp;nbsp;&lt;SPAN&gt;tXmlMap&amp;nbsp;you should have something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;tFlowToIterate--&amp;gt;tJava(build next filename)--&amp;gt;tFixedFlowInput(renew the data flow 1 row)--&amp;gt; tFileOutputXML&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 15:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262892#M43212</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-05-19T15:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262893#M43213</link>
      <description>&lt;P&gt;Thanks, I dont quite understand you solution,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;so here are some Screenshots to provide more details on the problem.&lt;/P&gt; 
&lt;P&gt;First the structure of the job itself:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="multipleXmls.PNG" style="width: 602px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma21.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152688i204927020C11165F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma21.png" alt="0683p000009Ma21.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Then the Mapping (Note the source XML contains multiple, for example 29 cases)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CaseMapping.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaAY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144986iDEA54A4F2F6596E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaAY.png" alt="0683p000009MaAY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And the Xml FileOutput (I would expect 29 files each containing 1 Case, instead i'm getting 29 files each containing 29 cases).&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="writeCaseXmls.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaAd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145512iB6A134648C48DC82/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaAd.png" alt="0683p000009MaAd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can anyone give advice to why this happens or how I can fix this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 20:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262893#M43213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T20:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262894#M43214</link>
      <description>Questions:
&lt;BR /&gt;- what's in the lookup?
&lt;BR /&gt;- where do the context variables come from (as it seems this is the only dynamic part of filename)?
&lt;BR /&gt;- can you share a capture with rows count (after the job has finished)?</description>
      <pubDate>Tue, 19 May 2020 21:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262894#M43214</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-05-19T21:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262895#M43215</link>
      <description>&lt;P&gt;The Lookup and the context Variables could be ommitted, the lookup only holds specifications etc. that get pulled into the mapping via an id.&lt;/P&gt; 
&lt;P&gt;The Context Variables likewise get pulled from the same source xml to build the fileName for each row (which works correctly), I have also tried this with a static filename (ending up with one file contianing all 29 cases).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is a Screenshot with Rowcount.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rowCount.PNG" style="width: 580px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaAi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130576iD05F3F2EB6A3738C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaAi.png" alt="0683p000009MaAi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 21:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262895#M43215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T21:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262896#M43216</link>
      <description>Try the suggested design 
&lt;BR /&gt;tXmlMap--&amp;amp;gt;tFloToIterate(here, 1 created var will contain the target filename)--(iterate)--&amp;amp;gt;tFixedFlowInput(generate the flow for 1 case)--&amp;amp;gt;tFileOutputXML 
&lt;BR /&gt;This is a common design and it works when you want as many output files than rows in the input flow</description>
      <pubDate>Tue, 19 May 2020 23:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262896#M43216</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-05-19T23:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262897#M43217</link>
      <description>&lt;P&gt;Okay that sounds promising, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But could you elaborate on how to generate the flow in the FixedFlowInput?&amp;nbsp;&lt;BR /&gt;Would I need to tempSave the row / case before the FlowToIterate or how can I access the rows coming out of the txmlMap in the FixedFlowInput Component?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 07:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262897#M43217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-20T07:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262898#M43218</link>
      <description>&lt;P&gt;When you use tFlowToIterate, each field from the input flow is transformed into a global variable.&lt;/P&gt; 
&lt;P&gt;By default the variable name is the same as the field name preceded by the flow name such as "row1.CaseXml".&lt;/P&gt; 
&lt;P&gt;To initiate a new data flow from this or these global variables, you need to use tFixedFlowInput (or&amp;nbsp;tIterateToFlow) in which you start by defining the desired schema, for example 1 field called CaseXml datatype Document. Then, assign each field a value issued from the corresponding global variable.&lt;/P&gt; 
&lt;P&gt;Here is how it could look like:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 919px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaB7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153853i7E79C942302491E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaB7.png" alt="0683p000009MaB7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here is how the job design:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 589px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaBH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132869i768B756F84B91B41/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaBH.png" alt="0683p000009MaBH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 08:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262898#M43218</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-05-20T08:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262899#M43219</link>
      <description>&lt;P&gt;Thanks alot for that explanation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 08:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262899#M43219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-20T08:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Probem: Talend is writing multiple xml rows into 1 xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262900#M43220</link>
      <description>&lt;P&gt;I tried to implement this, but I ended up with 29 files all containing 1 of the 29 cases.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So some improvement but somehow not working as expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you maybe provide some more advice?&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 09:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Probem-Talend-is-writing-multiple-xml-rows-into-1-xml-file/m-p/2262900#M43220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-20T09:23:00Z</dc:date>
    </item>
  </channel>
</rss>

