<?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 delete and than insert data in vertica database table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/delete-and-than-insert-data-in-vertica-database-table/m-p/2276301#M52432</link>
    <description>hi 
&lt;BR /&gt; 
&lt;BR /&gt;the job reads data from file and then deletes data from table XYZ with msisdn as key and then inserts the data into same table XYZ with msisdn as key 
&lt;BR /&gt;tfileinputdelimited----&amp;gt;main---&amp;gt;tverticaoutput(delete)-------&amp;gt;main------&amp;gt;tverticaoutput(insert) 
&lt;BR /&gt;the job is working fine for 200 rows and then getting following error: 
&lt;BR /&gt;Exception in component tVerticaOutput_3 
&lt;BR /&gt;java.sql.SQLException: (5156) ERROR: Unavailable: initiator locks for query - Locking failure: Timed out I locking Table 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;ublic.AKKI_TEST. X held by . Your current transaction isolation level is SERIALIZABLE 
&lt;BR /&gt; at com.vertica.util.ServerErrorData.buildException(Unknown Source) 
&lt;BR /&gt; at com.vertica.dataengine.VQueryExecutor.readCopyStartResponse(Unknown Source) 
&lt;BR /&gt; at com.vertica.dataengine.VQueryExecutor.handleExecuteResponse(Unknown Source) 
&lt;BR /&gt; at com.vertica.dataengine.VQueryExecutor.execute(Unknown Source) 
&lt;BR /&gt; at com.vertica.jdbc.SPreparedStatement.executeBatch(Unknown Source) 
&lt;BR /&gt; at master_project.ip_bill_kpi_delete_0_1.IP_Bill_KPI_DELETE.tWaitForFile_3Process(IP_Bill_KPI_DELETE.java:50733) 
&lt;BR /&gt; at master_project.ip_bill_kpi_delete_0_1.IP_Bill_KPI_DELETE$7.run(IP_Bill_KPI_DELETE.java:51266) 
&lt;BR /&gt;Caused by: com.vertica.util.ServerException: (5156) ERROR: Unavailable: initiator locks for query - Locking failure: Timed out I locking Table 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;ublic.AKKI_TEST. X held by . Your current transaction isolation level is SERIALIZABLE 
&lt;BR /&gt; ... 7 more</description>
    <pubDate>Thu, 28 Nov 2013 06:26:03 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-11-28T06:26:03Z</dc:date>
    <item>
      <title>delete and than insert data in vertica database table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-and-than-insert-data-in-vertica-database-table/m-p/2276301#M52432</link>
      <description>hi 
&lt;BR /&gt; 
&lt;BR /&gt;the job reads data from file and then deletes data from table XYZ with msisdn as key and then inserts the data into same table XYZ with msisdn as key 
&lt;BR /&gt;tfileinputdelimited----&amp;gt;main---&amp;gt;tverticaoutput(delete)-------&amp;gt;main------&amp;gt;tverticaoutput(insert) 
&lt;BR /&gt;the job is working fine for 200 rows and then getting following error: 
&lt;BR /&gt;Exception in component tVerticaOutput_3 
&lt;BR /&gt;java.sql.SQLException: (5156) ERROR: Unavailable: initiator locks for query - Locking failure: Timed out I locking Table 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;ublic.AKKI_TEST. X held by . Your current transaction isolation level is SERIALIZABLE 
&lt;BR /&gt; at com.vertica.util.ServerErrorData.buildException(Unknown Source) 
&lt;BR /&gt; at com.vertica.dataengine.VQueryExecutor.readCopyStartResponse(Unknown Source) 
&lt;BR /&gt; at com.vertica.dataengine.VQueryExecutor.handleExecuteResponse(Unknown Source) 
&lt;BR /&gt; at com.vertica.dataengine.VQueryExecutor.execute(Unknown Source) 
&lt;BR /&gt; at com.vertica.jdbc.SPreparedStatement.executeBatch(Unknown Source) 
&lt;BR /&gt; at master_project.ip_bill_kpi_delete_0_1.IP_Bill_KPI_DELETE.tWaitForFile_3Process(IP_Bill_KPI_DELETE.java:50733) 
&lt;BR /&gt; at master_project.ip_bill_kpi_delete_0_1.IP_Bill_KPI_DELETE$7.run(IP_Bill_KPI_DELETE.java:51266) 
&lt;BR /&gt;Caused by: com.vertica.util.ServerException: (5156) ERROR: Unavailable: initiator locks for query - Locking failure: Timed out I locking Table 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;ublic.AKKI_TEST. X held by . Your current transaction isolation level is SERIALIZABLE 
&lt;BR /&gt; ... 7 more</description>
      <pubDate>Thu, 28 Nov 2013 06:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-and-than-insert-data-in-vertica-database-table/m-p/2276301#M52432</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-11-28T06:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: delete and than insert data in vertica database table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-and-than-insert-data-in-vertica-database-table/m-p/2276302#M52433</link>
      <description>This is a bad design for a column based database like vertica.
&lt;BR /&gt;I suggest keep all data for the insert into a file and insert them in a new subjob and not in the same flow.
&lt;BR /&gt;Column based database like Vertica does not work well if you trying delete or insert dataset one by one. Vertica should always be filled with batch mode and if you delete and insert into the same table similar this causes problems.</description>
      <pubDate>Thu, 28 Nov 2013 22:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-and-than-insert-data-in-vertica-database-table/m-p/2276302#M52433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-28T22:55:04Z</dc:date>
    </item>
  </channel>
</rss>

