<?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: Abort the job with different error message in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358801#M123758</link>
    <description>You can pass an on error condition to a tDie and customise the message.</description>
    <pubDate>Fri, 23 Mar 2012 16:30:52 GMT</pubDate>
    <dc:creator>janhess</dc:creator>
    <dc:date>2012-03-23T16:30:52Z</dc:date>
    <item>
      <title>Abort the job with different error message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358796#M123753</link>
      <description>Hi, 
&lt;BR /&gt;I have a job which reads an input file and updates the fields in salesforce object. The job is working fine and I would like to add some error handling conditions. The following two requirements are mandatory. 
&lt;BR /&gt;If the input file is not available, the job should abort with the error message "Input File not found. Aborting..". 
&lt;BR /&gt;If the input file is available, then the first two characters in the first record (batch header record) must be "01". If it is not "01", the job should abort with the error message "Input file not set for the division Corporate Sales". 
&lt;BR /&gt;I know I can use tlogCatcher and tDie, but not sure how to handle these two cases. I may have to add more error condition later. 
&lt;BR /&gt;Can some one help me? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Balaji.</description>
      <pubDate>Sat, 16 Nov 2024 12:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358796#M123753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Abort the job with different error message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358797#M123754</link>
      <description>if you have a parent job calling this job you mentioned 
&lt;BR /&gt;you could raise the error 
&lt;BR /&gt;and in your parent job you can check your error output value and DO something. 
&lt;BR /&gt;does it help? 
&lt;BR /&gt;Nicolas</description>
      <pubDate>Wed, 21 Mar 2012 12:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358797#M123754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-21T12:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Abort the job with different error message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358798#M123755</link>
      <description>Thanks for your response.&lt;BR /&gt;There is no parent-child job concept here. This is just a single job and I need to abort the job based on different error conditions.&lt;BR /&gt;Thanks,&lt;BR /&gt;Balaji.</description>
      <pubDate>Thu, 22 Mar 2012 02:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358798#M123755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-22T02:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Abort the job with different error message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358799#M123756</link>
      <description>No other replies on this post? I am still waiting for some one to help..&lt;BR /&gt;Thanks,&lt;BR /&gt;Balaji.</description>
      <pubDate>Fri, 23 Mar 2012 14:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358799#M123756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-23T14:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Abort the job with different error message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358800#M123757</link>
      <description>Ok. I figured it out. The job is as below.&lt;BR /&gt;tFileInputFullRow      ==&amp;gt; tSampleRow       ==&amp;gt; tJavaRow&lt;BR /&gt;tSampleRow has the range as "1..1" and tJavaRow has the code below.&lt;BR /&gt;if (!("01".equals(input_row.line.substring(0,2))))&lt;BR /&gt;{&lt;BR /&gt;	throw new Exception("\n File is not for production Aborting..");&lt;BR /&gt;}&lt;BR /&gt;The job has a tlogRow and tDie component. The job is throwing the exception and tlogCatcher is catching. But the job is not aborting.&lt;BR /&gt;The job seems to be running in an infinite loop and I see the output below.&lt;BR /&gt;&lt;BR /&gt;Starting job test at 11:19 23/03/2012.&lt;BR /&gt; connecting to socket on port 4023&lt;BR /&gt;Exception in component tJavaRow_2&lt;BR /&gt;java.lang.Exception: &lt;BR /&gt; File is not for production Aborting..&lt;BR /&gt;	at omsleodev.test_0_1.test.tFileInputFullRow_1Process(test.java:690)&lt;BR /&gt;	at omsleodev.test_0_1.test.runJobInTOS(test.java:1426)&lt;BR /&gt;	at omsleodev.test_0_1.test.main(test.java:1294)&lt;BR /&gt; connected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt; disconnected&lt;BR /&gt;Exception in thread "main" java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: &lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.StackOverflowError&lt;BR /&gt;Job test ended at 11:19 23/03/2012. &lt;BR /&gt;&lt;BR /&gt;I had to manually kill the job. &lt;BR /&gt;How do I make the job to abort automatically in case of the exception? Setting the "Exit JVM immediately" in the tDie component is not working in this case.&lt;BR /&gt;Thanks,&lt;BR /&gt;Balaji.</description>
      <pubDate>Fri, 23 Mar 2012 16:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358800#M123757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-23T16:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Abort the job with different error message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358801#M123758</link>
      <description>You can pass an on error condition to a tDie and customise the message.</description>
      <pubDate>Fri, 23 Mar 2012 16:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358801#M123758</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-03-23T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Abort the job with different error message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358802#M123759</link>
      <description>Thanks for your response.
&lt;BR /&gt;More than customizing the message, I am interested in "ABORTING" the job.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Balaji.</description>
      <pubDate>Fri, 23 Mar 2012 16:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358802#M123759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-23T16:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Abort the job with different error message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358803#M123760</link>
      <description>I found it. I had to uncheck the "Catch tDie" checkbox for the tlogCatcher component.&lt;BR /&gt;However, with out this, it appears to be a bug in talend.&lt;BR /&gt;Thanks,&lt;BR /&gt;Balaji.</description>
      <pubDate>Fri, 23 Mar 2012 16:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Abort-the-job-with-different-error-message/m-p/2358803#M123760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-23T16:43:19Z</dc:date>
    </item>
  </channel>
</rss>

