<?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: how to process the next iteration when the first one failed? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210984#M9196</link>
    <description>&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response. Die on error is already untick, but I haven't tried the tJavaflex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can&amp;nbsp; you expound how to use the tJavaFlex, and where to incorporate it on my current design? Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Oct 2018 12:47:20 GMT</pubDate>
    <dc:creator>jerownimow</dc:creator>
    <dc:date>2018-10-30T12:47:20Z</dc:date>
    <item>
      <title>how to process the next iteration when the first one failed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210982#M9194</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I have a subjob with the design below:&lt;BR /&gt;tHashInput -&amp;gt; tFlowtoIterate -&amp;gt; tFixedFlowInput -&amp;gt;tJavaRow -&amp;gt; tRestClient -&amp;gt; and so on...&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;So inside the tHashInput, I have a field called EmpDN which I want to be used as a parameter in &lt;SPAN&gt;tRestClient. To do this, I put the tFlowtoIterate&amp;nbsp;and&amp;nbsp;tFixedFlowInput, to get the&amp;nbsp;EmpDN&amp;nbsp;row by row value, and store it accordingly in a context variable via&amp;nbsp;tJavaRow. The problem is, when the first output of EmpDN that has been&amp;nbsp;stored in context and be used respectively in&amp;nbsp;tRestClient&amp;nbsp; as a parameter and the response is an error or&amp;nbsp;HTTP 404 Not Found, the job will stop already.&lt;BR /&gt;&lt;BR /&gt;What I want to happen is, even if the tRestClient responded an error, it should still continue to iterate on the next value and so on.&lt;BR /&gt;&lt;BR /&gt;Can you please help me how to achieve this?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210982#M9194</guid>
      <dc:creator>jerownimow</dc:creator>
      <dc:date>2024-11-16T07:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to process the next iteration when the first one failed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210983#M9195</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Couple of things to check/try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1/ Untick the "Die on error" on the tRestClient component.&lt;/P&gt;
&lt;P&gt;2/ Use a tJavaFlex component with the Java code of "try" &amp;amp; "catch", so you can handle the failure yourself/cleanly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 10:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210983#M9195</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2018-10-30T10:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to process the next iteration when the first one failed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210984#M9196</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response. Die on error is already untick, but I haven't tried the tJavaflex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can&amp;nbsp; you expound how to use the tJavaFlex, and where to incorporate it on my current design? Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 12:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210984#M9196</guid>
      <dc:creator>jerownimow</dc:creator>
      <dc:date>2018-10-30T12:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to process the next iteration when the first one failed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210985#M9197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tHashInput -&amp;gt; tFlowtoIterate -&amp;gt; tJavaFlex (iterate) -&amp;gt; tFixedFlowInput -&amp;gt;tJavaRow -&amp;gt; tRestClient -&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With the tJavaFlex setup like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Start Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;globalMap.put("RestFailure", false);&lt;BR /&gt;try {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Main Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(nothing)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;End Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;} catch (Exception ex) {&lt;BR /&gt;globalMap.put("RestFailure", true);&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 13:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210985#M9197</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2018-10-30T13:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to process the next iteration when the first one failed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210986#M9198</link>
      <description>Hi David,
&lt;BR /&gt;
&lt;BR /&gt;It worked though I really don't get what does the code do. Thank you!
&lt;BR /&gt;
&lt;BR /&gt;Just want to ask if there is a need for the RestFailure to be declared,or it is a default?</description>
      <pubDate>Fri, 02 Nov 2018 15:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210986#M9198</guid>
      <dc:creator>jerownimow</dc:creator>
      <dc:date>2018-11-02T15:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to process the next iteration when the first one failed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210987#M9199</link>
      <description>&lt;P&gt;Thanks, David!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really hadn't realized one could use tJavaFlex to handle try/catch, but it makes sense now that you say it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Big thanks!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards, Jan Terje&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 08:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-process-the-next-iteration-when-the-first-one-failed/m-p/2210987#M9199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-28T08:55:34Z</dc:date>
    </item>
  </channel>
</rss>

