<?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: [resolved] Pick single file from folder in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360180#M124820</link>
    <description>just find a tricky way to do that 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;use the Talend variable&amp;nbsp;NB_FILEtFileList_1 in a if condition after iteration on tFileList 
&lt;BR /&gt;if condition&amp;nbsp; 
&lt;BR /&gt; 
&lt;PRE&gt;NB_FILEtFileList_1==1&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MArb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157800i4C21C0A3D39DF2DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MArb.png" alt="0683p000009MArb.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;3 iterations (3 csv file) but read only one (the first one) 
&lt;BR /&gt;ps : just a System.out in my tJava 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;System.out.println(NB_FILEtFileList_1);&lt;/PRE&gt; 
&lt;BR /&gt;&amp;nbsp;could be better to use a tWarn to log which file is iterate (current iteration) 
&lt;BR /&gt;hope it help 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
    <pubDate>Mon, 15 Sep 2014 14:59:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-15T14:59:29Z</dc:date>
    <item>
      <title>[resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360172#M124812</link>
      <description>Hi,&lt;BR /&gt;I want to pick a single file from a folder which may have multiple files of same format. This file can be any file.&lt;BR /&gt;How to do so? tFileList iterates on files and loads all the files one after other. I don't want this. I only want to load a single file instead.</description>
      <pubDate>Mon, 15 Sep 2014 10:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360172#M124812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T10:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360173#M124813</link>
      <description>I guess you need for some reason the tFileList component, otherwise your question is hard to understand because p&lt;FONT size="2"&gt;rocessing a single file is the default use case of the file processing components (like tFileInput* etc.).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;You can set the file name in the tFileList as filter condition. Thats causes the tFileList to return exact this file.&lt;/FONT&gt;</description>
      <pubDate>Mon, 15 Sep 2014 10:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360173#M124813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T10:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360174#M124814</link>
      <description>In tfileinput* we need to specify the file name. We can't use *.csv to pick a file.&lt;BR /&gt;I want to pick one file from the directory which may contain multiple files.&lt;BR /&gt;One File ---&amp;gt; TMap -----&amp;gt; tmysqlOutput&lt;BR /&gt;The don't know the file name but i know it is a csv file. (The folder can have multiple csv file at this time but i want to pick any one of them)</description>
      <pubDate>Mon, 15 Sep 2014 11:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360174#M124814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T11:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360175#M124815</link>
      <description>hi,&lt;BR /&gt;you don't know the name but how to identify it (for the filter or regex) ?&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 15 Sep 2014 11:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360175#M124815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T11:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360176#M124816</link>
      <description>I just need to pick any file in that folder.&amp;nbsp;&lt;BR /&gt;The regex i would use is "*.csv" or "abc*.csv"</description>
      <pubDate>Mon, 15 Sep 2014 11:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360176#M124816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T11:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360177#M124817</link>
      <description>If you want to control your no. of iterations then use tWaitForFile instead of tFileList.</description>
      <pubDate>Mon, 15 Sep 2014 12:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360177#M124817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T12:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360178#M124818</link>
      <description>Thanks!&amp;nbsp;&lt;BR /&gt;But won't it process all the files if multiple files are uploaded in the directory?</description>
      <pubDate>Mon, 15 Sep 2014 12:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360178#M124818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T12:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360179#M124819</link>
      <description>Processing of files depends upon parameters you will define in component setting 
&lt;BR /&gt;please look below screenshot and put same parameters (as in your case only) 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAYl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140226iDCE7BE39D06F2FD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAYl.png" alt="0683p000009MAYl.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 15 Sep 2014 13:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360179#M124819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T13:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360180#M124820</link>
      <description>just find a tricky way to do that 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;use the Talend variable&amp;nbsp;NB_FILEtFileList_1 in a if condition after iteration on tFileList 
&lt;BR /&gt;if condition&amp;nbsp; 
&lt;BR /&gt; 
&lt;PRE&gt;NB_FILEtFileList_1==1&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MArb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157800i4C21C0A3D39DF2DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MArb.png" alt="0683p000009MArb.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;3 iterations (3 csv file) but read only one (the first one) 
&lt;BR /&gt;ps : just a System.out in my tJava 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;System.out.println(NB_FILEtFileList_1);&lt;/PRE&gt; 
&lt;BR /&gt;&amp;nbsp;could be better to use a tWarn to log which file is iterate (current iteration) 
&lt;BR /&gt;hope it help 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 15 Sep 2014 14:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360180#M124820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360181#M124821</link>
      <description>Thank you m.gajvani&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Works fine now.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 16 Sep 2014 09:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360181#M124821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-16T09:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Pick single file from folder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360182#M124822</link>
      <description>just a point about 'tWaitForFile' as solution. 
&lt;BR /&gt;as background process (waiting for something), you have to listen to if it's still alive &amp;amp; stil wait for new file 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&amp;nbsp; 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent&amp;nbsp;</description>
      <pubDate>Tue, 16 Sep 2014 10:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Pick-single-file-from-folder/m-p/2360182#M124822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-16T10:10:47Z</dc:date>
    </item>
  </channel>
</rss>

