<?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: Error while Full Load (Cannot Insert Duplicate Key row in Object) in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1921929#M2462</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It is IBM DB2 for iSeries (AS400) to Azure SQL DB&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Edward&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 06:51:56 GMT</pubDate>
    <dc:creator>edward221096</dc:creator>
    <dc:date>2022-04-25T06:51:56Z</dc:date>
    <item>
      <title>Error while Full Load (Cannot Insert Duplicate Key row in Object)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1921876#M2460</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are encountering an error while doing a full load in one of our task (See attached screenshots)&lt;/P&gt;
&lt;P&gt;"Cannot insert duplicate key row in object &amp;lt;SchemaName.TableName&amp;gt; with Unique index &amp;lt;Fieldname&amp;gt; the duplicate key value is (xxxx, xxxxxxxxx)"&lt;/P&gt;
&lt;P&gt;We would like to know what should be the possible cause here and how can we resolve it?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 03:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1921876#M2460</guid>
      <dc:creator>edward221096</dc:creator>
      <dc:date>2022-04-25T03:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Full Load (Cannot Insert Duplicate Key row in Object)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1921925#M2461</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You&amp;nbsp; have not mentioned what are the endpoints that are involved in your task. However please refer to the following article as a start point:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Duplicate-Data-Troubleshooting-Guide/ta-p/1691698" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/Duplicate-Data-Troubleshooting-Guide/ta-p/1691698&lt;/A&gt;&lt;BR /&gt;If this does not help please open a case and send us also the task diagnostic package.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Orit&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 06:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1921925#M2461</guid>
      <dc:creator>OritA</dc:creator>
      <dc:date>2022-04-25T06:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Full Load (Cannot Insert Duplicate Key row in Object)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1921929#M2462</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It is IBM DB2 for iSeries (AS400) to Azure SQL DB&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Edward&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 06:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1921929#M2462</guid>
      <dc:creator>edward221096</dc:creator>
      <dc:date>2022-04-25T06:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Full Load (Cannot Insert Duplicate Key row in Object)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1922133#M2466</link>
      <description>&lt;P&gt;&amp;nbsp;First line in the article&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140377"&gt;@OritA&lt;/a&gt;&amp;nbsp;references, reads:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Some source database endpoints do not enforce uniqueness and you may be moving data to a target which enforces uniqueness."&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Since you mention&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Azure SQL DB as target DB, that's probably the reason although&amp;nbsp;the wording is somewhat sloppy.&amp;nbsp; For DB2 and Oracle and many more DB's primary keys are just raw data, case sensitive. The SQL Server family tries to 'help' simpleton users and defaults to case insensitive Primary keys. That makes "XX" a duplicate to "Xx".&amp;nbsp; You may need to re-create the target table with PK attributes:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="code sql"&gt;COLLATE Latin1_General_CS_AS&lt;/PRE&gt;
&lt;P&gt;This also means you cannot allow Replicate to drop and re-created, but must use Truncate for reload.&lt;/P&gt;
&lt;P&gt;Alternatively you may decide that differences in case in PK are in fact inconsistent source data and choose to fix that.&lt;/P&gt;
&lt;P&gt;Many topics on the interwebs discuss this. See for example:&amp;nbsp;&amp;nbsp;&lt;A href="https://www.sqlines.com/oracle/case_sensitivity_primary_key" target="_blank"&gt;https://www.sqlines.com/oracle/case_sensitivity_primary_key&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 13:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1922133#M2466</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-04-25T13:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Full Load (Cannot Insert Duplicate Key row in Object)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1962440#M3322</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thank you for the post to the QDI Forums. Since you are working with iSeries Source and there is no PK/Index you can always use the option to add the RRN as the PK when one it not defined on the Source for the Table and uniqueness. Check the Source Endpoint and the Advanced Tab for this RRN option. Keep in mind this can be used as long as the RRN on the iSeries Source are not reused as this will cause the same issue with the Duplicate PK.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bill_Steinagle_0-1659119189543.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85486i1B82D3A50A3CFC55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bill_Steinagle_0-1659119189543.png" alt="Bill_Steinagle_0-1659119189543.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Bill&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 18:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Error-while-Full-Load-Cannot-Insert-Duplicate-Key-row-in-Object/m-p/1962440#M3322</guid>
      <dc:creator>Bill_Steinagle</dc:creator>
      <dc:date>2022-07-29T18:26:46Z</dc:date>
    </item>
  </channel>
</rss>

