<?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: TFTPfileExist, tloop, tinfiniteloop and tsleep process in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265579#M2087</link>
    <description>&lt;P&gt;The job run by the tRunJob needs to check for a file and if the file is found, do whatever task is required THEN submit a success response using a tBufferOutput (check the Talend documentation for how to use that). If the file is not found, it needs to send a fail status using the tBufferOutput.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the tBufferOutput and went through the document but I couldn't figure out after which component to add the&amp;nbsp; tBufferOutput and how to send&amp;nbsp;&amp;nbsp;a fail status using the tBufferOutput. Also in the tRunJob I am not passing any variable (what values need to be passed). In the job I created I am adding a "run if" condition for file not exist link from tFTPFileExist which I believe I should remove as it keep sending an email after every minute. For success the email component is in the end.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. After the tRunJob, you need to test the result of the tBufferOutput (which returns a data row from the tRunJob). This needs to set a variable. Maybe a globalMap variable. This variable needs to be used in your loop condition. If the file is found, the loop should end as the task is complete. Otherwise, the loop should continue for 15 minutes. Assuming the tSleep is for 1 minute, that is 15 loops.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Returns a data row from the tRunJob (how to pass this).&amp;nbsp;the loop should continue for 15 minutes. Assuming the tSleep is for 1 minute, that is 15 loops.?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;3. Use a SubJobOk link to go from the tLoop to a tjava. From the tJava use RunIf links to decide whether to send your email. If the file was found (your variable set in step 2 can tell you this) send the email. Otherwise do nothing.&lt;/P&gt;
&lt;P&gt;tloop --&amp;gt; tJava (parent job?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am attaching the job I created. Please advice what i am missing.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lwvp"&gt;tchild.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx1h"&gt;tWaitforfile loop.JPG&lt;/A&gt;</description>
    <pubDate>Wed, 04 Dec 2019 15:59:24 GMT</pubDate>
    <dc:creator>AAA999</dc:creator>
    <dc:date>2019-12-04T15:59:24Z</dc:date>
    <item>
      <title>TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265571#M2079</link>
      <description>&lt;P&gt;I need to check if the file exists on ftp server I am using tftpfileExist.&lt;BR /&gt;If the file is not found after certain period of time it should send a notification and loop again to check if the file is present. (Check every 1 minute). Once the file is found the job should kick and on completion it should send a notification and loop back to check for the next file.&lt;/P&gt;
&lt;P&gt;current design below works fine&lt;/P&gt;
&lt;P&gt;tftpconnection---onsubjob--&amp;gt; tFTPFileexist---onsubjob--&amp;gt;tFTPGet1---onsubjob--&amp;gt;TFileExist---onsubjob----Process---notification email ...&lt;BR /&gt;|flase&lt;BR /&gt;email notification&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am struggling which component to use tloop or tinfiniteloop and tsleep after which component and what variables i need to include. Can this be achived in one job? Would be helpful is some one could provide an example.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265571#M2079</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2024-11-16T04:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265572#M2080</link>
      <description>Hi 
&lt;BR /&gt;You need use a tLoop with while model to do the loop and stop the loop once the file is found, there is a global variable ((Boolean)globalMap.get("tFTPFileExist_1_EXISTS")) that can be used as condition of runIf connector, this will trigger other process based on the value of global variable. 
&lt;BR /&gt;Use a tsleep to pause N seconds. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong 
&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Nov 2019 08:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265572#M2080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-25T08:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265573#M2081</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;I tried the option not sure what I am missing.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) In case the file is already present&amp;nbsp; it sends an email&lt;/P&gt; 
&lt;P&gt;2) If file is not present it keeps exec in loop, later if the file is present it still keeps executing in loop and doesn't execute the main job. I have gone through forum but there is no good example for how to kick the main job and loop back once the job is executed for the next day&lt;/P&gt; 
&lt;P&gt;If condition&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;Boolean)globalMap.get("tFTPFileExist_2_EXISTS") == false&lt;/P&gt; 
&lt;P&gt;tloop (used while condition)&lt;/P&gt; 
&lt;P&gt;tsleep== 5 sec&lt;/P&gt; 
&lt;P&gt;what do you mean global variable value and how to define that.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I have attached a sample job&lt;/SPAN&gt;.&lt;/P&gt; 
&lt;P&gt;.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tloop map.JPG" style="width: 592px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Ei.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149510i900011D2B38337B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Ei.jpg" alt="0683p000009M8Ei.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tloop.JPG" style="width: 427px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8G4.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155876iED265892EFB846CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8G4.jpg" alt="0683p000009M8G4.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LxBd"&gt;tloop map.JPG&lt;/A&gt;</description>
      <pubDate>Mon, 25 Nov 2019 16:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265573#M2081</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2019-11-25T16:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265574#M2082</link>
      <description>&lt;P&gt;Can anyone please provide a solution would be helpful.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 14:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265574#M2082</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2019-11-26T14:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265575#M2083</link>
      <description>&lt;P&gt;quick question: how many times do you want the job to re-check the file if it is not present? You need to set a number and exits the loop after retrying several times, otherwise, the job will execute the loop all the time if the file is not present.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 02:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265575#M2083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T02:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265576#M2084</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Want to check the file every 1 minute for 15 minutes. If the file is not present after 15 minutes then only send the email. In my current scenario it keeps sending email every 1 minute if the file is not present.&lt;/SPAN&gt; The process should stop once the file has been processed and loop again next day.&amp;nbsp;&lt;SPAN&gt;Presently I am using For condition in tloop and not passing any parameters in trun condition.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loop1.JPG" style="width: 757px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Dp.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157653iFD2A871BAA187761/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Dp.jpg" alt="0683p000009M8Dp.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LxGX"&gt;loop1.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx9I"&gt;ftpchild.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LxGh"&gt;email_condition.JPG&lt;/A&gt;</description>
      <pubDate>Wed, 27 Nov 2019 17:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265576#M2084</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2019-11-27T17:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265577#M2085</link>
      <description>&lt;P&gt;Can anyone please provide a solution?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 16:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265577#M2085</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2019-12-02T16:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265578#M2086</link>
      <description>&lt;P&gt;First of all, I think a Talend Job is wrong for this requirement. Talend Jobs are batch. They start, do a job and end. If you want something to be continually polling for a file, it might be better to use Talend ESB. However, since you are close to your requirement here, I'll start with a requirement to ....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Poll for a file for 15 mins&lt;/P&gt; 
&lt;P&gt;2. If the file is found, some action takes place&lt;/P&gt; 
&lt;P&gt;3. If the file is not found after 15 minutes, send an email&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tLoop with the tRunJob and tSleep at the end looks like a good start. The adjustments I would make are these.....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. The job run by the tRunJob needs to check for a file and if the file is found, do whatever task is required THEN submit a success response using a tBufferOutput (check the Talend documentation for how to use that). If the file is not found, it needs to send a fail status using the tBufferOutput.&lt;/P&gt; 
&lt;P&gt;2. After the tRunJob, you need to test the result of the tBufferOutput (which returns a data row from the tRunJob). This needs to set a variable. Maybe a globalMap variable. This variable needs to be used in your loop condition. If the file is found, the loop should end as the task is complete. Otherwise, the loop should continue for 15 minutes. Assuming the tSleep is for 1 minute, that is 15 loops.&lt;BR /&gt;3. Use a SubJobOk link to go from the tLoop to a tjava. From the tJava use RunIf links to decide whether to send your email. If the file was found (your variable set in step 2 can tell you this) send the email. Otherwise do nothing.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 22:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265578#M2086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-02T22:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265579#M2087</link>
      <description>&lt;P&gt;The job run by the tRunJob needs to check for a file and if the file is found, do whatever task is required THEN submit a success response using a tBufferOutput (check the Talend documentation for how to use that). If the file is not found, it needs to send a fail status using the tBufferOutput.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the tBufferOutput and went through the document but I couldn't figure out after which component to add the&amp;nbsp; tBufferOutput and how to send&amp;nbsp;&amp;nbsp;a fail status using the tBufferOutput. Also in the tRunJob I am not passing any variable (what values need to be passed). In the job I created I am adding a "run if" condition for file not exist link from tFTPFileExist which I believe I should remove as it keep sending an email after every minute. For success the email component is in the end.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. After the tRunJob, you need to test the result of the tBufferOutput (which returns a data row from the tRunJob). This needs to set a variable. Maybe a globalMap variable. This variable needs to be used in your loop condition. If the file is found, the loop should end as the task is complete. Otherwise, the loop should continue for 15 minutes. Assuming the tSleep is for 1 minute, that is 15 loops.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Returns a data row from the tRunJob (how to pass this).&amp;nbsp;the loop should continue for 15 minutes. Assuming the tSleep is for 1 minute, that is 15 loops.?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;3. Use a SubJobOk link to go from the tLoop to a tjava. From the tJava use RunIf links to decide whether to send your email. If the file was found (your variable set in step 2 can tell you this) send the email. Otherwise do nothing.&lt;/P&gt;
&lt;P&gt;tloop --&amp;gt; tJava (parent job?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am attaching the job I created. Please advice what i am missing.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lwvp"&gt;tchild.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx1h"&gt;tWaitforfile loop.JPG&lt;/A&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265579#M2087</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2019-12-04T15:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265580#M2088</link>
      <description>&lt;P&gt;OK, I am a little stuck following your job design here. A best practice for writing jobs is to have the components ordered on your job in the same way words are ordered on a page. Top to bottom and left to right. Your subjobs (continuous coloured areas or components joined using OnComponentOk links) should be listed with the first subjob to run at the top and they should be connected via an OnSubJobOK link from first component of a subjob to first component of the next subjob. Like this....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-12-04 at 16.59.22.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8dm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154073i058ECD2A9B757E81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8dm.png" alt="0683p000009M8dm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is just an example of the flow of components. This is just a job I have been working on.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;With regard to your job you need to separate the checking for files and processing found files from the sending of the email. The sending of the email should be in the outer tLoop job. The child job&amp;nbsp; should be handling the checking for the file and the processing of found files OR identifying that the file has not been found. Your&amp;nbsp; child job needs to have two flows starting with checking that the files exists. If it does, then you process the file. If it does not, then you use something like a tFixedFlowInput component to send a failure message to a tBufferOutput. This way, the outer job can check the tRunJob after every loop. If the tRunJob has a failure message 15 times, then you stop the loop and send the mail.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 17:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265580#M2088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-04T17:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265581#M2089</link>
      <description>&lt;P&gt;I have modified the design and able to pass the values from child to parent job. The process does not exit even if&amp;nbsp; the file has been processed. I want the process to exit and check again for the file next day. Any suggestion. I have attached the updated design.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lwm0"&gt;parentjobverify_trunjob.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx5P"&gt;childjobverifyifixedflowifcondition.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx5e"&gt;parentjobverifytjavarowcondition.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx5f"&gt;parentjobverify.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lwyf"&gt;childjobverify.JPG&lt;/A&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265581#M2089</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2019-12-10T19:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265582#M2090</link>
      <description>&lt;P&gt;Attachment&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lwur"&gt;parentjobverify_trunjob.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx5y"&gt;childjobverifyifixedflowifcondition.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lwf9"&gt;parentjobverifytjavarowcondition.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx68"&gt;parentjobverify.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx6D"&gt;childjobverify.JPG&lt;/A&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265582#M2090</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2019-12-10T19:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265583#M2091</link>
      <description>&lt;P&gt;Remind me, what version are you using? I cannot see enough from the screenshots. Export your job and attach it and I will have a look at it. That might be easier.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 10:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265583#M2091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-11T10:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265584#M2092</link>
      <description>&lt;P&gt;Attached job&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx6r"&gt;j_child.zip&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx71"&gt;j_parent.zip&lt;/A&gt;</description>
      <pubDate>Wed, 11 Dec 2019 14:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265584#M2092</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2019-12-11T14:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPfileExist, tloop, tinfiniteloop and tsleep process</title>
      <link>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265585#M2093</link>
      <description>&lt;P&gt;Right, I think I have it. I cannot test this here so I have taken a screenshot of the parent job. I reckon this can be sorted with just a few changes there. Here is the new Parent Job....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-12-11 at 20.56.35.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8jz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129336iB957DDA0C9682152/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8jz.png" alt="0683p000009M8jz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've added a new tJava component, modified the tLoop expression and edited the tJavaRow code. Everything else remains the same.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tJava Code&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;globalMap.put("check", true);&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tLoop Config&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-12-11 at 21.52.25.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8k4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145453i1AF78D16A62B3D54/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8k4.png" alt="0683p000009M8k4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tJavaRow Code&lt;/STRONG&gt;&lt;/P&gt; 
&lt;PRE&gt;//Code generated according to input schema and output schema
System.out.println("The File Message:"+input_row.FILENAME);

globalMap.put("check", false);

if(input_row.FILENAME){
	globalMap.put("check", true);
}&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What this does is make use of the boolean you are sending back from the Child Job (in a field called FILENAME??). After every iteration, the "check" globalMap variable is set to false. This will stop the tLoop. However, if the child job returns a value that is true (you are converting a false to a true in your child job), then it sets the "check" value back to true. This will keep the tLoop going.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The Child Job does not necessarily have the logic that I would have chosen, but I have given you code that only affects the Parent Job to make it as easy as possible to fix this. You may want to (once you see how this works) refactor your Child Job to make the whole process a bit more logical with regard to the messages sent back from the child job. Maybe you could send a true or a false based on the success or failure of the find file?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 22:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/TFTPfileExist-tloop-tinfiniteloop-and-tsleep-process/m-p/2265585#M2093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-11T22:05:08Z</dc:date>
    </item>
  </channel>
</rss>

