<?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: Best Approaches to Avoid Duplicates When Using Copy Activity to Load Data into an Existing Table in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Best-Approaches-to-Avoid-Duplicates-When-Using-Copy-Activity-to/m-p/4269355#M6221</link>
    <description>&lt;P&gt;Thanks for sharing.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2024 15:31:26 GMT</pubDate>
    <dc:creator>HamidBee</dc:creator>
    <dc:date>2024-11-04T15:31:26Z</dc:date>
    <item>
      <title>Best Approaches to Avoid Duplicates When Using Copy Activity to Load Data into an Existing Table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Best-Approaches-to-Avoid-Duplicates-When-Using-Copy-Activity-to/m-p/4268026#M6197</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the Copy Activity in Microsoft Fabric to load data into an existing table, but I’m concerned about the risk of duplicate entries. For example, if the copy operation is interrupted and restarted, or if I unintentionally include data from previous periods, it could lead to duplicate records in my target table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are some recommended settings or strategies to ensure only unique records are loaded, even when there’s a chance of re-running the data or having overlapping entries from a prior load? Any insights on best practices for managing this kind of scenario would be really helpful.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 12:47:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Best-Approaches-to-Avoid-Duplicates-When-Using-Copy-Activity-to/m-p/4268026#M6197</guid>
      <dc:creator>HamidBee</dc:creator>
      <dc:date>2024-11-03T12:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Best Approaches to Avoid Duplicates When Using Copy Activity to Load Data into an Existing Table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Best-Approaches-to-Avoid-Duplicates-When-Using-Copy-Activity-to/m-p/4268322#M6202</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="344683" data-lia-user-login="HamidBee" class="lia-mention lia-mention-user"&gt;HamidBee&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here are some of my personal thoughts on your question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;In Microsoft Fabric, you can configure the Copy Activity to perform upserts by using the Mapping Data Flow feature. Upsert combines the insert and update operations. It checks if a record already exists in the target table based on a unique key. If it exists, it updates the record; if not, it inserts a new one.&lt;/P&gt;
&lt;P&gt;You can look at this document below:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/guide-to-dataflows-for-mapping-data-flow-users" target="_blank"&gt;A guide to Fabric Dataflows for Azure Data Factory Mapping Data Flow users - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Implement an incremental load strategy where only new or changed records are loaded. This can be achieved by maintaining a watermark or timestamp column to track the last loaded record.&lt;/P&gt;
&lt;P&gt;I think you can take a look about this document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/tutorial-setup-incremental-refresh-with-dataflows-gen2" target="_blank"&gt;Pattern to incrementally amass data with Dataflow Gen2 - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 02:05:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Best-Approaches-to-Avoid-Duplicates-When-Using-Copy-Activity-to/m-p/4268322#M6202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-04T02:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Best Approaches to Avoid Duplicates When Using Copy Activity to Load Data into an Existing Table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Best-Approaches-to-Avoid-Duplicates-When-Using-Copy-Activity-to/m-p/4269355#M6221</link>
      <description>&lt;P&gt;Thanks for sharing.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 15:31:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Best-Approaches-to-Avoid-Duplicates-When-Using-Copy-Activity-to/m-p/4269355#M6221</guid>
      <dc:creator>HamidBee</dc:creator>
      <dc:date>2024-11-04T15:31:26Z</dc:date>
    </item>
  </channel>
</rss>

