<?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: Detecting file not found with tFTPGet in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371115#M134089</link>
    <description>Alternately, you can create a conditional (Run If) link from tFTPGet with a condition like:&lt;BR /&gt;((Integer)globalMap.get("tFTPGet_1_NB_FILE")) == 0</description>
    <pubDate>Mon, 23 Apr 2018 16:59:06 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2018-04-23T16:59:06Z</dc:date>
    <item>
      <title>Detecting file not found with tFTPGet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371112#M134086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I have a job that tries to pick up a file from our sftp site every morning. I would like to detect if the file is missing.&lt;/P&gt; 
&lt;P&gt;The tFTPGet onSubJobOK connects to a fileInputDelimited component. As long as the file is there, it works fine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I connected a tSendMail component that is connected to the OnComponentError of the tFTPGet and should send the error via email using&amp;nbsp;((String)globalMap.get("tFTPGet_1_ERROR_MESSAGE"))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Unfortunately, when I run the job and the file is missing, it always seems to return OK not error (even though I can see the job returning "the system can't file the file specified".)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any idea what I'm doing wrong?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;TIA.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 18:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371112#M134086</guid>
      <dc:creator>rviard</dc:creator>
      <dc:date>2018-04-16T18:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting file not found with tFTPGet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371113#M134087</link>
      <description>&lt;P&gt;"OnComponentError" will only trigger if the component itself fails (e.g. the connection to the ftp site gets closed, or something along those lines). Even though that file was not found, the component still executed successfully. If you're looking to see if a specific file name was processed, you&amp;nbsp;could use the tFTPFileExist component, then check the global var&amp;nbsp;((Boolean)globalMap.get("tFTPFileExist_1_EXISTS"))&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 20:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371113#M134087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-16T20:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting file not found with tFTPGet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371114#M134088</link>
      <description>&lt;P&gt;Ah, OK. That makes sense. Thank you I'll try your suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 20:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371114#M134088</guid>
      <dc:creator>rviard</dc:creator>
      <dc:date>2018-04-16T20:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting file not found with tFTPGet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371115#M134089</link>
      <description>Alternately, you can create a conditional (Run If) link from tFTPGet with a condition like:&lt;BR /&gt;((Integer)globalMap.get("tFTPGet_1_NB_FILE")) == 0</description>
      <pubDate>Mon, 23 Apr 2018 16:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371115#M134089</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2018-04-23T16:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting file not found with tFTPGet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371116#M134090</link>
      <description>&lt;P&gt;Thanks, the first solution got the job done, but I'll keep that in mind.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 17:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371116#M134090</guid>
      <dc:creator>rviard</dc:creator>
      <dc:date>2018-04-23T17:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting file not found with tFTPGet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371117#M134091</link>
      <description>Please mark the solution as accepted whichever helped u</description>
      <pubDate>Mon, 23 Apr 2018 20:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Detecting-file-not-found-with-tFTPGet/m-p/2371117#M134091</guid>
      <dc:creator>abhi90</dc:creator>
      <dc:date>2018-04-23T20:02:40Z</dc:date>
    </item>
  </channel>
</rss>

