<?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: Send Failure Email Notification Error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252092#M35840</link>
    <description>The error directory that I refer to is actually just any directory, it just has to be the directory where you place any error files when they occur.&lt;BR /&gt;You could create a context variable called errorDir and have that be any directory you like.&lt;BR /&gt;If you use tLogCatcher -&amp;gt; tMap -&amp;gt; tfileOutputDelimited, you can set the File Name of the tFileOutputDelimited to context.errorDir + "/errors.csv", and check the append box if you'd like.&lt;BR /&gt;Now, whenever an error happens, it'll be written to /errors.csv&lt;BR /&gt;For the tFileList component, you can set the directory to context.errorDir, and add a FileMask of "*.csv" if you'd like.&lt;BR /&gt;For the tSendMail when an error is found, you can set the attachment File to be context.errorDir + "/errors.csv", and it'll add the file to the e-mail that is sent on error.</description>
    <pubDate>Thu, 24 Oct 2013 15:42:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-24T15:42:18Z</dc:date>
    <item>
      <title>Send Failure Email Notification Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252087#M35835</link>
      <description>Hi Friends,&lt;BR /&gt;I am new to Talend. Trying to use email component to send email on job successes or failure.&lt;BR /&gt;I am able to send on success, but even on failure it's sending the success email. my job flow is as follows,&lt;BR /&gt;tFTPConnection_1 --(ONComponentOK)--&amp;gt;tFTPPut_1----(ONComponentOK)--&amp;gt;tSendMail_1&lt;BR /&gt;                                                                      |&lt;BR /&gt;                                                                      |&lt;BR /&gt;                                                       (OnComponentError)&lt;BR /&gt;                                                                     |&lt;BR /&gt;                                                                    \/&lt;BR /&gt;                                                            tSendMail_2&lt;BR /&gt;In tFTPPUT_1 , I have checked the option "Die on Error". (Even I unchecked this and tested, but no luck).&lt;BR /&gt;Please help me to resolve this problem&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 22 Oct 2013 18:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252087#M35835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-22T18:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Send Failure Email Notification Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252088#M35836</link>
      <description>To handle sending e-mails on success or error, I have usually done something like this:&lt;BR /&gt;tMyComponent_1 --(OnComponentOK)--&amp;gt; tFileList_1 --(If [((Integer)globalMap.get("tFileList_1_NB_FILE"))==0) --&amp;gt;tSendMail_1 (success)&lt;BR /&gt;Then another if that points to tSendMail_2 with criteria: ((Integer)globalMap.get("tFileList_1_NB_FILE")) &amp;gt; 0&lt;BR /&gt;The tFileList component looks at an "error" directory, and if any kind of error occurs, a file is created in that directory by using tLogCatcher -&amp;gt; tMap -&amp;gt; tFileOutputDelimited in my Talend jobs.  If no error occurs, directory is empty, success email sends. If there is a file, an error occurred, attach the error file to the email and send.&lt;BR /&gt;Hope that helps</description>
      <pubDate>Tue, 22 Oct 2013 18:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252088#M35836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-22T18:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Send Failure Email Notification Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252089#M35837</link>
      <description>Let me try this.
&lt;BR /&gt;And one more Question:
&lt;BR /&gt;How I can include the current date in the content of the email and in subject line?
&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 23 Oct 2013 15:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252089#M35837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-23T15:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Send Failure Email Notification Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252090#M35838</link>
      <description>You can get the current date as String this way:&lt;BR /&gt;TalendDate.formatDate("yyyy-MM-dd", TalendDate.getCurrentDate())&lt;BR /&gt;Example for subject line: "The job runs at " + TalendDate.formatDate("yyyy-MM-dd", TalendDate.getCurrentDate()) + "  fails"</description>
      <pubDate>Wed, 23 Oct 2013 18:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252090#M35838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-23T18:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Send Failure Email Notification Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252091#M35839</link>
      <description>Hi, can you please let me know how I implement this?&lt;BR /&gt;The tFileList component looks at an "error" directory, and if any kind of error occurs, a file is created in that directory by using tLogCatcher -&amp;gt; tMap -&amp;gt; tFileOutputDelimited in my Talend jobs.  If no error occurs, directory is empty, success email sends. If there is a file, an error occurred, attach the error file to the email and send.&lt;BR /&gt;where i can find the "Error" directory in tFileList component?</description>
      <pubDate>Wed, 23 Oct 2013 22:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252091#M35839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-23T22:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Send Failure Email Notification Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252092#M35840</link>
      <description>The error directory that I refer to is actually just any directory, it just has to be the directory where you place any error files when they occur.&lt;BR /&gt;You could create a context variable called errorDir and have that be any directory you like.&lt;BR /&gt;If you use tLogCatcher -&amp;gt; tMap -&amp;gt; tfileOutputDelimited, you can set the File Name of the tFileOutputDelimited to context.errorDir + "/errors.csv", and check the append box if you'd like.&lt;BR /&gt;Now, whenever an error happens, it'll be written to /errors.csv&lt;BR /&gt;For the tFileList component, you can set the directory to context.errorDir, and add a FileMask of "*.csv" if you'd like.&lt;BR /&gt;For the tSendMail when an error is found, you can set the attachment File to be context.errorDir + "/errors.csv", and it'll add the file to the e-mail that is sent on error.</description>
      <pubDate>Thu, 24 Oct 2013 15:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252092#M35840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-24T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Send Failure Email Notification Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252093#M35841</link>
      <description>Hi,&lt;BR /&gt;This scenario is not working for me. &lt;BR /&gt;I am receiving this error and also it's doing ftp and sending success email. Even If files are not exists, in that case also it's sending success email.&lt;BR /&gt;&lt;BR /&gt; connecting to socket on port 3774&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tFTPPut_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at dev_jbjs.copy_of_hw_ftp_0_1.Copy_of_HW_FTP.tFTPPut_1Process(Copy_of_HW_FTP.java:911)&lt;BR /&gt;	at dev_jbjs.copy_of_hw_ftp_0_1.Copy_of_HW_FTP.tFTPConnection_1Process(Copy_of_HW_FTP.java:624)&lt;BR /&gt;	at dev_jbjs.copy_of_hw_ftp_0_1.Copy_of_HW_FTP.runJobInTOS(Copy_of_HW_FTP.java:3269)&lt;BR /&gt;	at dev_jbjs.copy_of_hw_ftp_0_1.Copy_of_HW_FTP.main(Copy_of_HW_FTP.java:3059)&lt;BR /&gt; disconnected</description>
      <pubDate>Thu, 31 Oct 2013 14:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Failure-Email-Notification-Error/m-p/2252093#M35841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-31T14:49:37Z</dc:date>
    </item>
  </channel>
</rss>

