<?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 how to create a file from each row with dynamic name based in columns value for each row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302278#M74281</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this flow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tDBInput - tmap - tflowtoiterate - tfixedinput - tfileoutputdelimited&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the beginning i have a "table" with 3 columns: col1, col2, col3. In the tmap i keep col3 and i create another col (fichName) as col1 + col2. What i want at the end is to have one file for each row and name fichName. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i had only 1 row in the first table i want to get only 1 file which content is the value of col3 for that only row and the name of that file should be &lt;/P&gt;&lt;P&gt;fichName (&lt;/P&gt;col1 + col2)&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with this flow for a lot of time, also with tsetglobalvar and i dont get the correct result. The closer i got was to have a file for each row containing the value of col3 as desired but the names of those files were null0, null1, null2, etc or simply 0, 1, 2, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance!&lt;/P&gt;&lt;P&gt;Thanx!&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:54:56 GMT</pubDate>
    <dc:creator>oasis2000</dc:creator>
    <dc:date>2024-11-15T22:54:56Z</dc:date>
    <item>
      <title>how to create a file from each row with dynamic name based in columns value for each row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302278#M74281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this flow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tDBInput - tmap - tflowtoiterate - tfixedinput - tfileoutputdelimited&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the beginning i have a "table" with 3 columns: col1, col2, col3. In the tmap i keep col3 and i create another col (fichName) as col1 + col2. What i want at the end is to have one file for each row and name fichName. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i had only 1 row in the first table i want to get only 1 file which content is the value of col3 for that only row and the name of that file should be &lt;/P&gt;&lt;P&gt;fichName (&lt;/P&gt;col1 + col2)&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with this flow for a lot of time, also with tsetglobalvar and i dont get the correct result. The closer i got was to have a file for each row containing the value of col3 as desired but the names of those files were null0, null1, null2, etc or simply 0, 1, 2, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance!&lt;/P&gt;&lt;P&gt;Thanx!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302278#M74281</guid>
      <dc:creator>oasis2000</dc:creator>
      <dc:date>2024-11-15T22:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a file from each row with dynamic name based in columns value for each row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302279#M74282</link>
      <description>&lt;P&gt;Hi @Beatriz Martinez Serna​, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you mind showing us your job (a screenshot)? Also include screenshots of your file component's config. It looks like the right flow, I suspect that there is a slight config error. It looks like you are nearly there.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 21:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302279#M74282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-17T21:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a file from each row with dynamic name based in columns value for each row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302280#M74283</link>
      <description>&lt;P&gt;To use the current column value in the file name, the expression looks like below, eg:&lt;/P&gt;&lt;P&gt;"D:/file/"+(String)globalMap.get("out1.fichName")+".txt"&lt;/P&gt;&lt;P&gt;//out1 is the flow name after tMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 07:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302280#M74283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-18T07:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a file from each row with dynamic name based in columns value for each row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302281#M74284</link>
      <description>&lt;P&gt;Thanx, I think the problem is in the tFixedFlowInput. I have tried both keeping and not keeping "nombFich" and nothing. Now as i dont really know what i am doing, with the flow as it is, i only get only file again, not one per row as desired :'(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000RhlKvAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147319i08DEC89A9EA2B98B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000RhlKvAAJ.png" alt="0695b00000RhlKvAAJ.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000RhlL5AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141432i99CAD276A13EABCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000RhlL5AAJ.png" alt="0695b00000RhlL5AAJ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000RhlLFAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131391iF1DAF7947525CA4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000RhlLFAAZ.png" alt="0695b00000RhlLFAAZ.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000RhlLoAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134017i0D7700DDD0688D2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000RhlLoAAJ.png" alt="0695b00000RhlLoAAJ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000RhlLtAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131490iF53CFD2E0916F6FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000RhlLtAAJ.png" alt="0695b00000RhlLtAAJ.png" /&gt;&lt;/span&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000RhlMDAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148702i69BF7C7045712365/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000RhlMDAAZ.png" alt="0695b00000RhlMDAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 08:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302281#M74284</guid>
      <dc:creator>oasis2000</dc:creator>
      <dc:date>2022-05-18T08:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a file from each row with dynamic name based in columns value for each row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302282#M74285</link>
      <description>&lt;P&gt;I tried that, but it didnt work either. Thanx anyway&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 08:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302282#M74285</guid>
      <dc:creator>oasis2000</dc:creator>
      <dc:date>2022-05-18T08:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a file from each row with dynamic name based in columns value for each row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302283#M74286</link>
      <description>&lt;P&gt;on tFlowToIterate, use the default the key,value in global variables, in this case, you don't need to use context variable. &lt;/P&gt;&lt;P&gt;Set the file path like:&lt;/P&gt;&lt;P&gt;"D:/file/"+(String)globalMap.get("out1.nomFich")+".csv"&lt;/P&gt;&lt;P&gt;on tFileOutputDelimited, uncheck the 'split the output in several files' box, you have used tFlowToIterate to iterate each row and set a dynamic file name. If you need a sequence id to be added to the file name, you can generate the sequence id on tMap and concatenate it to the file name&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000RhllXAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157929i0E10FCC06CCD7F59/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000RhllXAAR.png" alt="0695b00000RhllXAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 09:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302283#M74286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-18T09:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a file from each row with dynamic name based in columns value for each row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302284#M74287</link>
      <description>&lt;P&gt;Thanx a lot!! It made the trick!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 10:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-a-file-from-each-row-with-dynamic-name-based-in/m-p/2302284#M74287</guid>
      <dc:creator>oasis2000</dc:creator>
      <dc:date>2022-05-18T10:05:51Z</dc:date>
    </item>
  </channel>
</rss>

