<?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 Send email if an input file as not arrived in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Send-email-if-an-input-file-as-not-arrived/m-p/2295336#M68120</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to implement the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read files from tList by&amp;nbsp;name&lt;/P&gt;&lt;P&gt;eg: file_20150601.txt,&lt;SPAN&gt;&amp;nbsp;file_20150602.txt,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;file_20150603.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If an incremental file is missing from the list, the job will load until the previous file and wait for next input file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eg : If the folder only had two files,&amp;nbsp;file_20150601.txt,&amp;nbsp;file_20150603 my job will go to tWaitforFile&amp;nbsp;file_20150602.txt after loading&amp;nbsp;file_20150601.txt.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have everything working until that point. However, I want to send email after every iteration of tWaitForFile that the expected file is not available in the directory. How can I achieve that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Current tfile setting is attached. I have a tsendMail , after this, however it is only sending one email -after all iterations are completed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jun 2018 16:48:43 GMT</pubDate>
    <dc:creator>pnair123</dc:creator>
    <dc:date>2018-06-15T16:48:43Z</dc:date>
    <item>
      <title>Send email if an input file as not arrived</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-if-an-input-file-as-not-arrived/m-p/2295336#M68120</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to implement the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read files from tList by&amp;nbsp;name&lt;/P&gt;&lt;P&gt;eg: file_20150601.txt,&lt;SPAN&gt;&amp;nbsp;file_20150602.txt,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;file_20150603.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If an incremental file is missing from the list, the job will load until the previous file and wait for next input file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eg : If the folder only had two files,&amp;nbsp;file_20150601.txt,&amp;nbsp;file_20150603 my job will go to tWaitforFile&amp;nbsp;file_20150602.txt after loading&amp;nbsp;file_20150601.txt.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have everything working until that point. However, I want to send email after every iteration of tWaitForFile that the expected file is not available in the directory. How can I achieve that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Current tfile setting is attached. I have a tsendMail , after this, however it is only sending one email -after all iterations are completed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 16:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-if-an-input-file-as-not-arrived/m-p/2295336#M68120</guid>
      <dc:creator>pnair123</dc:creator>
      <dc:date>2018-06-15T16:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Send email if an input file as not arrived</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-if-an-input-file-as-not-arrived/m-p/2295337#M68121</link>
      <description>tWaitForFile terminates when the condition is completed.&lt;BR /&gt;So you should change your job as:&lt;BR /&gt;tLoop--tFileExists--(if no)--tSendMail--tSleep&lt;BR /&gt;+-(if yes)--tSetGlobalVar&lt;BR /&gt;&lt;BR /&gt;The while condition is based on a global variable (lets say "done") setted to the appropriate value (for example true) when the file is detected</description>
      <pubDate>Fri, 15 Jun 2018 20:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-if-an-input-file-as-not-arrived/m-p/2295337#M68121</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-06-15T20:48:23Z</dc:date>
    </item>
  </channel>
</rss>

