<?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 Ending a job gracefully in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Ending-a-job-gracefully/m-p/2297096#M69701</link>
    <description>Is there a way to end a job gracefully? 
&lt;BR /&gt;Using a tDie in a sub-job, even with the error code set to 0 and the priority set to Info, will cause the parent job to fail unless I uncheck the "Die on child error" option on the tRunJob. 
&lt;BR /&gt;This is unacceptable as I want the calling job to die in the event of a genuine fault, but in some circumstances I want to end the sub-job with an informational message and let the calling job to continue running.
&lt;BR /&gt;Thanks in advance
&lt;BR /&gt;Mario</description>
    <pubDate>Mon, 28 Jan 2013 22:43:54 GMT</pubDate>
    <dc:creator>mario_mirabile</dc:creator>
    <dc:date>2013-01-28T22:43:54Z</dc:date>
    <item>
      <title>Ending a job gracefully</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Ending-a-job-gracefully/m-p/2297096#M69701</link>
      <description>Is there a way to end a job gracefully? 
&lt;BR /&gt;Using a tDie in a sub-job, even with the error code set to 0 and the priority set to Info, will cause the parent job to fail unless I uncheck the "Die on child error" option on the tRunJob. 
&lt;BR /&gt;This is unacceptable as I want the calling job to die in the event of a genuine fault, but in some circumstances I want to end the sub-job with an informational message and let the calling job to continue running.
&lt;BR /&gt;Thanks in advance
&lt;BR /&gt;Mario</description>
      <pubDate>Mon, 28 Jan 2013 22:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Ending-a-job-gracefully/m-p/2297096#M69701</guid>
      <dc:creator>mario_mirabile</dc:creator>
      <dc:date>2013-01-28T22:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a job gracefully</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Ending-a-job-gracefully/m-p/2297097#M69702</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;This is unacceptable as I want the calling job to die in the event of a genuine fault, but in some circumstances I want to end the sub-job with an informational message and let the calling job to continue running.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Would you mind giving us a example for your expected result? Or some screenshots for that, which will be appreciated very much.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 29 Jan 2013 02:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Ending-a-job-gracefully/m-p/2297097#M69702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-29T02:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a job gracefully</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Ending-a-job-gracefully/m-p/2297098#M69703</link>
      <description>Hi Sabrina 
&lt;BR /&gt;An example: 
&lt;BR /&gt;A parent job waits for a file and passes it to a sub-job after it arrives. The sub-job performs a schema compliance check and detects non-compliant rows. At this point, the sub-job should log the error, move the file to a rejected folder, rollback any database changes already processed, die (gracefully) and pass control back to the parent which waits for the next file. 
&lt;BR /&gt;I can't set the parent to ignore child errors as there are other types of errors which which should cause processing to stop,. 
&lt;BR /&gt;While I have your attention, is there any way to check the number of rows (say via a global variable) rejected by a tschemaComplianceCheck component? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Mario</description>
      <pubDate>Tue, 29 Jan 2013 05:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Ending-a-job-gracefully/m-p/2297098#M69703</guid>
      <dc:creator>mario_mirabile</dc:creator>
      <dc:date>2013-01-29T05:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a job gracefully</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Ending-a-job-gracefully/m-p/2297099#M69704</link>
      <description>Hi, 
&lt;BR /&gt;In order to continue to execute next record in parent job, you have to uncheck the option 'die on error' on tRunJob. In child job, use tLogCatcher to capture all the ava expcetion thrown in child job and the error defined on tDie component.
&lt;BR /&gt;There is no global variable for the total reject rows, well, you can add a counter and put it to a global variable by yourself on tJavaFlex component. For example:
&lt;BR /&gt;tFileInputDelimited--main--tschemaComplianceCheck---reject--tJavaFlex--tLogRow
&lt;BR /&gt;on the begin part of tJavaFlex, define a counter:
&lt;BR /&gt;int nb_line=0;
&lt;BR /&gt;on the main part of tJavaFlex:
&lt;BR /&gt;nb_line=nb_line 1;
&lt;BR /&gt;on the end part:
&lt;BR /&gt;globalMap.put("reject_row", nb_line);
&lt;BR /&gt;you might need more help about tJavaFlex component, please read 
&lt;A href="https://help.talend.com/search/all?query=tJavaFlex&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tJavaFlex&lt;/A&gt;
&lt;BR /&gt;Hope it will help you
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 30 Jan 2013 07:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Ending-a-job-gracefully/m-p/2297099#M69704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-30T07:06:11Z</dc:date>
    </item>
  </channel>
</rss>

