<?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: How to get multiple excel files after extracting most recent to tflowtoiterate in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288742#M62205</link>
    <description>This sounds excellent with the java. However, I am not sure how to work in the tfilelist, being that a human will be saving and naming these files, the modified date may be the same for files that are not of the same month. Therefore, I would like to stick to my textractregexfields (see attached). This works, pulling the two current files I want. Would I connect the tjava component to tbufferoutput? Thanks for the excellent code, btw. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Jun 2017 15:29:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-22T15:29:36Z</dc:date>
    <item>
      <title>How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288738#M62201</link>
      <description>&lt;P&gt;I have googled to death on this and am not sure I can do this with talend, or if I am not asking about the correct components. &amp;nbsp;My talend job goes to a folder with numerous dated excel files and pulls the most recent two. &amp;nbsp;I was hoping I could pull them both into the same postgres table via tpostgresqloutput. &amp;nbsp;However, the tfileinputexcel component I am using, I am using&amp;nbsp;((String)globalMap.get("MostRecent")) and therefore pulls only one. &amp;nbsp;Is there a way to pull both files? &amp;nbsp;currently here are components:&lt;/P&gt; 
&lt;P&gt;tpostgresqlconnection trigger ok to tfilelist1 to folder with multiple excel iterate to titeratetoflow_2 main to tbufferoutput_1 main to tlogrow_2. tbufferinput_1 also triggered by tfilelist_1 main textractregexfeilds_1 main tsortrow_1 main tlogrow3 main tsamplerow_1 with "1..2" main tlogrow-4 main tflowtoiterate_1 with basic settings as key "MostRecent" &amp;nbsp;value = CURRENT_FILEPATH. &amp;nbsp;Second row in customize box is key = "LastFileName" and value = "CURRENT_FILE". &amp;nbsp;I am sure this code can be changed, but I'm not a java person so really have no clue. &amp;nbsp;tried to take snapshot of talend job but could not paste in.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 19:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288738#M62201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T19:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288739#M62202</link>
      <description>Can you share a capture of the job design?
&lt;BR /&gt;Not sure to understand your case. Of course you can load 2 (or more) Excel file in your db, one at a time.
&lt;BR /&gt;So you need to iterate over the files (using tFileList) then read the content (using tFileInputExcel) and finally push the content into the db (using tPostgresqlOutput).
&lt;BR /&gt;If you're able to get the name of the 2 files you want to load, then use 2 global variable to store these names and as filter in tFileList.</description>
      <pubDate>Wed, 21 Jun 2017 22:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288739#M62202</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-21T22:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288740#M62203</link>
      <description>I have attached a word document that shows the entire talend job, and then the code in tflowtoiterate and tfileinputexcel. I think one or both of these need to have the code changed so this will pull the two files flowed to the tflowtoiterate_1 component. All the previous components are working properly to pull the two most recent files. The tfileList_1 just has the beginning file name "smartgfe*" and then extracts the two most current. I really appreciate your help. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2017 14:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288740#M62203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288741#M62204</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;has said is a good solution.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Using the tFileList you can order the files returned by "modified date". &amp;nbsp;This enables you to (with a little experimentation of the feature)&amp;nbsp;retrieve a list of filenames in date order. Connect the tFileList to a tJava component with the following code....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;int count = 0;

//Checks to see if "count" exists.
if(globalMap.get("count")!=null){
     //Adds 1 to the current "count" value
     count = ((Integer)globalMap.get("count")).intValue() +1;
}else{
    //"creates the first "count" value
    count = 1;
}

//Update or set the globalMap value
globalMap.put("count", count);    &lt;/PRE&gt; 
&lt;P&gt;Now connect your tJava to the&amp;nbsp;&lt;SPAN&gt;tFileInputExcel using a RunIf link. In the RunIf expression use the following logic....&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;((Integer)globalMap.get("count")).intValue()&amp;lt;=2&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN&gt;Then (if the rest of your job is configured OK) you should be able to limit the file read to the most recent two files.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 14:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288741#M62204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T14:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288742#M62205</link>
      <description>This sounds excellent with the java. However, I am not sure how to work in the tfilelist, being that a human will be saving and naming these files, the modified date may be the same for files that are not of the same month. Therefore, I would like to stick to my textractregexfields (see attached). This works, pulling the two current files I want. Would I connect the tjava component to tbufferoutput? Thanks for the excellent code, btw. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288742#M62205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T15:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288743#M62206</link>
      <description>&lt;P&gt;OK, it sounds like you may have a different method that doesn't require my method....but I cannot see your attachment I'm afraid. You should be able to insert an image of your job by clicking on the "photos" button here and selecting yoru screenshot&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288743#M62206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T15:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288744#M62207</link>
      <description>&lt;P&gt;Thanks to rhall for telling me how to upload pix. &amp;nbsp;You are probably thinking by now I should be looking for a new career. &amp;nbsp;here is the job in total, and then the two components I was thinking needed different code.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend job to extract multiple excel files starr cruise.jpg" style="width: 983px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvoc.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152263iFA4D6A6E30104BFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvoc.jpg" alt="0683p000009Lvoc.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tfileinputexcel.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvVM.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136002iB5A6DB28710BC1A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvVM.jpg" alt="0683p000009LvVM.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tflowtoiterate component.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvom.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156642i661E183C053232C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvom.jpg" alt="0683p000009Lvom.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 16:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288744#M62207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T16:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288745#M62208</link>
      <description>&lt;P&gt;Ah, I see. If you have already narrowed the jobs down to the two you want by the time you get to the tFlowToIterate, you simply need to connect the tFlowToIterate to the Excel component using an iterate link. This will allow you to run the last subjob one time for every version of the file (in this case, 2 versions)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 16:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288745#M62208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T16:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288746#M62209</link>
      <description>&lt;P&gt;I made what I thought was correct change, but though it runs, it only captures last file. &amp;nbsp;What did I do wrong? &amp;nbsp;do I need to change the code in the tfileinputexcel? &amp;nbsp;Thanks for your patience. &amp;nbsp;This is really important as I have other talend jobs like this I need to do the same.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="revised talend job.jpg" style="width: 961px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvjK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139931iADE1B95E95DCF9C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvjK.jpg" alt="0683p000009LvjK.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 17:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288746#M62209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T17:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288747#M62210</link>
      <description>The filename field of your Excel input should be the filename variable from tFlowToIterate. (Expand the entry for tFlowToIterate_1 in the Outline area in the bottom left and you can drag and drop the value directly into the component settings.)</description>
      <pubDate>Thu, 22 Jun 2017 19:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288747#M62210</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-22T19:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288748#M62211</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLooAAG"&gt;@cterenzi&lt;/A&gt;&amp;nbsp;suggests, it is likely the variable you are using for the Excel component. Can you show us how your Excel component is configured?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 22:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288748#M62211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T22:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288749#M62212</link>
      <description>&lt;P&gt;Hi cterenzi,&lt;/P&gt; 
&lt;P&gt;Thanks for the new education on the outline. &amp;nbsp;I am so happy to have learned that. &amp;nbsp;However, I did drag in the "current_filepath which produced the exact code I had originally and only pulled in one file. &amp;nbsp;For the heck of it, I drug in current_file, AND Current iteration of line just to see if you meant those. &amp;nbsp;They error out. &amp;nbsp;here is screen shot with current_filepath drug over which works but is exactly what I had and only pulls one&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tinputexcelfile file name.stream by drag and drop.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvpR.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130138iC191A11A4681262F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvpR.jpg" alt="0683p000009LvpR.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 22:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288749#M62212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T22:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288750#M62213</link>
      <description>&lt;P&gt;you are correct. &amp;nbsp;It replicated what I was already using. &amp;nbsp;I just sent it before you replied.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 22:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288750#M62213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T22:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple excel files after extracting most recent to tflowtoiterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288751#M62214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I am new to Talend , I&amp;nbsp; have similar kind of requirements to read excel files from SFTP server ,&lt;/P&gt;
&lt;P&gt;I use this workflow to get the server files ,It is getting all files from sftp server successfully .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;tFTPconnection -- on component-OK -- tFTPfilelist_1 --tIterateToFlow_1-- tFileoutputExcel---tLogRow&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tjava_1 -- tFileInputExcel_1--tfilterrow_1 --tmap_1---PostgresqlOutPut&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I am getting this error while I am ready from excel file .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;tFileInputExel_1 Filename has&amp;nbsp;((String)globalMap.get("tFTPFileList_1_CURRENT_FILE"))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Exception in component tFileInputExcel_1 (Kite_sftp_connection)&lt;BR /&gt;java.io.FileNotFoundException: RE_check_register.xlsx (The system cannot find the file specified)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I have tried *FILEPATH)&amp;nbsp; but showing same error message .&lt;/P&gt;
&lt;P&gt;Can you please suggest , how to solve this issue .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 14:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-multiple-excel-files-after-extracting-most-recent-to/m-p/2288751#M62214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-07T14:58:51Z</dc:date>
    </item>
  </channel>
</rss>

