<?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: tWaitforFile triggers too soon in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198184#M1625</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I faced this same issue and there is quick fix available in talend that you can do to resolve this issue of partial file getting loaded while the complete file is not transmitted.&lt;/P&gt; 
&lt;P&gt;In tWaitForFile component, go to Advance settings, tick the checkbox for 'Wait for file to be released' and provide the count of milliseconds you want to wait for this check to be done on your file like every 'X' number of ms, component will check if file is released from any other operation, if yes, then it moves to next component else it continues to wait till the complete file is released.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwVm"&gt;tWait_for_File_release_settings.PNG&lt;/A&gt;</description>
    <pubDate>Fri, 09 Aug 2019 10:22:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-09T10:22:45Z</dc:date>
    <item>
      <title>tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198170#M1611</link>
      <description>I need to use the trigger tWaitforFile component and then begin processing that file. The tWaitforFile component doesn't wait for the file to complete the transmission and prematurely begins the next step. tSleep won't help me because the file can be as many as 80 million rows and take an unknown amount of time to finish copying. How can I tell the component to trigger after file is finished? 
&lt;BR /&gt;- Bob</description>
      <pubDate>Sat, 16 Nov 2024 14:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198170#M1611</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198171#M1612</link>
      <description>Hello 
&lt;BR /&gt;The tWaitforFile is used to minitor a folder, if there is a new file created in this folder, it will tigger another action. on the next step, you can do your transmission. Note that, you should run the job first to monitor the folder. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 27 Oct 2008 13:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198171#M1612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-27T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198172#M1613</link>
      <description>Maybe I wasn't clear.  I need to use the file in the next step, but it isn't done getting to the folder.  How do I make Talend wait until the file is copied completely?</description>
      <pubDate>Mon, 27 Oct 2008 14:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198172#M1613</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-10-27T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198173#M1614</link>
      <description>you have to use the tSleep component after your tWaitForFile component, and set it to sleep for as long as it takes for the file to get fully loaded</description>
      <pubDate>Mon, 27 Oct 2008 16:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198173#M1614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-27T16:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198174#M1615</link>
      <description>But I don't know how long to make it sleep.  Is there a way to detect if it is done?</description>
      <pubDate>Mon, 27 Oct 2008 16:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198174#M1615</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-10-27T16:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198175#M1616</link>
      <description>Not that I know of...&lt;BR /&gt;5484&lt;BR /&gt;maybe you could link to a tFileProperties and filter on a certain file size, but then you'd have to loop through (tWaitForFile -&amp;gt; tFileProperties -&amp;gt; tFilterRow) until the file was the size you wanted, so that might not be so helpful</description>
      <pubDate>Mon, 27 Oct 2008 18:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198175#M1616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-27T18:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198176#M1617</link>
      <description>Thank you for opening an issue log.  I am sure I am not the only one who would like to see this.  I will try the file properties loop as you suggest and hope for an easier component someday.</description>
      <pubDate>Mon, 27 Oct 2008 19:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198176#M1617</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-10-27T19:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198177#M1618</link>
      <description>or maybe you could write a code routine, or use one of the tJava* components and use one of these:&lt;BR /&gt;&lt;A href="http://java.sun.com/javase/6/docs/api/java/nio/channels/FileChannel.html#tryLock()" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/javase/6/docs/api/java/nio/channels/FileChannel.html#tryLock()&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://java.sun.com/javase/6/docs/api/java/nio/channels/FileLock.html" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/javase/6/docs/api/java/nio/channels/FileLock.html&lt;/A&gt;</description>
      <pubDate>Mon, 27 Oct 2008 20:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198177#M1618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-27T20:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198178#M1619</link>
      <description>Bob,&lt;BR /&gt;I had the same problem as you, maybe it will help you.&lt;BR /&gt;I use tWaitForFile to wait until my report is generated and once it is ready I send it as attachment in e-mail (tSendMail).&lt;BR /&gt;I added 1 extra line at the very bottom of script where I generate report to copy created file into the same folder.&lt;BR /&gt;I rebuilt my job and I have now:&lt;BR /&gt;tWaitForFile_1 --iterate--&amp;gt; tWaitForFile_2 --iterate--&amp;gt; tSendMail_1  --onComponentOk--&amp;gt; tFileDelete_1&lt;BR /&gt;In tFileDelete_1 I delete copied file (from tWaitForFile_2).&lt;BR /&gt;I hope it helps for you.&lt;BR /&gt;Marcin</description>
      <pubDate>Wed, 03 Dec 2008 13:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198178#M1619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-03T13:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198179#M1620</link>
      <description>strpdsnk, 
&lt;BR /&gt;your solution looks more profesional. 
&lt;BR /&gt;Could you provide few lines of code with how it should be written for people who are not experienced in Java, please? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Marcin</description>
      <pubDate>Wed, 03 Dec 2008 13:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198179#M1620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-03T13:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198180#M1621</link>
      <description>Bob,&lt;BR /&gt;There's always the "old way."  I had  a similar problem and had the people who send the file add a final step to THEIR job that generates the file to create a second file called "DONE" in the same directory.  So, then all I have to do is look for DONE file. Because it only shows up when the sender job has completed writing the file.</description>
      <pubDate>Thu, 04 Dec 2008 17:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198180#M1621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-04T17:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198181#M1622</link>
      <description>Is there a way to specify a quiesce time? ie. where the current time - last time the file was accessed/modified &amp;gt;= quiesce time. Can i open a request or bug on this somewhere?</description>
      <pubDate>Mon, 23 Mar 2009 22:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198181#M1622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-23T22:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198182#M1623</link>
      <description>Since our file transfer could be anywhere from 5 seconds to 5 hours, we needed a solution that was checking the file. We didn't want to check the size changing because we felt this may be unreliable and we needed a 100% failure proof solution. Our solution to this was to use the tJavaFlex component and pur this code into the "start" code area. Use this component following the tWaitforFile.
&lt;BR /&gt; CheckFileUsage FileChecker = new CheckFileUsage();
&lt;BR /&gt; boolean fileInUse = true;
&lt;BR /&gt; context.customerFileIn = ((String)globalMap.get("tWaitForFile_1_FILENAME"));
&lt;BR /&gt; 
&lt;BR /&gt; while (fileInUse) {
&lt;BR /&gt; try{FileChecker.FileUseCheck (context.nasFolderIn + context.customerFileIn);
&lt;BR /&gt; fileInUse = false; }
&lt;BR /&gt; catch (IOException e) {System.err.println("ERROR TRAP");
&lt;BR /&gt; System.err.println (e);} 
&lt;BR /&gt; }
&lt;BR /&gt;- Bob</description>
      <pubDate>Mon, 23 Mar 2009 23:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198182#M1623</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-03-23T23:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198183#M1624</link>
      <description>Oh yeah....&lt;BR /&gt;this line ---&amp;gt;&amp;gt; try{FileChecker.FileUseCheck (context.nasFolderIn + context.customerFileIn);&lt;BR /&gt;should have your file name in it.&lt;BR /&gt;- Bob</description>
      <pubDate>Mon, 23 Mar 2009 23:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198183#M1624</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-03-23T23:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: tWaitforFile triggers too soon</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198184#M1625</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I faced this same issue and there is quick fix available in talend that you can do to resolve this issue of partial file getting loaded while the complete file is not transmitted.&lt;/P&gt; 
&lt;P&gt;In tWaitForFile component, go to Advance settings, tick the checkbox for 'Wait for file to be released' and provide the count of milliseconds you want to wait for this check to be done on your file like every 'X' number of ms, component will check if file is released from any other operation, if yes, then it moves to next component else it continues to wait till the complete file is released.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwVm"&gt;tWait_for_File_release_settings.PNG&lt;/A&gt;</description>
      <pubDate>Fri, 09 Aug 2019 10:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWaitforFile-triggers-too-soon/m-p/2198184#M1625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T10:22:45Z</dc:date>
    </item>
  </channel>
</rss>

