<?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: Scenario based Question in Talend??? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278228#M53765</link>
    <description>&lt;P&gt;Isn't 1 failure just enough?&amp;nbsp;&amp;nbsp;Except time outs ... File not there yet ... kinda time-based related things.&lt;/P&gt;
&lt;P&gt;But 3 Is just planning for more failure and is 'bad' design. 3 sounds arbitraty, why not 4 or 5 ...&amp;nbsp; I dont get this type of reasoning. Why please elaborate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possible solution:&lt;/P&gt;
&lt;P&gt;OnComponentError / OnSubJobError&amp;nbsp; ----&amp;gt;&amp;nbsp;tJava&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// check if exists
Integer  cnt =(Integer) globalMap.get("error_counter");
if cnt != null {
cnt ++; 
globalMap.put("error_counter", cnt );
if cnt.equals(3)  { 
// raise exception to make sure it dies...
  throw new Exception(); 
  }
}else { globalMap.put("error_counter", 1 ) ; }

&lt;/PRE&gt;
&lt;P&gt;after tJava a tDie/tWarn component to do whatever you want to do ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 14:04:13 GMT</pubDate>
    <dc:creator>Jesperrekuh</dc:creator>
    <dc:date>2018-09-12T14:04:13Z</dc:date>
    <item>
      <title>Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278224#M53761</link>
      <description>How can I stop a job after 3 failures in talend?</description>
      <pubDate>Wed, 12 Sep 2018 09:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278224#M53761</guid>
      <dc:creator>Prasanna3</dc:creator>
      <dc:date>2018-09-12T09:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278225#M53762</link>
      <description>add an other job who call your job using 3 tRunJob and link tRunJob by onComponentError.&lt;BR /&gt;&lt;BR /&gt;It's Done.&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 12 Sep 2018 09:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278225#M53762</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-12T09:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278226#M53763</link>
      <description>Can you please provide me complete job design ?</description>
      <pubDate>Wed, 12 Sep 2018 09:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278226#M53763</guid>
      <dc:creator>Prasanna3</dc:creator>
      <dc:date>2018-09-12T09:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278227#M53764</link>
      <description>it is complete.&lt;BR /&gt;create a new job.&lt;BR /&gt;slide jour job inside 3times. (it will add 3 trunJob components)&lt;BR /&gt;link your 3 trunjob using onComponentError&lt;BR /&gt;Regards,</description>
      <pubDate>Wed, 12 Sep 2018 10:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278227#M53764</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-12T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278228#M53765</link>
      <description>&lt;P&gt;Isn't 1 failure just enough?&amp;nbsp;&amp;nbsp;Except time outs ... File not there yet ... kinda time-based related things.&lt;/P&gt;
&lt;P&gt;But 3 Is just planning for more failure and is 'bad' design. 3 sounds arbitraty, why not 4 or 5 ...&amp;nbsp; I dont get this type of reasoning. Why please elaborate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possible solution:&lt;/P&gt;
&lt;P&gt;OnComponentError / OnSubJobError&amp;nbsp; ----&amp;gt;&amp;nbsp;tJava&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// check if exists
Integer  cnt =(Integer) globalMap.get("error_counter");
if cnt != null {
cnt ++; 
globalMap.put("error_counter", cnt );
if cnt.equals(3)  { 
// raise exception to make sure it dies...
  throw new Exception(); 
  }
}else { globalMap.put("error_counter", 1 ) ; }

&lt;/PRE&gt;
&lt;P&gt;after tJava a tDie/tWarn component to do whatever you want to do ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 14:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278228#M53765</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-09-12T14:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278229#M53766</link>
      <description>My question is.&lt;BR /&gt;&lt;BR /&gt;I want to kill the job after 3 times failed.&lt;BR /&gt;Can I implement that without writing tjava code</description>
      <pubDate>Wed, 12 Sep 2018 14:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278229#M53766</guid>
      <dc:creator>Prasanna3</dc:creator>
      <dc:date>2018-09-12T14:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278230#M53767</link>
      <description>Yes but its very inefficient like :
&lt;BR /&gt;tRunJob --&amp;gt; OnComponentError --&amp;gt;tRunJob --&amp;gt; OnComponentError --&amp;gt;tRunJob --&amp;gt; OnComponentError --&amp;gt; tDie
&lt;BR /&gt;This is what 
&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt; is suggesting but doesnt take into account a specific component where you want to set a limit of errors.
&lt;BR /&gt;
&lt;BR /&gt;There should be some sort of error count within Talend ... and within tDie and tWarn ... die after max threshold</description>
      <pubDate>Wed, 12 Sep 2018 14:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2278230#M53767</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-09-12T14:35:36Z</dc:date>
    </item>
  </channel>
</rss>

