<?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: [resolved] error not caught by tlogcatcher in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319002#M89294</link>
    <description>While tAssertCatcher is a component that may help you, your tStatCatcher original design should log correctly. I did a little test and am able to record a failure in tStatCatcher when tPostgreSQLrow dies. What version of Talend are you on? I am 5.1.2. 
&lt;BR /&gt;Job looks like: 
&lt;BR /&gt;tPostgresqlRow - with "die on error" selected and "junk" as the sql string. 
&lt;BR /&gt;tStatsCatcher -&amp;gt; tLogRow 
&lt;BR /&gt;I get logged: 
&lt;BR /&gt;2013-02-08 06:22:00|m57O3R|m57O3R|m57O3R|79768|SHARED|test_postgreSQL_greenplum_tRow_error_logging|_ynytIHH5EeKWibyrWOq48w|0.1|Default||end|failure|483 
&lt;BR /&gt;as you can see, failure is detected. 
&lt;BR /&gt;If I add 
&lt;BR /&gt;tLogCatcher -&amp;gt; tLogRow then I can see the error message: 
&lt;BR /&gt;2013-02-08 06:45:04|Nu6mP0|Nu6mP0|Nu6mP0|SHARED|test_postgreSQL_greenplum_tRow_error_logging|Default|6|Java Exception|tPostgresqlRow_1|org.postgresql.util.PSQLException:ERROR: syntax error at or near "junk"|1 
&lt;BR /&gt;I tried to attach an image of the job. 
&lt;BR /&gt;DO NOT try to link the tLogCatcher and tStatsCatcher to the tPostgresqlRow component. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDiw.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142016i274FDD056DB6EE6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDiw.jpg" alt="0683p000009MDiw.jpg" /&gt;&lt;/span&gt;</description>
    <pubDate>Fri, 08 Feb 2013 14:47:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-08T14:47:38Z</dc:date>
    <item>
      <title>[resolved] error not caught by tlogcatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2318998#M89290</link>
      <description>hello,&lt;BR /&gt;i have a job that looks similar like this:&lt;BR /&gt;tFileInputXML &amp;gt;&amp;gt; tFlowToIterate &amp;gt;&amp;gt; tPostgresqlRow&lt;BR /&gt;in postgres component, it's supposed to insert data to tables in the xml file. the problem now is when there's an error in tPostgresqlRow (say, table doesn't exist) it wont get logged in tLogCatcher unless i set 'Die on error' to true. this will cause the job to stop altogether. also, in tStatCatcher, the message for tPostgresqlRow for that failed insert is logged as success even though clearly in the console i can see there's failure (eg. table doesn't exist)&lt;BR /&gt;is there any way that i could have the error logged without halting the job completely? and have the correct error message in the tStatCatcher?&lt;BR /&gt;thanks&lt;BR /&gt;nuhaa</description>
      <pubDate>Thu, 07 Feb 2013 07:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2318998#M89290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-07T07:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] error not caught by tlogcatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2318999#M89291</link>
      <description>You can use tAssertCatcher to handle Die events.  You job will not stop, but your xml -&amp;gt; postgreSQL subjob will stop.  After the tAssertCatcher you can do whatever you like.   For example, you may be able to make your xml-&amp;gt;postgreSQL process fix itself and continue, or log the error if the error message is available.  In my studio the error message is available via:&lt;BR /&gt;((String)globalMap.get("tPostgresqlRow_ERROR_MESSAGE"))&lt;BR /&gt;as you can see in the outline view.</description>
      <pubDate>Thu, 07 Feb 2013 15:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2318999#M89291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-07T15:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] error not caught by tlogcatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319000#M89292</link>
      <description>hey thanks alot for that guide! 
&lt;BR /&gt;i've been trying to do it like what you have described but i keep getting this error: 
&lt;BR /&gt;"If this component has output, there must be an input link to propagate the data." 
&lt;BR /&gt;my job looks like this now: 
&lt;BR /&gt;tFileInputXML &amp;gt;--main--&amp;gt; tFlowToIterate &amp;gt;--iterate--&amp;gt; tPostgresqlRow &amp;gt;--oncomponenterror--&amp;gt; tAssert &amp;gt;--main--&amp;gt; tLogRow 
&lt;BR /&gt;if i change it to 
&lt;BR /&gt;tFileInputXML &amp;gt;--main--&amp;gt; tFlowToIterate &amp;gt;--iterate--&amp;gt; tPostgresqlRow 
&lt;FONT color="#FF0000"&gt;&amp;gt;--main--&amp;gt;&lt;/FONT&gt; tAssert &amp;gt;--main--&amp;gt; tLogRow 
&lt;BR /&gt;there's nothing on the console. 
&lt;BR /&gt;the expression i use for tAssert is: 
&lt;BR /&gt;((String)globalMap.get("tPostgresqlRow_2_ERROR_MESSAGE"))=='' 
&lt;BR /&gt;it's noted that the variable is available 'After', i think that's the reason why nothing comes out on console. but then what should i use for assertion? 
&lt;BR /&gt;the only example i've found on tAssert is on file comparison so i'm kind of lost here. 
&lt;BR /&gt;thanks in advance for any help</description>
      <pubDate>Fri, 08 Feb 2013 08:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319000#M89292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T08:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] error not caught by tlogcatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319001#M89293</link>
      <description>Hi, 
&lt;BR /&gt;Use tAssert only to notify the tAssertCatcher component about the error. 
&lt;BR /&gt;Let the tAssertCatcher component catch the error details. 
&lt;BR /&gt;I have attached the image of how you can use tAssert and tAssertCatcher in your case to get the desired result. 
&lt;BR /&gt;The pseudo code will look as below: 
&lt;BR /&gt;tFileInputXML &amp;gt;--main--&amp;gt; tFlowToIterate &amp;gt;--iterate--&amp;gt; tPostgresqlRow &amp;gt;--oncomponenterror--&amp;gt; tAssert --&amp;gt; oncomponentok --&amp;gt; Subsequent Codes 
&lt;BR /&gt;tAssertCatcher --&amp;gt; tLogCatcher / any other component 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD2x.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128583iED8EFDBDB3E308CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD2x.jpg" alt="0683p000009MD2x.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 08 Feb 2013 11:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319001#M89293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T11:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] error not caught by tlogcatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319002#M89294</link>
      <description>While tAssertCatcher is a component that may help you, your tStatCatcher original design should log correctly. I did a little test and am able to record a failure in tStatCatcher when tPostgreSQLrow dies. What version of Talend are you on? I am 5.1.2. 
&lt;BR /&gt;Job looks like: 
&lt;BR /&gt;tPostgresqlRow - with "die on error" selected and "junk" as the sql string. 
&lt;BR /&gt;tStatsCatcher -&amp;gt; tLogRow 
&lt;BR /&gt;I get logged: 
&lt;BR /&gt;2013-02-08 06:22:00|m57O3R|m57O3R|m57O3R|79768|SHARED|test_postgreSQL_greenplum_tRow_error_logging|_ynytIHH5EeKWibyrWOq48w|0.1|Default||end|failure|483 
&lt;BR /&gt;as you can see, failure is detected. 
&lt;BR /&gt;If I add 
&lt;BR /&gt;tLogCatcher -&amp;gt; tLogRow then I can see the error message: 
&lt;BR /&gt;2013-02-08 06:45:04|Nu6mP0|Nu6mP0|Nu6mP0|SHARED|test_postgreSQL_greenplum_tRow_error_logging|Default|6|Java Exception|tPostgresqlRow_1|org.postgresql.util.PSQLException:ERROR: syntax error at or near "junk"|1 
&lt;BR /&gt;I tried to attach an image of the job. 
&lt;BR /&gt;DO NOT try to link the tLogCatcher and tStatsCatcher to the tPostgresqlRow component. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDiw.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142016i274FDD056DB6EE6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDiw.jpg" alt="0683p000009MDiw.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 08 Feb 2013 14:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319002#M89294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T14:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] error not caught by tlogcatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319003#M89295</link>
      <description>hello 
&lt;BR /&gt;the ones you mentioned are working (error is logged). but in all of them i have to select 
&lt;FONT color="blue"&gt;"Die on error"&lt;/FONT&gt; to get the error logged in tStatCatcher. and having that selected, the job will die in the middle of iteration. 
&lt;BR /&gt;i'd like for it to recognize the error, log it and move on with the next one. i'm still looking for a way to do this. 
&lt;BR /&gt;any help is much appreciated 
&lt;BR /&gt;thanks 
&lt;BR /&gt;nuhaa 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDmn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153887iD554391014A840EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDmn.png" alt="0683p000009MDmn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDbv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142684i9866BA92FE1DA06B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDbv.png" alt="0683p000009MDbv.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDVy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140138iDE472B5C35F9F886/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDVy.png" alt="0683p000009MDVy.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 21 Mar 2013 08:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319003#M89295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-21T08:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] error not caught by tlogcatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319004#M89296</link>
      <description>my colleague got this working. using tRunJob seems to work! 
&lt;BR /&gt;split the job to parent job and child job. in the parent job, for tRunJob, unselect "Die on child error". in the child job, for tPostgresqlRow_1, select "Die on error". 
&lt;BR /&gt;i have 2 items in the loop. first contains syntax error, the next one is ok. 
&lt;BR /&gt;as you can see in the log, the first iteration fails and it will still proceed to process the next item, which now is a success. the whole job is considered as a success at the end, which is fine coz the status for each item in iteration is more important to me. 
&lt;BR /&gt;i hope this helps someone 
&lt;BR /&gt;nuhaa 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCFq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134402iCDCBD09F941DAE6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCFq.png" alt="0683p000009MCFq.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDbd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145041i1728213A3CC638D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDbd.png" alt="0683p000009MDbd.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDdD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138016i2E7D8D69439CB7C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDdD.png" alt="0683p000009MDdD.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 21 Mar 2013 10:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-error-not-caught-by-tlogcatcher/m-p/2319004#M89296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-21T10:26:26Z</dc:date>
    </item>
  </channel>
</rss>

