<?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: Qlik Replicate - Using UPSERT mode when writing to Snowflake in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444109#M10745</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/144275"&gt;@NakulanR&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;UPSERT error handling policy and the use of SQL MERGE, effectively manages the prevention of duplicate records being written to Snowflake, even in the absence of primary key enforcement by Snowflake.&lt;BR /&gt;&lt;BR /&gt;When an UPSERT policy is in place, Replicate attempts to insert new records into the Snowflake target. If a record with the same primary key already exists, Replicate will update the existing record instead of inserting a new one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;BR /&gt;Naren&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 00:25:09 GMT</pubDate>
    <dc:creator>narendersarva</dc:creator>
    <dc:date>2024-04-24T00:25:09Z</dc:date>
    <item>
      <title>Qlik Replicate - Using UPSERT mode when writing to Snowflake</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444108#M10744</link>
      <description>&lt;P&gt;Hi Qlik Support,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When using an UPSERT error handling policy (as a result of enabling the "Apply changes using SQL MERGE" option) in a Replicate task which writes to Snowflake, is Replicate able to correctly prevent duplicate records from being written to the Snowflake target even though Snowflake is known to not enforce the uniqueness of primary keys.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies if this question has already been addressed in a different community post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nak&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 00:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444108#M10744</guid>
      <dc:creator>NakulanR</dc:creator>
      <dc:date>2024-04-24T00:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate - Using UPSERT mode when writing to Snowflake</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444109#M10745</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/144275"&gt;@NakulanR&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;UPSERT error handling policy and the use of SQL MERGE, effectively manages the prevention of duplicate records being written to Snowflake, even in the absence of primary key enforcement by Snowflake.&lt;BR /&gt;&lt;BR /&gt;When an UPSERT policy is in place, Replicate attempts to insert new records into the Snowflake target. If a record with the same primary key already exists, Replicate will update the existing record instead of inserting a new one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;BR /&gt;Naren&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 00:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444109#M10745</guid>
      <dc:creator>narendersarva</dc:creator>
      <dc:date>2024-04-24T00:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate - Using UPSERT mode when writing to Snowflake</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444111#M10746</link>
      <description>&lt;P&gt;Hi Naren,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the prompt response. Appreciate your helpful feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nak&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 00:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444111#M10746</guid>
      <dc:creator>NakulanR</dc:creator>
      <dc:date>2024-04-24T00:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate - Using UPSERT mode when writing to Snowflake</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444112#M10747</link>
      <description>&lt;P&gt;You are welcome&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/144275"&gt;@NakulanR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Naren&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 00:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444112#M10747</guid>
      <dc:creator>narendersarva</dc:creator>
      <dc:date>2024-04-24T00:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate - Using UPSERT mode when writing to Snowflake</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444138#M10748</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/144275"&gt;@NakulanR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;When "Apply changes using SQL MERGE" option is enabled, the Apply Conflicts Handling Policy is not available. All apply conflicts options will be grey out.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 04:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444138#M10748</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-04-24T04:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate - Using UPSERT mode when writing to Snowflake</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444396#M10759</link>
      <description>&lt;P&gt;As per&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp;, once Snowflake SQL Merger is activated Replicate is no longer involved in the duplicate/missing target row handling. You'll have to carefully study the Snowflake documentation to understand the behaviour.... or just try!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164978"&gt;@narendersarva&lt;/a&gt;&amp;nbsp;@&amp;nbsp; &amp;gt;&amp;gt; &lt;EM&gt;When an UPSERT policy is in place, Replicate attempts to insert new records into the Snowflake target. If a record with the same primary key already exists, Replicate will update the existing record instead of inserting a new one.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This is NOT correct when using Replicate Error handling (as opposed to Snowflake SQL Merge).&lt;/P&gt;
&lt;P&gt;When Replicate exception handling is set to 'update if target exists' Replicate does NO attempt to check for duplicates. It blindly pre-deletes any rows in the batch it is about to insert - ignoring failed deletes, and proceeds to blindly inserts that batch.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar for exception handling 'insert when target not found' - just pre-delete the batch, and (re)insert.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 03:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Using-UPSERT-mode-when-writing-to-Snowflake/m-p/2444396#M10759</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-04-25T03:36:55Z</dc:date>
    </item>
  </channel>
</rss>

