<?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 email when using sequence jobs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263452#M43595</link>
    <description>&lt;P&gt;Shong,&lt;/P&gt; 
&lt;P&gt;Also how to capture additional information generated in the tlogcather when the job fails.&lt;/P&gt; 
&lt;P&gt;Example&lt;/P&gt; 
&lt;P&gt;: [template_Log_Catcher_1_tLogRow_5]&lt;/P&gt; 
&lt;P&gt;2020-04-15 15:31:00|TPg0SC|TPg0SC|TPg0SC|DATAQUALITY|test|Dev|6|Java Exception|tDBOutput_1|java.sql.SQLException&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;RA-01017: invalid username/password; logon denied&lt;BR /&gt;|1&lt;/P&gt; 
&lt;P&gt;It would be really helpful if you could provide a job design&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 21:13:09 GMT</pubDate>
    <dc:creator>AAA999</dc:creator>
    <dc:date>2020-04-15T21:13:09Z</dc:date>
    <item>
      <title>Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263445#M43588</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a workflow/sequence which I am running.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In case one of the job fails I want to send an email with the reason of the failure and the sequence should stop. If successful send an email. I am able to achieve this in individual job but not in sequence&lt;/P&gt;
&lt;P&gt;1. Tried the option of check and uncheck die on child error.&lt;/P&gt;
&lt;P&gt;2. Added tlogcatcher, tdie, tsendemail component in the same sequence. Nothing works.&lt;/P&gt;
&lt;P&gt;Tried options mentioned in the forum. Nothing works. Attached is the screen shot of the job.&lt;/P&gt;
&lt;P&gt;3. Is there a way one can create a single reusable&amp;nbsp; job for sending email using (temail, tlogcatcher etc component) and add it where required.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Help on these would be greatly appreciated&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 21:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263445#M43588</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2020-03-23T21:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263446#M43589</link>
      <description>Hi 
&lt;BR /&gt;1. Check the 'die on error' box on each tRunJob to stop the job as long as one of child jobs has an error. 
&lt;BR /&gt;2. If you want to capture the error and send the error messages in the email, you should use tLogCatcher to capture the error in the child job and send the email. 
&lt;BR /&gt;3. If you are using enterprise edition, you can achieve it by creating joblet which is reusable, this functionality is not available in community edition. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 24 Mar 2020 02:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263446#M43589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-24T02:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263447#M43590</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt; 
&lt;P&gt;Please see answer below and the attachment&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;1. Check the 'die on error' box on each tRunJob to stop the job as long as one of child jobs has an error.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;done&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If you want to capture the error and send the error messages in the email, you should use tLogCatcher to capture the error in the child job and send the email.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I have attached the design for the joblet and the process to send the email.(Email is in the job design and not in the sequence design).Please do let me know what variables needs to be defined in the email message.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Do the reusable joblet needs to be included in all the child jobs or can it be added only in the sequence. Can you please provide an example which would be really helpful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;3. If you are using enterprise edition, you can achieve it by creating joblet which is reusable, this functionality is not available in community edition.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;we are using enterprise edition.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyBs"&gt;Email Process.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly7X"&gt;Joblet.JPG&lt;/A&gt;</description>
      <pubDate>Tue, 24 Mar 2020 14:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263447#M43590</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2020-03-24T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263448#M43591</link>
      <description>The joblet will be used in each child job, send email after tLogCatcher which capture the error, the joblet looks like:
&lt;BR /&gt;tLogCatcher--main--tMap---tJavaRow
&lt;BR /&gt; |onsubjobok
&lt;BR /&gt;tSendMail
&lt;BR /&gt;
&lt;BR /&gt;on tJavaRow, put the error message context variable for used later on tSendMail.
&lt;BR /&gt;context.error_message=input_row.message;
&lt;BR /&gt;
&lt;BR /&gt;on tSendmail, set the message filed as below if you want to send the error message.
&lt;BR /&gt;"The job runs failed, the error message are: "+context.error_message
&lt;BR /&gt;
&lt;BR /&gt;Hope it helps you!
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 25 Mar 2020 01:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263448#M43591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-25T01:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263449#M43592</link>
      <description>&lt;P&gt;Shong,&lt;/P&gt; 
&lt;P&gt;We have more than 300+ jobs so adding email will be time consuming.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;Is there a way we can add the email notification process in the sequence process only? If the sequence fails send an email with message that sequence 1 has failed .&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 03:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263449#M43592</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2020-03-26T03:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263450#M43593</link>
      <description>Hi 
&lt;BR /&gt;Use a tLogCather in the main job to capture the error and send an email, eg:
&lt;BR /&gt;tRunjob1-onsubjobok--tRunJob2--&amp;gt;bababab
&lt;BR /&gt;
&lt;BR /&gt;tLogCatcher--main--tMap---&amp;gt;
&lt;BR /&gt; |onsubjobok
&lt;BR /&gt;tSendmail
&lt;BR /&gt;
&lt;BR /&gt;why you said '2. Added tlogcatcher, tdie, tsendemail component in the same sequence. Nothing works.'? What are your expected result?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 26 Mar 2020 06:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263450#M43593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-26T06:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263451#M43594</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt; 
&lt;P&gt;I created a joblet and also used the process of sending email directly in the job logic nothing works. Also not able to connect the trigger or row link to the joblet. where to plug in the joblet in the sequence. I am attaching the screen shot. Please, advice what is missing.&lt;/P&gt; 
&lt;P&gt;Thanks&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/0683p000009LyK7"&gt;email error job.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyLU"&gt;email error1.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyMl"&gt;joblet design.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly7A"&gt;sequence flow.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lxtr"&gt;tjavarow_job variable.JPG&lt;/A&gt;</description>
      <pubDate>Wed, 15 Apr 2020 17:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263451#M43594</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2020-04-15T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263452#M43595</link>
      <description>&lt;P&gt;Shong,&lt;/P&gt; 
&lt;P&gt;Also how to capture additional information generated in the tlogcather when the job fails.&lt;/P&gt; 
&lt;P&gt;Example&lt;/P&gt; 
&lt;P&gt;: [template_Log_Catcher_1_tLogRow_5]&lt;/P&gt; 
&lt;P&gt;2020-04-15 15:31:00|TPg0SC|TPg0SC|TPg0SC|DATAQUALITY|test|Dev|6|Java Exception|tDBOutput_1|java.sql.SQLException&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;RA-01017: invalid username/password; logon denied&lt;BR /&gt;|1&lt;/P&gt; 
&lt;P&gt;It would be really helpful if you could provide a job design&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 21:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263452#M43595</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2020-04-15T21:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263453#M43596</link>
      <description>The joblet contains tLogCatcher which is the first component of a subjob, you don't need connect any trigger or row link to the joblet, tLogCatcher will capture the error once the job has an error.
&lt;BR /&gt;Put the joblet in each child job. 
&lt;BR /&gt;I don't understand your question 'Also how to capture additional information generated in the tlogcather when the job fails.'
&lt;BR /&gt;What do you want? I see you capture the error and send an email with the error message. 
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 16 Apr 2020 02:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263453#M43596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-16T02:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263454#M43597</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The email process is not working when the job fails. The job error is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;tFileInputDelimited_1 - C:\File\jobname (The system cannot find the file specified). When the job fails no email is received. I have attached the main job where I am calling the template email. I have also attached 2 design flow of the template email to show none of the design is working as suggested. Please, have a look at the attachment and suggest what is not correct or if possible can you create a design job. I am attaching the email template design 2 in another post as maximun attachment is 5. Any help would be appreciated&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx9G"&gt;joblet  design .JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyNU"&gt;Joblet design email value.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyNe"&gt;joblet design tmap value.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyNj"&gt;main job.JPG&lt;/A&gt;</description>
      <pubDate>Thu, 16 Apr 2020 17:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263454#M43597</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2020-04-16T17:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263455#M43598</link>
      <description>&lt;P&gt;Attachment of email template&amp;nbsp; design 2.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyNk"&gt;Joblet design1 email value.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyAq"&gt;Joblet design1 tmap value.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyNy"&gt;joblet design1.JPG&lt;/A&gt;</description>
      <pubDate>Thu, 16 Apr 2020 17:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263455#M43598</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2020-04-16T17:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when using sequence jobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263456#M43599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069LYJAA2"&gt;@AAA999&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sorry about the late response, I have been incredibly busy on other projects recently so have not had a great deal of time to visit the Community. I believe your issue will be solved by putting your email functionality at the end of your job attached to a tPostJob component. The tPostJob component will ALWAYS run, even if your job fails. This is the only way to guarantee an email to go when your job errors&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 15:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-email-when-using-sequence-jobs/m-p/2263456#M43599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-06T15:39:44Z</dc:date>
    </item>
  </channel>
</rss>

