<?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 Email trigger when a job gets failed in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Email-trigger-when-a-job-gets-failed/m-p/2249592#M34086</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am facing an issue with an email notification when the job fails. Am not getting any email when the job fails&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My job design will be like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tfileinputdelimited --&amp;gt; tmap--&amp;gt;toracleoutput&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tlogcatcher --&amp;gt;tJavaRow&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;|&lt;/P&gt;&lt;P&gt;onsubjobok&lt;/P&gt;&lt;P&gt;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;Tsendmail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am using below script in TJavaRow&lt;/P&gt;&lt;P&gt;globalMap.put("errorCode",row7.message);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In email am using below script&lt;/P&gt;&lt;P&gt;"the error message is : "+(String)globalMap.get("errorCode")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to fix this issue . Thanks in advance&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 12:59:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-11T12:59:23Z</dc:date>
    <item>
      <title>Email trigger when a job gets failed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Email-trigger-when-a-job-gets-failed/m-p/2249592#M34086</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am facing an issue with an email notification when the job fails. Am not getting any email when the job fails&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My job design will be like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tfileinputdelimited --&amp;gt; tmap--&amp;gt;toracleoutput&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tlogcatcher --&amp;gt;tJavaRow&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;|&lt;/P&gt;&lt;P&gt;onsubjobok&lt;/P&gt;&lt;P&gt;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;Tsendmail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am using below script in TJavaRow&lt;/P&gt;&lt;P&gt;globalMap.put("errorCode",row7.message);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In email am using below script&lt;/P&gt;&lt;P&gt;"the error message is : "+(String)globalMap.get("errorCode")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to fix this issue . Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 12:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Email-trigger-when-a-job-gets-failed/m-p/2249592#M34086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-11T12:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Email trigger when a job gets failed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Email-trigger-when-a-job-gets-failed/m-p/2249593#M34087</link>
      <description>&lt;P&gt;Use a tPostJob component and add the logic to trigger the email to that component. The tPostJob will always run. During your job you will need to find a way of identifying whether the job has failed. An easy way is to set up a globalMap variable that holds a key of "Failure" and a value of true. If the job proceeds to the very end without error, after that, set the "Failure" value to false. Then the tPostJob will fire. Trigger the email logic based on the value of "Failure" being true. If the job is successful, that variable will have changed it value to false, therefore the email will not send&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Email-trigger-when-a-job-gets-failed/m-p/2249593#M34087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-11T13:44:41Z</dc:date>
    </item>
  </channel>
</rss>

