<?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: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component? in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4271043#M6261</link>
    <description>&lt;P&gt;How often does new data enter the source table (on the SQL server)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. once per day, once per hour, once per minute?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you get a different row count if you run the same query from SSMS or Data Pipeline (ref. number of rows read in the copy data details)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that the copy activity takes 13 hours. I don't have a lot of experience with Data Pipeline. Is 13 hours a normal duration? I think it sounds long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know much about NOLOCK, which is used in the query. Could it be causing issues in a long running pipeline?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2024 16:55:16 GMT</pubDate>
    <dc:creator>frithjof_v</dc:creator>
    <dc:date>2024-11-05T16:55:16Z</dc:date>
    <item>
      <title>How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4265179#M6147</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm experiencing an issue with &lt;STRONG&gt;duplicate records&lt;/STRONG&gt; when performing a &lt;STRONG&gt;Copy Data&lt;/STRONG&gt; operation from an &lt;STRONG&gt;on-premise MSSQL database&lt;/STRONG&gt; to my &lt;STRONG&gt;lakehouse&lt;/STRONG&gt; in Microsoft Fabric.&lt;/P&gt;&lt;H3&gt;Configuration details:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;On-premise data gateway version&lt;/STRONG&gt;: 3000.230.15 (July 2024).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Dynamic setup&lt;/STRONG&gt;: The Copy Data component is configured with dynamic parameters, including an SQL query that selects data and adds a timestamp column for ingestion:&lt;DIV class=""&gt;&lt;DIV class=""&gt;sql&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Copia codice&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class=""&gt;*&lt;/SPAN&gt;, getdate() &lt;SPAN class=""&gt;as&lt;/SPAN&gt; edp_dat_ingestion &lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; dbo.TABLE gc &lt;SPAN class=""&gt;WITH&lt;/SPAN&gt; (NOLOCK) &lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt; FIELD_DAT &lt;SPAN class=""&gt;&amp;gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'2009-12-31 23:59:59'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt;: Although the original source table has no duplicates, records become duplicated in the &lt;STRONG&gt;Delta Table&lt;/STRONG&gt; within the lakehouse destination. Additionally, the source table contains records with NULL values in the FIELD_DAT field used in the WHERE clause.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've attached an image of the Copy Data component configuration for clarity.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Has anyone encountered a similar issue or have suggestions on how to prevent record duplication?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 08:07:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4265179#M6147</guid>
      <dc:creator>bin_curato</dc:creator>
      <dc:date>2024-10-31T08:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4266064#M6159</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do the duplicate records have the same timestamp (&lt;SPAN&gt;edp_dat_ingestion)? If yes, something very strange is going on. If they are different (or one is null) can it be, that you initially loaded and afterwards added the&amp;nbsp;edp_dat_ingestion column?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Oktay&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Did I answer your question? Then please mark my post as the solution.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;If I helped you, click on the Thumbs Up to give Kudos.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 20:21:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4266064#M6159</guid>
      <dc:creator>OktayPamuk80</dc:creator>
      <dc:date>2024-10-31T20:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4266080#M6160</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;OktayPamuk80,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the records are exactly identical, so&amp;nbsp;I do not find an answer to my problem. I think the problem is caused by the "Copy data" component, but I would like to know if it has happened to others. My source table contains more than 74 million records, but this does not justify what happens.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 20:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4266080#M6160</guid>
      <dc:creator>bin_curato</dc:creator>
      <dc:date>2024-10-31T20:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4266090#M6161</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you check one of the duplicates in your source?&lt;/P&gt;&lt;P&gt;Did you recreate the table and the copy activity?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Oktay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Did I answer your question? Then please mark my post as the solution.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;If I helped you, click on the Thumbs Up to give Kudos.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 20:39:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4266090#M6161</guid>
      <dc:creator>OktayPamuk80</dc:creator>
      <dc:date>2024-10-31T20:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4266107#M6162</link>
      <description>&lt;P&gt;Hi, in my source I have no duplicate. my pipeline is part of an ingestion flow of more than 200 tables and I have not encountered similar issues in other tables. I also tried to run my pipeline passing parameters manually, but the problem remains.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 20:58:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4266107#M6162</guid>
      <dc:creator>bin_curato</dc:creator>
      <dc:date>2024-10-31T20:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4267379#M6181</link>
      <description>&lt;P&gt;I know I ask "stupud" questions, but can it be, that you are ingesting the same table twice? If your parameter includes same table 2 times in your list (or check the iteration if you have that, if the same table gets iterated twice)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 20:17:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4267379#M6181</guid>
      <dc:creator>OktayPamuk80</dc:creator>
      <dc:date>2024-11-01T20:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4267382#M6182</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;all questions are welcome, because they can make you think to arrive at a solution. there are no iterations once the select is passed to the component. i also tried the sub pipeline to be sure.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 20:21:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4267382#M6182</guid>
      <dc:creator>bin_curato</dc:creator>
      <dc:date>2024-11-01T20:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4267925#M6189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="737866" data-lia-user-login="bin_curato" class="lia-mention lia-mention-user"&gt;bin_curato&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you check the monitoring of the specific pipeline run to see how many times it has ran and how many records it read from source table and how many it has transferred.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also Enable logging and check the root cause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please have a look at this thread, it is similar to this issue&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Pipeline/On-Prem-Copy-Data-in-Data-Pipeline-Appending-instead-of/m-p/4256400#M6045" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Data-Pipeline/On-Prem-Copy-Data-in-Data-Pipeline-Appending-instead-of/m-p/4256400#M6045&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srisakthi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 06:51:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4267925#M6189</guid>
      <dc:creator>Srisakthi</dc:creator>
      <dc:date>2024-11-03T06:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4268831#M6209</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;/FONT&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782160" data-lia-user-login="Srisakthi" class="lia-mention lia-mention-user"&gt;Srisakthi&lt;/a&gt;&lt;FONT&gt;&amp;nbsp;,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I am confident that my pipeline is only executed once. The number of duplicated records is not equivalent to the number of records extracted from your generating table.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;To enable the logs you mean enabling in the setting of the "Copy data" component?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 08:48:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4268831#M6209</guid>
      <dc:creator>bin_curato</dc:creator>
      <dc:date>2024-11-04T08:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4268869#M6210</link>
      <description>&lt;P&gt;I'm curious, in the Table action, why is Append being used instead of Overwrite?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the intention to append the data, or overwrite the data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SQL query returns all data on or after 2009-12-31 23:59:59 each time the pipeline gets run. So if you are using Append, you will accumulate duplicate records if you run the pipeline multiple times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the edp_dat_ingestion (GETDATE()) column should be unique every time you run the pipeline. So, that column will mean that your records should not be truly duplicates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tbh I don't have so much SQL experience. I see you are using a NOLOCK hint. I don't have experience with it, but could that be a reason for getting duplicates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Additionally, the source table contains records with NULL values in the FIELD_DAT field used in the WHERE clause"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do the rows with NULL values also get ingested to your destination? If yes, that sounds strange, based on the SQL query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could check the delta table version history of your destination table inside Fabric. This way, you could check if it has been written to multiple times.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use a notebook with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%%sql DESCRIBE HISTORY tableName;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from delta.tables import *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;deltaTable = DeltaTable.forPath(spark, pathToTable)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fullHistoryDF = deltaTable.history() # get the full history of the table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to see all the versions of a table.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 09:49:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4268869#M6210</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-11-04T09:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4268885#M6212</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437984" data-lia-user-login="frithjof_v" class="lia-mention lia-mention-user"&gt;frithjof_v&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;use append because before importing data from my sources, I create the table with the data type that I need, if I use overwrite the component creates the table again but the data types are not correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem seems to actually read some extra records on the source that are then written on the lakehouse.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 09:20:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4268885#M6212</guid>
      <dc:creator>bin_curato</dc:creator>
      <dc:date>2024-11-04T09:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4268903#M6213</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="737866" data-lia-user-login="bin_curato" class="lia-mention lia-mention-user"&gt;bin_curato&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah enable logging so that we can see the files transferred, based on that we could find where it went wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srisakthi&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 09:32:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4268903#M6213</guid>
      <dc:creator>Srisakthi</dc:creator>
      <dc:date>2024-11-04T09:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4269013#M6215</link>
      <description>&lt;P&gt;I see. Sounds strange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would double check by checking the version history of the table, ref. my previous comment. Just to see if something looks strange there as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, could be a bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I would do some checks, as mentioned above, to try to understand what's happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is not possible to find a reason, then I guess support ticket is the next option.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 11:26:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4269013#M6215</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-11-04T11:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4269072#M6216</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782160" data-lia-user-login="Srisakthi" class="lia-mention lia-mention-user"&gt;Srisakthi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I will try to enable the logs. but I will have need of time because I must compare internally, then the table takes much mouse to be read and written in the lakehouse.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 11:40:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4269072#M6216</guid>
      <dc:creator>bin_curato</dc:creator>
      <dc:date>2024-11-04T11:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4269099#M6217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="737866" data-lia-user-login="bin_curato" class="lia-mention lia-mention-user"&gt;bin_curato&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After enabling it better to have that table empty and load only that specific table. It will help to find issue easily. Also easy to share the pipeline run id with MS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srisakthi&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 12:03:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4269099#M6217</guid>
      <dc:creator>Srisakthi</dc:creator>
      <dc:date>2024-11-04T12:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4270837#M6255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="737866" data-lia-user-login="bin_curato" class="lia-mention lia-mention-user"&gt;bin_curato&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Late to the Party but lets see if this narrows things down for you.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a Pre-Copy Script that Drops and Recreates the Table for you then performs the append operation&lt;/LI&gt;&lt;LI&gt;Will give you fresh Delta Sink in Bronze, hopefully removing any issues with the deletes that I think you are performing in the step before loading the data&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 05 Nov 2024 14:04:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4270837#M6255</guid>
      <dc:creator>richbenmintz</dc:creator>
      <dc:date>2024-11-05T14:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4270881#M6259</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17135" data-lia-user-login="richbenmintz" class="lia-mention lia-mention-user"&gt;richbenmintz&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;thanks for your support. already now I empty the temporary table and then go to feed the final table.&amp;nbsp;&lt;BR /&gt;the problem seems that when data is read from the source, some duplicates are generated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 14:50:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4270881#M6259</guid>
      <dc:creator>bin_curato</dc:creator>
      <dc:date>2024-11-05T14:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4271043#M6261</link>
      <description>&lt;P&gt;How often does new data enter the source table (on the SQL server)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. once per day, once per hour, once per minute?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you get a different row count if you run the same query from SSMS or Data Pipeline (ref. number of rows read in the copy data details)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that the copy activity takes 13 hours. I don't have a lot of experience with Data Pipeline. Is 13 hours a normal duration? I think it sounds long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know much about NOLOCK, which is used in the query. Could it be causing issues in a long running pipeline?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 16:55:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4271043#M6261</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-11-05T16:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4271055#M6262</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="737866" data-lia-user-login="bin_curato" class="lia-mention lia-mention-user"&gt;bin_curato&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to ensure that it is not the reading of the delta bronze table that is not creating the duplicates.&lt;/P&gt;&lt;P&gt;Your delete is creating a logged delete of the data, it still exists in the delta parquet store and is relying on the query engine to get the most up to date records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dropping the table should remove the underlying files and allow you to start from scratch&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 16:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4271055#M6262</guid>
      <dc:creator>richbenmintz</dc:creator>
      <dc:date>2024-11-05T16:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Resolve Duplicate Record Issues in Microsoft Fabric Pipeline with Copy Data Component?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4271233#M6265</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17135" data-lia-user-login="richbenmintz" class="lia-mention lia-mention-user"&gt;richbenmintz&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assure you that the table is dropped and then populated with data.&lt;BR /&gt;I will check your suggestion, but the problem if you look at the image in yesterday's answer to Srisakthi, 74.057.363 records are read from the source and the same number is written to the table.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 18:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-Resolve-Duplicate-Record-Issues-in-Microsoft-Fabric/m-p/4271233#M6265</guid>
      <dc:creator>bin_curato</dc:creator>
      <dc:date>2024-11-05T18:53:02Z</dc:date>
    </item>
  </channel>
</rss>

