<?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: Loop to continue after a sub job failure in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Loop-to-continue-after-a-sub-job-failure/m-p/2308557#M79871</link>
    <description>tRunJob provides an Return Code, for example: -
&lt;BR /&gt;((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE"))
&lt;BR /&gt;If you're running your child Job a number of times and want your Job to exit with non-Zero if one of these iterations fails, then after each iteration, you should test this return code and store it in your own globalMap Object if it is non-zero. Of course, you can only catch one of these values, should your child Job support different return codes.
&lt;BR /&gt;You can then get you main Job to exist with the child's return code, by setting it in a tDie component.</description>
    <pubDate>Mon, 29 Feb 2016 15:54:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-29T15:54:49Z</dc:date>
    <item>
      <title>Loop to continue after a sub job failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-to-continue-after-a-sub-job-failure/m-p/2308554#M79868</link>
      <description>Hi,&lt;BR /&gt;I have a package consist of tflowtoIterate and the sub job. There is a onSubJobError connected to tflowtoiterate component to another sub job. &lt;BR /&gt; tFlowtoIterate -- &amp;gt; iterate --&amp;gt; Sub job1&lt;BR /&gt;    |&lt;BR /&gt;    |&lt;BR /&gt;    V&lt;BR /&gt;OnSubJobError&lt;BR /&gt;   |&lt;BR /&gt;   |&lt;BR /&gt;   V&lt;BR /&gt;Sub job2&lt;BR /&gt;If the subjob1 fails it triggers the subjob2, but after the subjob2 executed, the job is get exit.&lt;BR /&gt;My concern is, after the execution of subjob2, the tFlowtoIterate should continue to its next loop in the package.&lt;BR /&gt;Is there any way to achieve this?</description>
      <pubDate>Thu, 31 May 2012 06:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-to-continue-after-a-sub-job-failure/m-p/2308554#M79868</guid>
      <dc:creator>karthikj18</dc:creator>
      <dc:date>2012-05-31T06:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to continue after a sub job failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-to-continue-after-a-sub-job-failure/m-p/2308555#M79869</link>
      <description>Hi&lt;BR /&gt;If a subjob gets an error, it will stop the entire job.&lt;BR /&gt;Here is a workaround. Create job as seen below.&lt;BR /&gt;Child job:&lt;BR /&gt;Subjob1&lt;BR /&gt;     |&lt;BR /&gt; OnsubjobError&lt;BR /&gt;     |&lt;BR /&gt;Subjob2&lt;BR /&gt;Mainjob:&lt;BR /&gt;tFlowtoIterate--&amp;gt;tRunjob(child job)&lt;BR /&gt;Do not select "Die on child error" option on tRunjob.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 31 May 2012 07:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-to-continue-after-a-sub-job-failure/m-p/2308555#M79869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-31T07:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to continue after a sub job failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-to-continue-after-a-sub-job-failure/m-p/2308556#M79870</link>
      <description>Hello,
&lt;BR /&gt;Could you assist me with one more thing here?
&lt;BR /&gt;As to how to change the exit-code of the main job, if the child job has failed in any loop or error?
&lt;BR /&gt;i.e how can I know if the child job has failed any time or not, when I have scheduled the job. As, I always get an exit code of 0, even if any time the child job has failed within the loop.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Partha</description>
      <pubDate>Mon, 29 Feb 2016 08:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-to-continue-after-a-sub-job-failure/m-p/2308556#M79870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-29T08:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to continue after a sub job failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loop-to-continue-after-a-sub-job-failure/m-p/2308557#M79871</link>
      <description>tRunJob provides an Return Code, for example: -
&lt;BR /&gt;((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE"))
&lt;BR /&gt;If you're running your child Job a number of times and want your Job to exit with non-Zero if one of these iterations fails, then after each iteration, you should test this return code and store it in your own globalMap Object if it is non-zero. Of course, you can only catch one of these values, should your child Job support different return codes.
&lt;BR /&gt;You can then get you main Job to exist with the child's return code, by setting it in a tDie component.</description>
      <pubDate>Mon, 29 Feb 2016 15:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loop-to-continue-after-a-sub-job-failure/m-p/2308557#M79871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-29T15:54:49Z</dc:date>
    </item>
  </channel>
</rss>

