<?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: How to use tDie, tSendMail &amp; log errors into a file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324115#M93864</link>
    <description>&lt;P&gt;how to catch the exact error thrown by the component?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like there are 4 fields defined in a schema and all of them are not null, if a filed doesn't have&amp;nbsp;a value how to say that this particular field in a particular row is not valid using Talend?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also what is the best way to report the error to the consumer of the Job?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only Custom message is possible to return from tDie?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any other way of error handling on the component schema validations&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 08:12:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-27T08:12:35Z</dc:date>
    <item>
      <title>How to use tDie, tSendMail &amp; log errors into a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324108#M93857</link>
      <description>Hi,
&lt;BR /&gt;I am trying to create a process to copy new incoming data from MySQL to Oracle. I want to be able to stop the process if errors occur; send an email to the administrator and log the errors into a file.
&lt;BR /&gt;Below is my process I am trying to define, however, I encountered the following problems for the tDie:
&lt;BR /&gt;==&amp;gt; If this component has output, there must be an input link to propagate the data
&lt;BR /&gt;tMySQLInput --&amp;gt; Main --&amp;gt; tMap --&amp;gt; Main --&amp;gt; tOracleInput
&lt;BR /&gt; | |
&lt;BR /&gt;OnComponentError OnComponentError
&lt;BR /&gt; | |
&lt;BR /&gt;tDie --&amp;gt; Main --&amp;gt; tSendMail tDie --&amp;gt; Main --&amp;gt; tSendMail
&lt;BR /&gt;tlogCatcher --&amp;gt; Main --&amp;gt; tFileOutputDelimited
&lt;BR /&gt;In addition, will the "tlogCatcher --&amp;gt; Main --&amp;gt; tfileOutputDelimited" flow logs the errors into a file? If not, how should I define the flow in order to log the errors in a log file?
&lt;BR /&gt;Any help is appreciated? Thanks in advance!</description>
      <pubDate>Sat, 16 Nov 2024 13:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324108#M93857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tDie, tSendMail &amp; log errors into a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324109#M93858</link>
      <description>Hello 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;In addition, will the "tlogCatcher --&amp;gt; Main --&amp;gt; tfileOutputDelimited" flow logs the errors into a file? If not, how should I define the flow in order to log the errors in a log file?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Yes, once tDie is fired, the tLogCatcher will catch the message define on tDie and log them into a file/db.
&lt;BR /&gt;Your job looks like:
&lt;BR /&gt;tMySQLInput --&amp;gt; Main --&amp;gt; tMap --&amp;gt; Main --&amp;gt; tOracleOutput
&lt;BR /&gt; | |
&lt;BR /&gt;OnComponentError OnComponentError
&lt;BR /&gt; | |
&lt;BR /&gt;tSendMail--onComponentOK--tDie tSendMail---oncomponentok--&amp;gt; tDie
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Sat, 30 Jan 2010 03:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324109#M93858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-30T03:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tDie, tSendMail &amp; log errors into a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324110#M93859</link>
      <description>Hi Shong,
&lt;BR /&gt;Thanks for your help! I am wondering is there any ways to log tmap if tmap has an error? 
&lt;BR /&gt;Best Regards!</description>
      <pubDate>Tue, 02 Feb 2010 20:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324110#M93859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-02T20:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tDie, tSendMail &amp; log errors into a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324111#M93860</link>
      <description>Hello 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I am wondering is there any ways to log tmap if tmap has an error?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Yes, tlogCatcher catch all the runtime exception occurs on any a component.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 03 Feb 2010 02:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324111#M93860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-03T02:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tDie, tSendMail &amp; log errors into a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324112#M93861</link>
      <description>Hi Shong, 
&lt;BR /&gt;I encountered an error in the tmap with the following messages: 
&lt;BR /&gt;Starting job JOB_ERROR_LOG at 18:32 03/02/2010. 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
&lt;BR /&gt; Type mismatch: cannot convert from long to BigDecimal 
&lt;BR /&gt; at test_log_n_error.job_error_log_0_1.JOB_ERROR_LOG.tMysqlInput_1Process(JOB_ERROR_LOG.java:2330) 
&lt;BR /&gt; at test_log_n_error.job_error_log_0_1.JOB_ERROR_LOG.runJobInTOS(JOB_ERROR_LOG.java:3276) 
&lt;BR /&gt; at test_log_n_error.job_error_log_0_1.JOB_ERROR_LOG.main(JOB_ERROR_LOG.java:3169) 
&lt;BR /&gt; connecting to socket on port 4155 
&lt;BR /&gt; connected 
&lt;BR /&gt;Job JOB_ERROR_LOG ended at 18:32 03/02/2010. 
&lt;BR /&gt;However, tlogcatcher which suppose to create the logs in an excel file was not updated. Can you please help if I need to create another flow to track tmap error? 
&lt;BR /&gt;Thanks again!</description>
      <pubDate>Thu, 04 Feb 2010 02:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324112#M93861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-04T02:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tDie, tSendMail &amp; log errors into a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324113#M93862</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problem:&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;It is a compilation problem, not a runtime exception, the job does't work if there is a compilation error in generated code. First, you should correct the compilation error.
&lt;BR /&gt;From your error message, we can see it can't now convert from long to BigDecimal, so you need conver to long to BigDelimal like this:
&lt;BR /&gt;new BigDecimal(row1.columnName)
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 04 Feb 2010 03:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324113#M93862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-04T03:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tDie, tSendMail &amp; log errors into a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324114#M93863</link>
      <description>Hi Shong,
&lt;BR /&gt;Thanks for your detailed explanations!</description>
      <pubDate>Fri, 05 Feb 2010 18:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324114#M93863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-05T18:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tDie, tSendMail &amp; log errors into a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324115#M93864</link>
      <description>&lt;P&gt;how to catch the exact error thrown by the component?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like there are 4 fields defined in a schema and all of them are not null, if a filed doesn't have&amp;nbsp;a value how to say that this particular field in a particular row is not valid using Talend?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also what is the best way to report the error to the consumer of the Job?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only Custom message is possible to return from tDie?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any other way of error handling on the component schema validations&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 08:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tDie-tSendMail-log-errors-into-a-file/m-p/2324115#M93864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-27T08:12:35Z</dc:date>
    </item>
  </channel>
</rss>

