<?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: [resolved] How to catch tFileFetch error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337919#M106210</link>
    <description>Hi Vaibhav 
&lt;BR /&gt;I already tried it with tJavaRow, tJava and tJavaFlex with somthing like: 
&lt;BR /&gt;if(new java.io.File(context.filepath + "//" + context.filename).exists()){ 
&lt;BR /&gt; globalMap.put("go_again", false); 
&lt;BR /&gt;} 
&lt;BR /&gt;but it didnt work (I don't know why...I think it should work) 
&lt;BR /&gt; 
&lt;BR /&gt;Do you know another way of doing it? 
&lt;BR /&gt; 
&lt;BR /&gt;thanks, 
&lt;BR /&gt;Gabriel</description>
    <pubDate>Mon, 14 Jul 2014 14:55:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-14T14:55:45Z</dc:date>
    <item>
      <title>[resolved] How to catch tFileFetch error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337915#M106206</link>
      <description>Hello everybody, 
&lt;BR /&gt;attached is the job I'm trying to make. 
&lt;BR /&gt;What I want is simply download a file with a tFileFetch and when it throws a error or exception loop it again until it succeed (I'm using a while loop). 
&lt;BR /&gt;When I pass a wrong uri to my tFileFetch, it loops exactly the way I expected. But when I pass the correct uri, it stills loop infinite times. 
&lt;BR /&gt;The question is, how can I know when my tFileFetch downloaded the file or when it throws a exception/error. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks in advance, 
&lt;BR /&gt;Gabriel 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEXy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133220iDC1B23D28E411686/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEXy.png" alt="0683p000009MEXy.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 11 Jul 2014 20:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337915#M106206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-11T20:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to catch tFileFetch error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337916#M106207</link>
      <description>Hi, 
&lt;BR /&gt;Is there any response printed on your console when you check out option "Print response to console" in tFileFetch? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEX6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142494iF8EF23856E7EF6F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEX6.png" alt="0683p000009MEX6.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 14 Jul 2014 04:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337916#M106207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T04:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to catch tFileFetch error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337917#M106208</link>
      <description>Hi Sabrina, 
&lt;BR /&gt;the response is 
&lt;BR /&gt;*** Response Header *** 
&lt;BR /&gt;Date: Mon, 14 Jul 2014 13:11:56 GMT 
&lt;BR /&gt;Server: Apache/2.2.15 (CentOS) 
&lt;BR /&gt;Cache-Control: private 
&lt;BR /&gt;Expires: Wed, 31 Dec 1969 18:00:00 CST 
&lt;BR /&gt;P3P: CP="ALL" 
&lt;BR /&gt;Set-Cookie: JSESSIONID=8E295490C34A5AE3485802B92A5202EC; Path=/jasperserver-pro/; Secure; HttpOnly 
&lt;BR /&gt;Set-Cookie: userLocale=en_US;Expires=Tue, 15-Jul-2014 13:11:56 GMT;HttpOnly 
&lt;BR /&gt;Content-Length: 85406 
&lt;BR /&gt;Connection: close 
&lt;BR /&gt;Content-Type: application/pdf 
&lt;BR /&gt;and it keeps printing it infinite times and downloading the file infinite times. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks for your help, 
&lt;BR /&gt;Gabriel</description>
      <pubDate>Mon, 14 Jul 2014 14:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337917#M106208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T14:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to catch tFileFetch error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337918#M106209</link>
      <description>Hi Gabriel... 
&lt;BR /&gt;Set some flag at the end of file download...
&lt;BR /&gt;Modify design and use RunIf condition on flag status, this will execute the download in case flag is unset ...
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Mon, 14 Jul 2014 14:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337918#M106209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T14:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to catch tFileFetch error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337919#M106210</link>
      <description>Hi Vaibhav 
&lt;BR /&gt;I already tried it with tJavaRow, tJava and tJavaFlex with somthing like: 
&lt;BR /&gt;if(new java.io.File(context.filepath + "//" + context.filename).exists()){ 
&lt;BR /&gt; globalMap.put("go_again", false); 
&lt;BR /&gt;} 
&lt;BR /&gt;but it didnt work (I don't know why...I think it should work) 
&lt;BR /&gt; 
&lt;BR /&gt;Do you know another way of doing it? 
&lt;BR /&gt; 
&lt;BR /&gt;thanks, 
&lt;BR /&gt;Gabriel</description>
      <pubDate>Mon, 14 Jul 2014 14:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337919#M106210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T14:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to catch tFileFetch error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337920#M106211</link>
      <description>How about something like this instead? With the FileExists, you're breaking up the subjob, which in your case (being the same across) is causing the multiple downloads for each iteration. Hope this helps... 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEMD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129099i9CDEE592B6C91A15/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEMD.png" alt="0683p000009MEMD.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 14 Jul 2014 15:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337920#M106211</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-07-14T15:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to catch tFileFetch error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337921#M106212</link>
      <description>Hi Gabriel,
&lt;BR /&gt;You have onSubJobOk link from loop... so, that subjob will continue forever
&lt;BR /&gt;You will have to use one more link ahead of your last component and change the loop condition or break the loop...
&lt;BR /&gt;Or use RunIf from loop while checking file download step for each iteration..
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Mon, 14 Jul 2014 15:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337921#M106212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T15:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to catch tFileFetch error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337922#M106213</link>
      <description>Hi guys, 
&lt;BR /&gt;thank you all for the responses and help. 
&lt;BR /&gt;I solve it using a run if in my tFileFetch, checking if the file exists. 
&lt;BR /&gt;For this problem, it will work and I believe I won't have future problems with this solution. But the problem is that I am not getting the error or exception of the tFileFetch component (it could be a timeout, a bad request, etc) and I believe it would be interesting to have this kind of control on this component. 
&lt;BR /&gt; 
&lt;BR /&gt;My job is working and if someone needs it in the future, the solution is attached. I put the run if on the tFileFetch component because I want to overwrite the file if it exists (only one time =D). 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks again for the help, 
&lt;BR /&gt;Gabriel 
&lt;BR /&gt; 
&lt;BR /&gt;PS: now the solution is attached =D 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MESV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152160i1F5A9288227DEFBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MESV.png" alt="0683p000009MESV.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 14 Jul 2014 15:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337922#M106213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T15:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to catch tFileFetch error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337923#M106214</link>
      <description>Hi Gabriel,&lt;BR /&gt;Good that it resolved, whether the solution is same as Will have uploaded... if not can you pl upload the screenshot of your design?&lt;BR /&gt;thanks&lt;BR /&gt;vaibhav</description>
      <pubDate>Mon, 14 Jul 2014 16:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-catch-tFileFetch-error/m-p/2337923#M106214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T16:03:07Z</dc:date>
    </item>
  </channel>
</rss>

