<?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: Load files in specific sequence in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247701#M32800</link>
    <description>&lt;P&gt;Attaches is the screen shot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure why the file component fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the file path that I pass in file and also in tFileExist1&lt;/P&gt;&lt;P&gt;"C:/Users/su/Desktop/Z/File_To_Process/"+((String)globalMap.get("Name_of_File"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Makh"&gt;Untitled.png&lt;/A&gt;</description>
    <pubDate>Wed, 13 May 2020 15:30:53 GMT</pubDate>
    <dc:creator>sunbaj</dc:creator>
    <dc:date>2020-05-13T15:30:53Z</dc:date>
    <item>
      <title>Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247694#M32793</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I need to load files from a folder in a specific sequence. I might get more than 1 file in a day. So I need to load the file in a specific sequence only in a loop so that the oldest file loads first and the full process id executed and then and then the subsequent files are loaded one by one.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I achieve this. tFileList does not specify the sequence. It randomly picks the file in any sequence but I need to load the files in a specific sequence.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have loaded the file properties in a table and now I would pull the file name and them loop through it and process it one by one.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What would be the best way to achieve this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Sunil&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247694#M32793</guid>
      <dc:creator>sunbaj</dc:creator>
      <dc:date>2024-11-16T02:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247695#M32794</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOBwAAO"&gt;@sunbaj&lt;/A&gt;, you need to leverage the order by and order by action properties in tfilelist basic settings.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 10:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247695#M32794</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-12T10:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247696#M32795</link>
      <description>&lt;P&gt;Thanks for the quick response but that would be very risky. Of all the options available I can only order it by modified date but what if for some reason I have the modified date wrong. I would like to sort it by name but that cannot be done as the file name is in the below format Rpt 2 May 2020, Rpt 20 May 2020 etc..&lt;BR /&gt;&lt;BR /&gt;So is there any other way to achieve this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have loaded the files in a table and added a column which has the date field so that the file can be sorted by the date but not sure how to pass the file name in the job in a loop using a sql query&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 10:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247696#M32795</guid>
      <dc:creator>sunbaj</dc:creator>
      <dc:date>2020-05-12T10:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247697#M32796</link>
      <description>&lt;P&gt;Then you are almost there.&amp;nbsp; Just read your table with a tdbinput component and connect it to a tFlowToIterate.&amp;nbsp; Then connect an "iterate" to the next step of your job.&amp;nbsp; The example on this page should help:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/WqJCkTE5~5DDaSFvtNXZnQ" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/WqJCkTE5~5DDaSFvtNXZnQ&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;DIV class="titlepage"&gt; 
 &lt;DIV&gt; 
  &lt;DIV&gt;
    Scenario: Transforming data flow to a list 
  &lt;/DIV&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt; 
&lt;P&gt;The following scenario describes a Job that reads a list of files from a defined input file, iterates on each of the files and displays their content row by row on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;Run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;console.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 15:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247697#M32796</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-05-12T15:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247698#M32797</link>
      <description>I tried to implement the way as mentioned above. However not sure why I get the below error. When I copy and paste the path in file explorer the file opens up.&lt;BR /&gt;&lt;BR /&gt;xception in component tFileInputExcel_1 (childjob)&lt;BR /&gt;java.io.FileNotFoundException: C:\Users\su\Desktop\Z\File_To_Process\Revenue 2 Mar 2020 (The system cannot find the file specified)&lt;BR /&gt;at java.io.FileInputStream.open0(Native Method)&lt;BR /&gt;at java.io.FileInputStream.open(Unknown Source)&lt;BR /&gt;at java.io.FileInputStream.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;at java.io.FileInputStream.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;at zrr.childjob_0_1.childjob.tDBInput_2Process(childjob.java:3389)&lt;BR /&gt;at zrr.childjob_0_1.childjob.runJobInTOS(childjob.java:5074)&lt;BR /&gt;at zrr.childjob_0_1.childjob.main(childjob.java:4908)</description>
      <pubDate>Wed, 13 May 2020 14:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247698#M32797</guid>
      <dc:creator>sunbaj</dc:creator>
      <dc:date>2020-05-13T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247699#M32798</link>
      <description>&lt;P&gt;Does the file exist?&amp;nbsp; Try the tFileExist.&amp;nbsp; Is the file found?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;C:\Users\su\Desktop\Z\File_To_Process\Revenue 2 Mar 2020"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 15:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247699#M32798</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-05-13T15:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247700#M32799</link>
      <description>Yes. File exists. When I copy and paste the path in file explorer it opens that file but in Talend it gives error</description>
      <pubDate>Wed, 13 May 2020 15:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247700#M32799</guid>
      <dc:creator>sunbaj</dc:creator>
      <dc:date>2020-05-13T15:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247701#M32800</link>
      <description>&lt;P&gt;Attaches is the screen shot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure why the file component fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the file path that I pass in file and also in tFileExist1&lt;/P&gt;&lt;P&gt;"C:/Users/su/Desktop/Z/File_To_Process/"+((String)globalMap.get("Name_of_File"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Makh"&gt;Untitled.png&lt;/A&gt;</description>
      <pubDate>Wed, 13 May 2020 15:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247701#M32800</guid>
      <dc:creator>sunbaj</dc:creator>
      <dc:date>2020-05-13T15:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247702#M32801</link>
      <description>&lt;P&gt;Add a tJava before the tfileexists with this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System.out.println(&lt;SPAN&gt;"C:/Users/su/Desktop/Z/File_To_Process/"+((String)globalMap.get("Name_of_File"))&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does it show in the console?&amp;nbsp; Is the path and filename correct?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 16:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247702#M32801</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-05-13T16:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247703#M32802</link>
      <description>&lt;P&gt;Also, when using the tFileExist, you connect to your ZRR_FILE with an "if" connector, not a OnComponentOk.&amp;nbsp; See the tFileExist help.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 16:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247703#M32802</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-05-13T16:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247704#M32803</link>
      <description>Not been able to resolve it. So near to solution yet so far from resolving it 
&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://community.qlik.com/" alt="Smiley Sad" title="Smiley Sad" /&gt;</description>
      <pubDate>Wed, 13 May 2020 16:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247704#M32803</guid>
      <dc:creator>sunbaj</dc:creator>
      <dc:date>2020-05-13T16:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load files in specific sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247705#M32804</link>
      <description>Finally able to resolve it. I had to append the file type which I was not doing. So now finally I have been able to run it in a loop.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 13 May 2020 17:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-files-in-specific-sequence/m-p/2247705#M32804</guid>
      <dc:creator>sunbaj</dc:creator>
      <dc:date>2020-05-13T17:17:52Z</dc:date>
    </item>
  </channel>
</rss>

