<?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 tPostgresqlOutput + Batch nested Exception in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tPostgresqlOutput-Batch-nested-Exception/m-p/2319861#M90060</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;We have a job that fails intermittantly; we're unable to find any specific cause. In the output logs for the job we see something similiar to:&lt;/P&gt; 
&lt;PRE&gt;Exception in component tPostgresqlOutput_11&lt;BR /&gt;&amp;nbsp; java.sql.BatchUpdateException: Batch entry 4,351 INSERT INTO "mytable" ("column1","column2") VALUES ('value1','value2') was aborted.&lt;BR /&gt;&amp;nbsp; Call getNextException to see the cause.&lt;BR /&gt;&amp;nbsp; at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2762)&lt;BR /&gt;&amp;nbsp; at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:428)&lt;BR /&gt;&amp;nbsp; at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2929)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.tFileList_2Process(ImportToPostgres.java:12538)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.tFixedFlowInput_1Process(ImportToPostgres.java:1901)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.tMSSqlInput_1Process(ImportToPostgres.java:1497)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.runJobInTOS(ImportToPostgres.java:15458)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.runJob(ImportToPostgres.java:15258)&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;Normally in situations like this I would reproduce the error in TOS and disable the batch mode to see the error. Unfortunately this error seems to only happen when it's live and we can't disable batch mode because it takes far too long to run then. Is there a way to log out the nested exception/call getNextException on errors like this so we can dump it into the log output?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rob&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 09:05:52 GMT</pubDate>
    <dc:creator>re_weavers</dc:creator>
    <dc:date>2016-08-11T09:05:52Z</dc:date>
    <item>
      <title>tPostgresqlOutput + Batch nested Exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tPostgresqlOutput-Batch-nested-Exception/m-p/2319861#M90060</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;We have a job that fails intermittantly; we're unable to find any specific cause. In the output logs for the job we see something similiar to:&lt;/P&gt; 
&lt;PRE&gt;Exception in component tPostgresqlOutput_11&lt;BR /&gt;&amp;nbsp; java.sql.BatchUpdateException: Batch entry 4,351 INSERT INTO "mytable" ("column1","column2") VALUES ('value1','value2') was aborted.&lt;BR /&gt;&amp;nbsp; Call getNextException to see the cause.&lt;BR /&gt;&amp;nbsp; at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2762)&lt;BR /&gt;&amp;nbsp; at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:428)&lt;BR /&gt;&amp;nbsp; at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2929)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.tFileList_2Process(ImportToPostgres.java:12538)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.tFixedFlowInput_1Process(ImportToPostgres.java:1901)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.tMSSqlInput_1Process(ImportToPostgres.java:1497)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.runJobInTOS(ImportToPostgres.java:15458)&lt;BR /&gt;&amp;nbsp; at imports.importtopostgres_0_1.ImportToPostgres.runJob(ImportToPostgres.java:15258)&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;Normally in situations like this I would reproduce the error in TOS and disable the batch mode to see the error. Unfortunately this error seems to only happen when it's live and we can't disable batch mode because it takes far too long to run then. Is there a way to log out the nested exception/call getNextException on errors like this so we can dump it into the log output?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rob&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 09:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tPostgresqlOutput-Batch-nested-Exception/m-p/2319861#M90060</guid>
      <dc:creator>re_weavers</dc:creator>
      <dc:date>2016-08-11T09:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: tPostgresqlOutput + Batch nested Exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tPostgresqlOutput-Batch-nested-Exception/m-p/2319862#M90061</link>
      <description>Hi,
&lt;BR /&gt;Could you please indicate the build version you are using?&amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Can you upload some screenshots of job? Could you please&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;&amp;nbsp;checkout &amp;nbsp;the box 'die on error' on tPostgresOutput component to see if there is any more error message printed on console?&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 12 Aug 2016 08:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tPostgresqlOutput-Batch-nested-Exception/m-p/2319862#M90061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T08:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: tPostgresqlOutput + Batch nested Exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tPostgresqlOutput-Batch-nested-Exception/m-p/2319863#M90062</link>
      <description>Hiya,
&lt;BR /&gt;
&lt;BR /&gt;The build is version 6.1.1.20151214; we've noticed this as a slight issue since version 5.
&lt;BR /&gt;The screenshot is here:
&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFbh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128781iCF6614FC535FE996/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFbh.png" alt="0683p000009MFbh.png" /&gt;&lt;/span&gt;
&lt;BR /&gt;
&lt;BR /&gt;It's a reasonably long running transaction
&lt;BR /&gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Rob</description>
      <pubDate>Fri, 12 Aug 2016 08:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tPostgresqlOutput-Batch-nested-Exception/m-p/2319863#M90062</guid>
      <dc:creator>re_weavers</dc:creator>
      <dc:date>2016-08-12T08:42:35Z</dc:date>
    </item>
  </channel>
</rss>

