<?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] OnSubjobOk is not working as expected in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354654#M120571</link>
    <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;FYI, I have selected the "Die on child error" on tRunJob component. But Still the subjob having onSubjobOk is running.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Siva&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;If the subjob linked with onsubjobok is still running, means there is no error/exception occurs in the child job. If the child job really has an error/exception, and the 'die on child error' box is checked, you will see an error message as read below on the console when running the main job.
&lt;BR /&gt;
&lt;PRE&gt;the end is near&lt;BR /&gt;Exception in component tRunJob_1&lt;BR /&gt;java.lang.RuntimeException: Child job running failed&lt;BR /&gt;	at&lt;/PRE&gt;
&lt;BR /&gt;Shong</description>
    <pubDate>Tue, 27 May 2014 14:21:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-27T14:21:20Z</dc:date>
    <item>
      <title>[resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354647#M120564</link>
      <description>Hi All,&lt;BR /&gt;I have multiple subjobs with the components tFixedFlowInput, tFlowtoIterate &amp;amp; tRunJob.&lt;BR /&gt;When I use OnSubJobOk on tFixedFlowInput to another tFixedFlowInput of another subjob, it is not working as expected. The other jobs are running fine though the subjob is throwing an error.&lt;BR /&gt;FYI, I have selected "Die on child error" option in tRunJobOk component.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Siva</description>
      <pubDate>Mon, 26 May 2014 08:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354647#M120564</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-05-26T08:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354648#M120565</link>
      <description>Hi, &lt;BR /&gt;Would you mind uploading your current job design screenshots into forum so that we can see if your workflow is correct in logic.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 26 May 2014 08:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354648#M120565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-26T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354649#M120566</link>
      <description>Hi Sabrina, 
&lt;BR /&gt;PFA the screenshot of talend job. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Siva 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEH2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142914iCFB995F392B4B278/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEH2.png" alt="0683p000009MEH2.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 26 May 2014 09:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354649#M120566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-26T09:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354650#M120567</link>
      <description>Hi Siva 
&lt;BR /&gt;What's the error message you get on the console?
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 26 May 2014 09:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354650#M120567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-26T09:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354651#M120568</link>
      <description>Hi Shong,
&lt;BR /&gt;In the subjob, I have one context.variable as status variable and I'm the providing the values as SUCCESS/FAILED. If, it contains value as FAILED then I have used tDie Component to stop the complete job.
&lt;BR /&gt;Error message is something like "Child job has failed" as it has status as FAILED. 
&lt;BR /&gt;Here my concern is, If the subjob has failed with any kind of issue, then the other subjob having OnSubjobOk won't run right. Correct me If I'm wrong with it.
&lt;BR /&gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Siva</description>
      <pubDate>Mon, 26 May 2014 10:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354651#M120568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-26T10:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354652#M120569</link>
      <description>Hi 
&lt;BR /&gt;It depends on the 'die on error' option on tRunJob even though the child job has an error: 
&lt;BR /&gt;if 'die on error' option is checked, the exception will be thrown out to the main job, the main job will die and stop to run, the subjob linked with onsubjobok will not be fired. 
&lt;BR /&gt;if 'die on error' option is not checked, the exception will be captured and handled by program, the main job will continue to run, the subjob linked with onsubjobok will be fired. 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 26 May 2014 10:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354652#M120569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-26T10:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354653#M120570</link>
      <description>Hi Shong,
&lt;BR /&gt;FYI, I have selected the "Die on child error" on tRunJob component. But Still the subjob having onSubjobOk is running.
&lt;BR /&gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Siva</description>
      <pubDate>Mon, 26 May 2014 10:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354653#M120570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-26T10:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354654#M120571</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;FYI, I have selected the "Die on child error" on tRunJob component. But Still the subjob having onSubjobOk is running.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Siva&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;If the subjob linked with onsubjobok is still running, means there is no error/exception occurs in the child job. If the child job really has an error/exception, and the 'die on child error' box is checked, you will see an error message as read below on the console when running the main job.
&lt;BR /&gt;
&lt;PRE&gt;the end is near&lt;BR /&gt;Exception in component tRunJob_1&lt;BR /&gt;java.lang.RuntimeException: Child job running failed&lt;BR /&gt;	at&lt;/PRE&gt;
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 27 May 2014 14:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354654#M120571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-27T14:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354655#M120572</link>
      <description>Hi Shong, 
&lt;BR /&gt;I have got the following exception: 
&lt;BR /&gt;Exception in component tRunJob_2 
&lt;BR /&gt;java.lang.RuntimeException: Child job running failed 
&lt;BR /&gt; at ...... 
&lt;BR /&gt;But Still the remaining process is continued. 
&lt;BR /&gt;PFA the screenshot of the talend job. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Siva 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME7X.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142996iDFD94F95124583AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME7X.png" alt="0683p000009ME7X.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 28 May 2014 17:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354655#M120572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-28T17:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354656#M120573</link>
      <description>Hi Siva 
&lt;BR /&gt;Which version are you using? I have tried to reproduce this problem in v5.4.1, but it can't be reproduced, it works as expected. If you are using an older version, try to download the newest version and test it again. 
&lt;BR /&gt; 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 29 May 2014 02:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354656#M120573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-29T02:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354657#M120574</link>
      <description>Hi Shong,
&lt;BR /&gt;Thanks for your time.
&lt;BR /&gt;I'm using the v5.3.1.
&lt;BR /&gt;Is there any way to work it in the above mentioned version. It would be really helpful to me if you provide the way to work it in the v5.3.1.
&lt;BR /&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Siva</description>
      <pubDate>Thu, 29 May 2014 06:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354657#M120574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-29T06:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354658#M120575</link>
      <description>Hi Siva 
&lt;BR /&gt;I have tested this problem in the v5.3.1 and I got the same problem, it was a bug which only occurs when 'Enable parallel execution' box is checked on iterate link, it works normal if this box is not checked. So, you can resolve this issue with one of the following ways: 
&lt;BR /&gt;- Disable parallel execution on the iterate link. 
&lt;BR /&gt;- Upgrade to the new release if you are using community version, or open a ticket in our support portal to request a patch if you are using Talend enterprise product. 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 29 May 2014 10:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354658#M120575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-29T10:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354659#M120576</link>
      <description>Hi Shong, 
&lt;BR /&gt;Thanks for your response. 
&lt;BR /&gt;I can't disable the parallel execution on the iterate link as it is one of the most important part in my business process. 
&lt;BR /&gt;I have tried few things to get the same behavior of OnSubjobOk. But those are working in some scenarios &amp;amp; failed in some other scenarios. 
&lt;BR /&gt;Is there any possibility to have a Skype Call/ Web Call with you ? It would be really helpful to me. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Siva</description>
      <pubDate>Thu, 29 May 2014 11:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354659#M120576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-29T11:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354660#M120577</link>
      <description>Hi Siva 
&lt;BR /&gt;If you don't plan to upgrade your studio to a new release, you have to redesign the job to avoid this issue, the workaround can be: 
&lt;BR /&gt;- Define a flag in the child job to indicate the job runs fine or failure. 
&lt;BR /&gt;- Read this flag in the main job, and use runIf connector instead of onsubjobok, to fire other processing based on the condition. 
&lt;BR /&gt;Refer to this KB article: 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=5671107" target="_blank" rel="nofollow noopener noreferrer"&gt;Can I define a variable that is accessible from multiple Jobs?&lt;/A&gt; 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 05 Jun 2014 05:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354660#M120577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-05T05:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354661#M120578</link>
      <description>Hi Shong,
&lt;BR /&gt;Thanks for your response.
&lt;BR /&gt;I already implemented the same flag kind of idea by creating one global variable. It's working fine.
&lt;BR /&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Siva</description>
      <pubDate>Thu, 05 Jun 2014 07:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354661#M120578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-05T07:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] OnSubjobOk is not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354662#M120579</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;Thanks for your response.&lt;BR /&gt;I already implemented the same flag kind of idea by creating one global variable. It's working fine.&lt;BR /&gt;Regards,&lt;BR /&gt;Siva&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Great! Thanks for your feedback, this topic can be marked as resolved now.
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 05 Jun 2014 09:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-OnSubjobOk-is-not-working-as-expected/m-p/2354662#M120579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-05T09:07:56Z</dc:date>
    </item>
  </channel>
</rss>

