<?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 tFTPGet - how wait for the remote file to be available in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFTPGet-how-wait-for-the-remote-file-to-be-available/m-p/2330643#M99703</link>
    <description>Hi all&lt;BR /&gt;Situation:&lt;BR /&gt;I try to get a file from a ftp, which is created after I submit a requestfile. &lt;BR /&gt;Version:&lt;BR /&gt;TIS 3.0.2.&lt;BR /&gt;Problem:&lt;BR /&gt;unfortunatley the Waitforfile loop doesn't help me out. &lt;BR /&gt;My idea was, that the iterate would fire, each time the timeout would be finished and then trying to get the file, until the max loop count would be reached. An reaching of timeout should return componentError but waitForFile always exits with success, no matter if timeout occured or not!&lt;BR /&gt;I would appreciate a good idea or solution to that !&lt;BR /&gt;&lt;BR /&gt;cheers , Benjamin</description>
    <pubDate>Sat, 16 Nov 2024 14:00:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:00:54Z</dc:date>
    <item>
      <title>tFTPGet - how wait for the remote file to be available</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPGet-how-wait-for-the-remote-file-to-be-available/m-p/2330643#M99703</link>
      <description>Hi all&lt;BR /&gt;Situation:&lt;BR /&gt;I try to get a file from a ftp, which is created after I submit a requestfile. &lt;BR /&gt;Version:&lt;BR /&gt;TIS 3.0.2.&lt;BR /&gt;Problem:&lt;BR /&gt;unfortunatley the Waitforfile loop doesn't help me out. &lt;BR /&gt;My idea was, that the iterate would fire, each time the timeout would be finished and then trying to get the file, until the max loop count would be reached. An reaching of timeout should return componentError but waitForFile always exits with success, no matter if timeout occured or not!&lt;BR /&gt;I would appreciate a good idea or solution to that !&lt;BR /&gt;&lt;BR /&gt;cheers , Benjamin</description>
      <pubDate>Sat, 16 Nov 2024 14:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPGet-how-wait-for-the-remote-file-to-be-available/m-p/2330643#M99703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPGet - how wait for the remote file to be available</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPGet-how-wait-for-the-remote-file-to-be-available/m-p/2330644#M99704</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;My idea was, that the iterate would fire, each time the timeout would be finished and then trying to get the file&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;No, the iterate will not be fired if there is not a file is created/deleted though the timeout is reached. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;An reaching of timeout should return componentError but waitForFile always exits with success&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;tWaitForFile is used to monitor a director and trigger an event if there is a file which is created/delete. and the component always works fine even the timeout is reached. 
&lt;BR /&gt;If you want to always get files from FTP server in one time, you can try the tInfiniteLoop component. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 31 Mar 2009 06:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPGet-how-wait-for-the-remote-file-to-be-available/m-p/2330644#M99704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-31T06:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPGet - how wait for the remote file to be available</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPGet-how-wait-for-the-remote-file-to-be-available/m-p/2330645#M99705</link>
      <description>Hi shong 
&lt;BR /&gt;Thank yo for the suggestion. 
&lt;BR /&gt;I am using now the following flow: 
&lt;BR /&gt;tLoop : (context.loopVar == 0) &amp;amp;&amp;amp; (i&amp;lt; 10) 
&lt;BR /&gt; ¦ 
&lt;BR /&gt;tSleep 
&lt;BR /&gt; ¦ 
&lt;BR /&gt;tFTPget 
&lt;BR /&gt; ¦ 
&lt;BR /&gt;tJava : context.loopVar = ((Integer)globalMap.get("tFTPGet_1_NB_FILE")); 
&lt;BR /&gt;btw: TIS 3.0.4 tLoop allows double quotes " in condition (will not be removed) TIS 3.0.2. double quotes are not accepted. 
&lt;BR /&gt;Cheers 
&lt;BR /&gt;Suggestion: tFPTget with an option to wait for file (efficient because using always the same connection! ) wait-for-file/loopcount/loop-wait-sec</description>
      <pubDate>Tue, 31 Mar 2009 12:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPGet-how-wait-for-the-remote-file-to-be-available/m-p/2330645#M99705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-31T12:49:33Z</dc:date>
    </item>
  </channel>
</rss>

