<?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: I have issue with duplicate key in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272067#M49447</link>
    <description>&lt;P&gt;1) is your ID column defined as serial? if this is the case you need not pass ID column while insert&lt;/P&gt;&lt;P&gt;if this doesnot work&lt;/P&gt;&lt;P&gt;2) if you need to provide ID value use advace setting , advance column . add you ID column detail here use nextval function to get next value of sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know if it solve your issue&lt;/P&gt;</description>
    <pubDate>Sun, 06 Jan 2019 09:23:42 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-01-06T09:23:42Z</dc:date>
    <item>
      <title>I have issue with duplicate key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272066#M49446</link>
      <description>&lt;P&gt;This is my tmap:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturetalend.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2E3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136505i960BDE3D3A69041F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2E3.png" alt="0683p000009M2E3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The error message I have:&lt;/P&gt; 
&lt;P&gt;Batch entry 0 INSERT INTO "aggr". "Bench_tarifr_opecotarif" ("id", "cip13", "product", "libelle", "date_deb", "end date", "price") VALUES (0, '3400936315341', ' NICOTINELL 2MG MINT GUM S / S 96 ',' 1 to 31 January 2018 ', 20180101,20180131,10.9) was aborted: ERROR: the value of a duplicate key breaks the unique constraint "bench_tarifr_opecotarif_pkey"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Detail: The key "(id) = (0)" already exists. Call getNextException to see other errors in the batch.&lt;BR /&gt;caused by: ERROR: The value of a duplicate key breaks the unique constraint "bench_tarifr_opecotarif_pkey"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Detail: The key "(id) = (0)" already exists.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the database I have a sequence for Id which is a primarykey.I already did truncate table.When I tried to insert ,I get the above error and no rows are inserted but when I do Insert/update,there is no error and just one line with Id 0 is inserted in the database table.I couldn't find the solution.If you need more details don't hesitate to contact me.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272066#M49446</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2019-01-04T16:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: I have issue with duplicate key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272067#M49447</link>
      <description>&lt;P&gt;1) is your ID column defined as serial? if this is the case you need not pass ID column while insert&lt;/P&gt;&lt;P&gt;if this doesnot work&lt;/P&gt;&lt;P&gt;2) if you need to provide ID value use advace setting , advance column . add you ID column detail here use nextval function to get next value of sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know if it solve your issue&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jan 2019 09:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272067#M49447</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-01-06T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: I have issue with duplicate key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272068#M49448</link>
      <description>&lt;P&gt;The Id&amp;nbsp; column is not serial i guess.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BDD.PNG" style="width: 701px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2A2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134086iA11DA15C9C95ADEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2A2.png" alt="0683p000009M2A2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BDDtable.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1re.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150106iE4E0E96CEFCE6346/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1re.png" alt="0683p000009M1re.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The advance setting ,advance column does it means that using the sequence in the&amp;nbsp; tmap .If it is like that I have already used the sequence on the tmp(you can see the screen capture in the first post).&lt;/P&gt; 
&lt;P&gt;I tried without selecting the key in the tmap,the same errors still comes when doing insert.The BDD is empty.&lt;/P&gt; 
&lt;P&gt;I did insert update ,only one line is inserting ,where the line has id 0 and It doesn't take other lines.&lt;/P&gt; 
&lt;P&gt;I don't know why.&lt;/P&gt; 
&lt;P&gt;Is there some other solutions you can propose me?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jan 2019 13:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272068#M49448</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2019-01-06T13:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: I have issue with duplicate key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272069#M49449</link>
      <description>Tmap sequence is different then db sequence.&lt;BR /&gt;&lt;BR /&gt;Use the sequence in advance col. sequence name is mentioned in table definition.&lt;BR /&gt;&lt;BR /&gt;Even then if it doesnot work , reset the db seq in database.</description>
      <pubDate>Sun, 06 Jan 2019 14:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272069#M49449</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-01-06T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: I have issue with duplicate key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272070#M49450</link>
      <description>&lt;P&gt;Thanks akumar!&lt;/P&gt; 
&lt;P&gt;I succeeded !The problem was the key.When I deleted the key on my target on the Talend,It worked.But its strange for me because I did another execution on another table by selecting the key ,It worked out,But here it didn't work.&lt;/P&gt; 
&lt;P&gt;So I understood that when the db is declared with the key and auto-increment sequence,I&amp;nbsp; should not aliment the key .&lt;/P&gt; 
&lt;P&gt;Thanks for your help!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 09:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-have-issue-with-duplicate-key/m-p/2272070#M49450</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2019-01-07T09:10:46Z</dc:date>
    </item>
  </channel>
</rss>

