<?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 process multiples files only for a day before using Talend? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-process-multiples-files-only-for-a-day-before-using/m-p/2354235#M120256</link>
    <description>&lt;P&gt;Thank, I have found answer. &lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 14:43:05 GMT</pubDate>
    <dc:creator>ANguyen1685543904</dc:creator>
    <dc:date>2023-07-20T14:43:05Z</dc:date>
    <item>
      <title>How to process multiples files only for a day before using Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-process-multiples-files-only-for-a-day-before-using/m-p/2354233#M120254</link>
      <description>&lt;P&gt;I have used tFileList in Talend to get files from a VM remote, which will be generated each day. I want to I want to pick files only for the past hour and do the required processing. I have referred to this question in StackOverflow like below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/45550213/how-to-process-files-only-for-the-past-hour-using-talend" target="_blank"&gt;How to process files only for the past hour using Talend?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am stuck at step of writing code in tJavaRow. The error is :&amp;nbsp;&lt;B&gt;#  "output_row cannot be resolved to a variable"&lt;/B&gt;&amp;nbsp;Here is my job : .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000luzRSAAY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147284iF0034DDB33E8BEA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000luzRSAAY.png" alt="0695b00000luzRSAAY.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my code in tJavaRow_1 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;((String)globalMap.get(&lt;/I&gt;&lt;I&gt;"tFileList_5_CURRENT_FILEPATH"&lt;/I&gt;&lt;I&gt;)) = input_row&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Date&lt;/I&gt;&lt;I&gt; &lt;/I&gt;&lt;I&gt;lastModifiedDate&lt;/I&gt;&lt;I&gt; = TalendDate.parseDate(&lt;/I&gt;&lt;I&gt;"EEE MMM dd HH:mm:ss zzz yyyy"&lt;/I&gt;&lt;I&gt;, input_row.mtime_string);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Date&lt;/I&gt;&lt;I&gt; &lt;/I&gt;&lt;I&gt;current_date&lt;/I&gt;&lt;I&gt; = TalendDate.getCurrentDate();&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;if&lt;/I&gt;&lt;I&gt;(TalendDate.diffDate(current_date, lastModifiedDate,&lt;/I&gt;&lt;I&gt;"dd"&lt;/I&gt;&lt;I&gt;) &amp;lt;= &lt;/I&gt;&lt;I&gt;15&lt;/I&gt;&lt;I&gt;) {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;output_row.abs_path = input_row.abs_path;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;}&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help my to resolve this error.&lt;/P&gt;&lt;P&gt;I have tried some solutions but it didn't work. Like changing output_row to tJavaRow_1 or Output because I see this schema of tJavaRow_1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000luzTnAAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140293iE9AC72F062EBE6FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000luzTnAAI.png" alt="0695b00000luzTnAAI.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-process-multiples-files-only-for-a-day-before-using/m-p/2354233#M120254</guid>
      <dc:creator>ANguyen1685543904</dc:creator>
      <dc:date>2024-11-15T21:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to process multiples files only for a day before using Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-process-multiples-files-only-for-a-day-before-using/m-p/2354234#M120255</link>
      <description>&lt;P&gt;Hi @Anh Nguyen​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to connect tJavaRow to an output component to be able to use "output_row".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems you want to store the absolute path for those files recently modified and read those files using tFileInputDelimited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that's the case, you can use a globaL variable instead of output_row:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (&lt;I&gt;TalendDate.diffDate(current_date, lastModifiedDate,"dd") &amp;lt;= 15) {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;    gobalMap.put("path", input_row.abs_path);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;}&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can use this variable on your If trigger or tFileInputDelimited:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;((String)globalMap.get("path"))&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 01:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-process-multiples-files-only-for-a-day-before-using/m-p/2354234#M120255</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-07-20T01:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to process multiples files only for a day before using Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-process-multiples-files-only-for-a-day-before-using/m-p/2354235#M120256</link>
      <description>&lt;P&gt;Thank, I have found answer. &lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-process-multiples-files-only-for-a-day-before-using/m-p/2354235#M120256</guid>
      <dc:creator>ANguyen1685543904</dc:creator>
      <dc:date>2023-07-20T14:43:05Z</dc:date>
    </item>
  </channel>
</rss>

