<?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: throwing exceptions in subjobs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/throwing-exceptions-in-subjobs/m-p/2225053#M17515</link>
    <description>My question is in fact: How can I log the error in the second job AND, at the same time, let the parent job flow into a onSubjobError too?</description>
    <pubDate>Tue, 02 Nov 2010 13:12:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-11-02T13:12:16Z</dc:date>
    <item>
      <title>throwing exceptions in subjobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throwing-exceptions-in-subjobs/m-p/2225052#M17514</link>
      <description>For logging purposes I use the OnSubjobError and OnSubjobOk. If an error occurs I write this error to a logfile.&lt;BR /&gt;During the project I found out that, if I use these triggers in a sub tRunJob, the parent job does not fire OnSubjobError.&lt;BR /&gt;Take for example a parent job (job1):&lt;BR /&gt;tRunJob (job2) ---- onSubjobError ----&amp;gt; tMsgBox('job2 gives errors')&lt;BR /&gt;&lt;BR /&gt;Take for the second job (job2):&lt;BR /&gt;tOracleConnection  ----OnSubjobError---&amp;gt; tMsgBox('no connection')&lt;BR /&gt;&lt;BR /&gt;Imagine that job2 cannot retrieve the oracle server: the subjob gives an error and shows the message box 'no connection'. But the message 'job2 gives errors'  is never displayed. How does that come?</description>
      <pubDate>Sat, 16 Nov 2024 13:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throwing-exceptions-in-subjobs/m-p/2225052#M17514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: throwing exceptions in subjobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throwing-exceptions-in-subjobs/m-p/2225053#M17515</link>
      <description>My question is in fact: How can I log the error in the second job AND, at the same time, let the parent job flow into a onSubjobError too?</description>
      <pubDate>Tue, 02 Nov 2010 13:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throwing-exceptions-in-subjobs/m-p/2225053#M17515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-02T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: throwing exceptions in subjobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throwing-exceptions-in-subjobs/m-p/2225054#M17516</link>
      <description>When you use an OnSubjobError link in a child job, it is the result of the processing after that link that is passed back to the parent.  So no problem logging the error in the child job means no error in the tRunJob.&lt;BR /&gt;To force an error in the tRunJob in this scenario, you need a tDie as the last component after logging the error in the child job.</description>
      <pubDate>Tue, 02 Nov 2010 22:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throwing-exceptions-in-subjobs/m-p/2225054#M17516</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-11-02T22:34:08Z</dc:date>
    </item>
  </channel>
</rss>

