<?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 [resolved] tsendmail give error arguments from job in message field in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217963#M13352</link>
    <description>Hello erverybody,&lt;BR /&gt;How i can give tsendmail the error message with which comes from my Job when an error occurs into the message Field.&lt;BR /&gt;Are there any preconfigured args ?&lt;BR /&gt;regards john&amp;nbsp;</description>
    <pubDate>Mon, 30 Nov 2015 12:10:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-30T12:10:01Z</dc:date>
    <item>
      <title>[resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217963#M13352</link>
      <description>Hello erverybody,&lt;BR /&gt;How i can give tsendmail the error message with which comes from my Job when an error occurs into the message Field.&lt;BR /&gt;Are there any preconfigured args ?&lt;BR /&gt;regards john&amp;nbsp;</description>
      <pubDate>Mon, 30 Nov 2015 12:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217963#M13352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T12:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217964#M13353</link>
      <description>Hy,&lt;BR /&gt;Before your tSendMail, use a tLogCatcher&amp;nbsp;to catch errors (java, tDie &amp;amp; tWarn).&lt;BR /&gt;And, in your tSendMail, print the message from the tLogCatcher.&lt;BR /&gt;Arnaud</description>
      <pubDate>Mon, 30 Nov 2015 12:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217964#M13353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T12:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217965#M13354</link>
      <description>Hello Arnaud,&lt;BR /&gt;My Job is builded in this way which you've mentioned before already.&lt;BR /&gt;But it seems that only an connect with the tLogCatcher component isn't enough. The message from the incoming mail doesn't show any errors.&amp;nbsp;&lt;BR /&gt;So may &amp;nbsp;i have to set some Settings or Arguments &amp;nbsp;?&lt;BR /&gt;regards john&amp;nbsp;</description>
      <pubDate>Mon, 30 Nov 2015 13:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217965#M13354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T13:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217966#M13355</link>
      <description>Verify, on tLogCatcher, all checkboxes are checked. If the error don't catch, you must modify your job to generate an error with a tDie ou a tWarn.
&lt;BR /&gt;Do you have a screenshot of your job please ?</description>
      <pubDate>Mon, 30 Nov 2015 13:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217966#M13355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T13:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217967#M13356</link>
      <description>Hi,&lt;BR /&gt;You can use OnComponentError to connect tDie.&lt;BR /&gt;The workflow should be:&lt;BR /&gt;tfileinput-----&amp;gt;tfileoutput -----OnComponentError---&amp;gt; tDie&lt;BR /&gt;tLogCatcher ---main---&amp;gt; tSendMail&lt;BR /&gt;Don't forget to check the 'die on error' option so that the job will stop once an error occurs.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 01 Dec 2015 03:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217967#M13356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-01T03:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217968#M13357</link>
      <description>Hello&amp;nbsp; 
&lt;BR /&gt;First of all 
&lt;BR /&gt;&amp;nbsp;Thanks for Helping&amp;nbsp; 
&lt;BR /&gt;So now .. my Job looks like this : 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBQc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139043i151E486E25DC34F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBQc.png" alt="0683p000009MBQc.png" /&gt;&lt;/span&gt;I have added the Tdie Component which has Sabrinia already mentioned. 
&lt;BR /&gt;Here my Tsendmail Settings: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCXX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134731i10E90050A7CAC031/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCXX.png" alt="0683p000009MCXX.png" /&gt;&lt;/span&gt;Here the tlog catcher settings: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCXc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134025i25E7347E449F37CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCXc.png" alt="0683p000009MCXc.png" /&gt;&lt;/span&gt;And here is the Message which comes to the MailInbox: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCXh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143112i2F2E4DAC100A3E1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCXh.png" alt="0683p000009MCXh.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;regards john&amp;nbsp;</description>
      <pubDate>Tue, 01 Dec 2015 07:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217968#M13357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-01T07:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217969#M13358</link>
      <description>Great, please, could you mark this topic as resolved ?&lt;BR /&gt;Arnaud</description>
      <pubDate>Tue, 01 Dec 2015 08:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217969#M13358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-01T08:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217970#M13359</link>
      <description>Hello Arnauld&lt;BR /&gt;Why resolved ?&lt;BR /&gt;I want to get an error message in the mail from my job.&lt;BR /&gt;But there is no error message in the Email.&lt;BR /&gt;Do i overlook sth. ?&lt;BR /&gt;regards john&amp;nbsp;</description>
      <pubDate>Tue, 01 Dec 2015 09:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217970#M13359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-01T09:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217971#M13360</link>
      <description>Hi,&lt;BR /&gt;You got your email without any error message in it? Did you pass the error message to tSendMail message body?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 01 Dec 2015 09:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217971#M13360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-01T09:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217972#M13361</link>
      <description>Sorry ;-)
&lt;BR /&gt;In your tSendMail, you can use data from tLogCatcher : see your row2 schema.
&lt;BR /&gt;For example, you can write in your tSendMail message :&amp;nbsp;
&lt;BR /&gt;
&lt;PRE&gt;"Hello,&lt;BR /&gt;There is a problem.&lt;BR /&gt;Job " + row2.job + "&lt;BR /&gt;"+row2.moment+"&lt;BR /&gt;"+row2.project+" ("+row2.context+") / "+row2.origin+"&lt;BR /&gt;"+row2.type+" : "+row2.message+" ("+row2.code+")&lt;BR /&gt;Good Luck."&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Dec 2015 09:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217972#M13361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-01T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217973#M13362</link>
      <description>Hello you two, 
&lt;BR /&gt;@Arnaud: 
&lt;BR /&gt;Your code works perfect. &amp;nbsp;Thanks for that 
&lt;BR /&gt;Does any Table exist with some preconfigured Arguments which is mentioned in your code Solution?&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;@Sabrina: 
&lt;BR /&gt;Your code doesn't work in my environment ... may I'm doing it wrong. 
&lt;BR /&gt;I have tried two ways: 
&lt;BR /&gt;1.&amp;nbsp;"Here is the error Message: &amp;nbsp;((String)globalMap.get ("tLogCatcher_1_ERROR_MESSAGE"))"| 
&lt;BR /&gt;2."Here is the error Message: &amp;nbsp;((String)globalMap.get ("tLogCatcher_1_ERROR_MESSAGE"))" 
&lt;BR /&gt;There comes an error : 
&lt;BR /&gt;1.&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCXm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128920i8F37F882B547D4F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCXm.png" alt="0683p000009MCXm.png" /&gt;&lt;/span&gt;2.&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCXr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145410i908880A4C0E38010/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCXr.png" alt="0683p000009MCXr.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;&amp;nbsp;regards john&amp;nbsp;</description>
      <pubDate>Wed, 02 Dec 2015 07:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217973#M13362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-02T07:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217974#M13363</link>
      <description>Hi,&lt;BR /&gt;Please try this solution to see if it works&lt;BR /&gt;&lt;PRE&gt;"The exception is:"+((String)globalMap.get("tLogCatcher_1_ERROR_MESSAGE"))&lt;/PRE&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 02 Dec 2015 08:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217974#M13363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-02T08:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217975#M13364</link>
      <description>Hi, &lt;BR /&gt;Or you can use a tLogCatcher to capture&amp;nbsp; the exception and put it to a global variable or context variable for use later, and then send an email whenever an exception occurs. &lt;BR /&gt;For example:&lt;BR /&gt;tLogCatcher--main--tJavaRow&lt;BR /&gt;&amp;nbsp; &amp;nbsp; |&lt;BR /&gt;onsubjobok&lt;BR /&gt;&amp;nbsp; &amp;nbsp; |&lt;BR /&gt;tSendMail&lt;BR /&gt;on tJavaRow:&lt;BR /&gt;globalMap.put("errorMessage", input_row.message);&lt;BR /&gt;in the message field of tSendMail, get the exception message like:&lt;BR /&gt;"The exception is: "+((String)globalMap.get("errorMessage"))&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 02 Dec 2015 08:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217975#M13364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-02T08:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217976#M13365</link>
      <description>Hi,&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Does any Table exist with some preconfigured Arguments which is mentioned in your code Solution? &amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;All arguments come from tLogCatcher component (see schema). But no table exist with some preconfigured arguments to put in your message.&lt;BR /&gt;Arnaud</description>
      <pubDate>Wed, 02 Dec 2015 08:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217976#M13365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-02T08:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217977#M13366</link>
      <description>&amp;nbsp; 
&lt;BR /&gt;@Sabrina: 
&lt;BR /&gt;Sorry my coding Abilities and Understanding for it &amp;nbsp;are not as high as you might think. &amp;nbsp;; )&amp;nbsp; 
&lt;BR /&gt;1. Your Second Code as youve &amp;nbsp;recommend looks like this in the Subject Line&amp;nbsp;: &amp;nbsp;The exception is:null 
&lt;BR /&gt;2. So as far as I understood&amp;nbsp;... In your example &amp;nbsp;Solution i have to set an context variable to the component ( ex. tJavaRow) like this: 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCXw.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139264iA8FA8E8F0C841055/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCXw.png" alt="0683p000009MCXw.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I think it is similar with the method which Arnaud pointed out with th exception that the context still exist based on the schema &amp;nbsp;and your method needs an extra context variable .. or ?&amp;nbsp; 
&lt;BR /&gt;Edit: Some added Text for explaination&amp;nbsp; 
&lt;BR /&gt;regards john&amp;nbsp;</description>
      <pubDate>Wed, 02 Dec 2015 10:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217977#M13366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-02T10:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217978#M13367</link>
      <description>Don't get me wrong .. the solutions are quite enough and sufficient for us ...&lt;BR /&gt;Thanks for that...&lt;BR /&gt;Neverthless I just want to understand the 2cnd Solution from Sabrina.&lt;BR /&gt;regards john</description>
      <pubDate>Thu, 03 Dec 2015 07:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217978#M13367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-03T07:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsendmail give error arguments from job in message field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217979#M13368</link>
      <description>Hm seems that is a little bit difficult to understand .. what i wanted to know further&amp;nbsp;&lt;BR /&gt;But ... I think i can live very well with the solution from arnaud.&lt;BR /&gt;so thanks for helping guys &amp;nbsp;&lt;BR /&gt;regards john&amp;nbsp;</description>
      <pubDate>Mon, 07 Dec 2015 12:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsendmail-give-error-arguments-from-job-in-message/m-p/2217979#M13368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-07T12:25:51Z</dc:date>
    </item>
  </channel>
</rss>

