<?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: tRunJob Returning an Error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198814#M1989</link>
    <description>&lt;P&gt;You can check the condition of die on child error for the trunjob component.&lt;/P&gt;&lt;P&gt;Then connect your trunjob with a tglobalvariable through onsubjoberror and assign error_message of trunjob (which you can find in its properties (clt+space) to a variable.&lt;/P&gt;&lt;P&gt;At last use in post job check in tmap if the error code&amp;gt;0,if yes use tdie to make it die.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Oct 2018 13:38:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-24T13:38:51Z</dc:date>
    <item>
      <title>tRunJob Returning an Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198813#M1988</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to check the return code on a tRunJob component to throw an error in my parent when the child job fails.&amp;nbsp; Could anyone tell me how I can achieve this as right now even though my child is forced to fail the parent thinks it has worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was initially using onSubJobOK as seen in the attached but as the parent thinks its ok it flows down the ok path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 13:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198813#M1988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T13:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob Returning an Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198814#M1989</link>
      <description>&lt;P&gt;You can check the condition of die on child error for the trunjob component.&lt;/P&gt;&lt;P&gt;Then connect your trunjob with a tglobalvariable through onsubjoberror and assign error_message of trunjob (which you can find in its properties (clt+space) to a variable.&lt;/P&gt;&lt;P&gt;At last use in post job check in tmap if the error code&amp;gt;0,if yes use tdie to make it die.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 13:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198814#M1989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T13:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob Returning an Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198815#M1990</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not following.&amp;nbsp; So let me step through what you're saying...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the child job - set a global variable when the onSubJobError is thrown.&lt;/LI&gt;&lt;LI&gt;In the parent - get the value of the global variable as an output from the tRunJob&lt;/LI&gt;&lt;LI&gt;Use the value of the error in a tMap to then decide whether to throw a tDie or not?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only problem is I've tried this and get an error.&amp;nbsp; See the 3 images attached....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lu4J"&gt;Screen Shot 2018-10-24 at 18.40.44.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ltie"&gt;Screen Shot 2018-10-24 at 18.40.24.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lu4Y"&gt;Screen Shot 2018-10-24 at 18.39.54.png&lt;/A&gt;</description>
      <pubDate>Wed, 24 Oct 2018 18:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198815#M1990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T18:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob Returning an Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198816#M1991</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Could you please verify whether the "Use an independent process to run SubJob" option has been unchecked in your job?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;You can keep the Die on child error as either Yes or No based on your specific use case. But the above check box for independent job should be unchecked.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0eK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136554i26905EDCB02203C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0eK.png" alt="0683p000009M0eK.png" /&gt;&lt;/span&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;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If the issue still persists, could you please share the component details screenshot for your tRunJob component for analysis?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If the answer has helped to resolve your query, could you please mark the topic as resolved? Kudos are also welcome &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;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Sat, 27 Oct 2018 19:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198816#M1991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-27T19:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob Returning an Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198817#M1992</link>
      <description>&lt;P&gt;Hi Nikhil&lt;/P&gt;&lt;P&gt;Yes - this is all now working fine thanks.&amp;nbsp; Sorry - should have responded earlier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up using tBufferOutput to return a code which I could then check in the parent job through a tMap and process accordingly as you will see in the attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuCN"&gt;Screen Shot 2018-11-06 at 22.14.41.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuCS"&gt;Screen Shot 2018-11-06 at 22.14.11.png&lt;/A&gt;</description>
      <pubDate>Tue, 06 Nov 2018 22:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-Returning-an-Error/m-p/2198817#M1992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-06T22:16:08Z</dc:date>
    </item>
  </channel>
</rss>

