<?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: Run next subjob even if previous one got an error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296515#M69169</link>
    <description>&lt;P&gt;Hi @Alpha549 Alpha549​&amp;nbsp;, in the second configuration , you will notice that on subjob ok link will work, cause on component ok link have high priority than on subjob ok , so it will execute first all the component linked by on component ok and if all components works fine no error are thrown so it can execute the on subjob ok link, the on subjob error link will not work cause it consider tJava_1 as a unique subjob, it will work if you put on component error link for all tJava(1,2,6) to tJava _4&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 07:11:54 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2022-04-11T07:11:54Z</dc:date>
    <item>
      <title>Run next subjob even if previous one got an error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296514#M69168</link>
      <description>&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to run a subjob even if the previous one got an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that I could use a tRunJob as a subjob, without checking Die on child error. I'm not in this case. The whole thing is in a unique job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought about how to response to this need, and here is an example job :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QCzmdAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132522iE45892BEF89EAF33/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QCzmdAAD.png" alt="0695b00000QCzmdAAD.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to run tJava_5 even if an error occurs from tJava_1.&lt;/P&gt;&lt;P&gt;In tJava_2 et 6 I create an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code of each tJava :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJava_1 : empty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJava_2 : int i = 1/0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJava_6 : int j = 1/0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJava_4 : System.out.println("KO !");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJava_5 : System.out.println("RUN ANYWAYS !");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, if an error occurs in tJava_2 or 6, tJava_4 is run, and then tJava_5, which is also run if there is no error, so from tJava_1.&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;I also tried this configuration :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QCzmnAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155141i323BB4234B91AE43/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QCzmnAAD.png" alt="0695b00000QCzmnAAD.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I execute the job, it fails, tJava_4 is not executed. That's why I used onComponentError instead of onSubjobError.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, here : I don't understand the use of onSubjobError. For any error occurring in tJava_1 subjob, it should run tJava_4, and then tJava_5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you shed your light on my understanding ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&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;Thank you everyone !&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296514#M69168</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2024-11-15T23:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Run next subjob even if previous one got an error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296515#M69169</link>
      <description>&lt;P&gt;Hi @Alpha549 Alpha549​&amp;nbsp;, in the second configuration , you will notice that on subjob ok link will work, cause on component ok link have high priority than on subjob ok , so it will execute first all the component linked by on component ok and if all components works fine no error are thrown so it can execute the on subjob ok link, the on subjob error link will not work cause it consider tJava_1 as a unique subjob, it will work if you put on component error link for all tJava(1,2,6) to tJava _4&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 07:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296515#M69169</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-04-11T07:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Run next subjob even if previous one got an error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296516#M69170</link>
      <description>&lt;P&gt;Thanks a lot @guenneguez jeremy​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok the fact here is simply that each tJava is a subjob. Indeed, when I use another configuration :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QD6AqAAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136171i5FAF597BD2F4CA53/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QD6AqAAL.png" alt="0695b00000QD6AqAAL.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;onSubjobError link works perfectly, so in the success case and error case, tJava_1 is executed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Topic solved ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 14:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296516#M69170</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2022-04-11T14:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Run next subjob even if previous one got an error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296517#M69171</link>
      <description>&lt;P&gt;yes here it will work cause Talend consider tFixedFlowInput + the two tJavaRow as a unique subjob&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 15:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296517#M69171</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-04-11T15:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Run next subjob even if previous one got an error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296518#M69172</link>
      <description>&lt;P&gt;@guenneguez jeremy​&amp;nbsp;, just to know, do you know if there is a way to explicitely include a component in a subjob ?&lt;/P&gt;&lt;P&gt;For instance here, tJava is a subjob itself, but is there a way to include it in another subjob ?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 18:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-next-subjob-even-if-previous-one-got-an-error/m-p/2296518#M69172</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2022-04-11T18:38:38Z</dc:date>
    </item>
  </channel>
</rss>

