<?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: Dynamically populate context variable with Component Error Message in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamically-populate-context-variable-with-Component-Error/m-p/2228676#M19862</link>
    <description>&lt;P&gt;Hi !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure of it but if I remember well you should be able to get it with one of the column of tLogCatcher, filtering on errors only !&lt;/P&gt;
&lt;P&gt;Put the whole mailing things in a postJob component and it should do the trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides, checking on every component is very very heavy, I hope it's for a good reason. Try to use joblet if you can. It will make it clearer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2019 18:53:30 GMT</pubDate>
    <dc:creator>rmartin2</dc:creator>
    <dc:date>2019-12-30T18:53:30Z</dc:date>
    <item>
      <title>Dynamically populate context variable with Component Error Message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamically-populate-context-variable-with-Component-Error/m-p/2228673#M19859</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Up until now, I used to connect an tSendMail to every component in order to notify the user in case of error in the corresponding component.&lt;/P&gt; 
&lt;P&gt;In an effort to simplify my job and make it more elegant, I'm trying to understand how can I catch the error dynamically into a context variable and put it inside one tSendMail.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm not sure what code to put inside the tJava...or if even the design is correct...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;appreciate your help&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 582px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Q4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147936i257B55FC5C0E949F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Q4.png" alt="0683p000009M8Q4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamically-populate-context-variable-with-Component-Error/m-p/2228673#M19859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-23T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populate context variable with Component Error Message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamically-populate-context-variable-with-Component-Error/m-p/2228674#M19860</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can pass error message to context value through tjavarow component and then send them by tsendmail with connection type of&amp;nbsp; "OnsubjobError".&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 03:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamically-populate-context-variable-with-Component-Error/m-p/2228674#M19860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-26T03:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populate context variable with Component Error Message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamically-populate-context-variable-with-Component-Error/m-p/2228675#M19861</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/00539000004XsaeAAC"&gt;@xdshi&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hello,&lt;/P&gt; 
 &lt;P&gt;You can pass error message to context value through tjavarow component and then send them by tsendmail with connection type of&amp;nbsp; "OnsubjobError".&lt;/P&gt; 
 &lt;P&gt;Best regards&lt;BR /&gt;Sabrina&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Thanks Sabrina,&lt;/P&gt; 
&lt;P&gt;I didn't quite understand - is it possible for you to add a screenshot or description on how to connect the components?&lt;BR /&gt;essentially error can come in any of the component so I'd like to context to be populated dynamically with the respective error of the component who made the error.&lt;BR /&gt;can i use one variable let's say: "context.ComponentError" and populate it dynamically? or should I create context for each one of the components participating in the job?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 17:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamically-populate-context-variable-with-Component-Error/m-p/2228675#M19861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-30T17:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populate context variable with Component Error Message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamically-populate-context-variable-with-Component-Error/m-p/2228676#M19862</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure of it but if I remember well you should be able to get it with one of the column of tLogCatcher, filtering on errors only !&lt;/P&gt;
&lt;P&gt;Put the whole mailing things in a postJob component and it should do the trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides, checking on every component is very very heavy, I hope it's for a good reason. Try to use joblet if you can. It will make it clearer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 18:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamically-populate-context-variable-with-Component-Error/m-p/2228676#M19862</guid>
      <dc:creator>rmartin2</dc:creator>
      <dc:date>2019-12-30T18:53:30Z</dc:date>
    </item>
  </channel>
</rss>

