<?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: Copy data activity not overwriting in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4120261#M5151</link>
    <description>&lt;P&gt;Thanks for the update. Do you know if there is any documentation on the change? I've been looking here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/copy-data-activity" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-factory/copy-data-activity&lt;/A&gt;&amp;nbsp;but couldn't find anything.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 08:24:39 GMT</pubDate>
    <dc:creator>RorySt</dc:creator>
    <dc:date>2024-08-27T08:24:39Z</dc:date>
    <item>
      <title>Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4108847#M5037</link>
      <description>&lt;P&gt;We have pipelines that have been running for months without issue. Overnight some copy data activities from lakehouse to lakehouse are now appending rather than overwriting data. The copy data activies haven't been edited, they are still set to overwrite however data is being appended.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 09:15:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4108847#M5037</guid>
      <dc:creator>alynch</dc:creator>
      <dc:date>2024-08-20T09:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4110302#M5051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="794300" data-lia-user-login="alynch" class="lia-mention lia-mention-user"&gt;alynch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As I understand your query, the issue you are facing is that the data is getting overwritten after every iteration of copy activity inside foreach. Please let me know if my understanding is incorrect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you would like to write all data to a single file from multiple sources then you will have to copy the files for each iteration to an intermediate folder by appending datetime to the filename ( using parameterized dataset at the sink) and then once all the iterations are completed then have another subsequent copy activity outside of your ForEach activity and point it's source to the intermediate folder and in sink point to your desired file store and then use copyBehavior as MergeFiles in copy activity settings.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can learn more about it in this document:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/connector-file-system?tabs=data-factory#file-system-as-sink" target="_blank"&gt;Copy data from/to a file system - Azure Data Factory &amp;amp; Azure Synapse | 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&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&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>Wed, 21 Aug 2024 03:06:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4110302#M5051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-21T03:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4110653#M5056</link>
      <description>&lt;P&gt;Hi alynch,&lt;/P&gt;&lt;P&gt;Same issue here. Our overwrite pipelines suddenly startet to append. It startet round-about last Thursday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 07:39:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4110653#M5056</guid>
      <dc:creator>GeorgEberle</dc:creator>
      <dc:date>2024-08-21T07:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4110656#M5057</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue is, that the data is &lt;STRONG&gt;not&lt;/STRONG&gt;&amp;nbsp;getting overwriting where it should, but appending instead.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 07:44:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4110656#M5057</guid>
      <dc:creator>GeorgEberle</dc:creator>
      <dc:date>2024-08-21T07:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4111105#M5063</link>
      <description>&lt;P&gt;We have also noted some odd behaviour with the Copy Data acivity.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears to have started from the 15th August for us. Where data is not being overwritten even though the overwrite option is set.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 11:36:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4111105#M5063</guid>
      <dc:creator>RorySt</dc:creator>
      <dc:date>2024-08-21T11:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4111166#M5064</link>
      <description>&lt;P&gt;We managed to solve this issue with help from Mictosoft Support. The overwrite option when selected in a copy data activity has been updated to carry out OverwriteSchema.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"OverwriteSchema" action does not delete any data. Instead, it creates a new version of the Delta table with the updated schema, allowing users to leverage the time travel feature to view all previous versions of the table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To perform an Overwrite, where the current data is completely replaced with the newly copied data, select 'Add dynamic content' for the Table Action and enter 'Overwrite'.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 12:07:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4111166#M5064</guid>
      <dc:creator>alynch</dc:creator>
      <dc:date>2024-08-21T12:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4111984#M5070</link>
      <description>&lt;P&gt;I heard the same. Overwrite has been changed to Overwrite schema.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also any of you facing this issue where in once you load the data, the sql endpoint still shows older version of data?&lt;/P&gt;&lt;P&gt;This is frustrating.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 19:55:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4111984#M5070</guid>
      <dc:creator>Anon290</dc:creator>
      <dc:date>2024-08-21T19:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4120261#M5151</link>
      <description>&lt;P&gt;Thanks for the update. Do you know if there is any documentation on the change? I've been looking here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/copy-data-activity" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-factory/copy-data-activity&lt;/A&gt;&amp;nbsp;but couldn't find anything.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 08:24:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4120261#M5151</guid>
      <dc:creator>RorySt</dc:creator>
      <dc:date>2024-08-27T08:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4122348#M5167</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Same issue this side, which is clearly that overwrite now appends instead of its intended functionality. Not a user-side issue.&lt;BR /&gt;&lt;BR /&gt;Must say, working with Fabric has been challenging at times...&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 08:34:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4122348#M5167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-28T08:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4127081#M5200</link>
      <description>&lt;P&gt;Yes, I discovered this today.&amp;nbsp; Can confirm that changing the JSON to Overwrite from OverwriteSchema works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me, it applies only to lakehouse-to-lakehouse Copy Data activities.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have lots of Copy Data pipelines connected to on-premise DB via a gateway and I've just tested one and the overwriting action works correctly despite the JSON code being "OverwriteSchema".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I've just set up a new Copy Data to copy a table from one lakehouse to another, i.e. totally internal to Fabric, and this appends rather than overwrites as per OP's post.&amp;nbsp; I change "OverwriteSchema" to "Overwrite" in the JSON and it works correctly again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's like there's a disconnect between the UI and the JSON.&amp;nbsp;This is a dreadful bug.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 13:58:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4127081#M5200</guid>
      <dc:creator>Richard_100</dc:creator>
      <dc:date>2024-08-30T13:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4127120#M5202</link>
      <description>&lt;P&gt;Ref. old data in SQL Analytics Endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.reddit.com/r/MicrosoftFabric/s/AWKTDah8Vr" target="_blank"&gt;https://www.reddit.com/r/MicrosoftFabric/s/AWKTDah8Vr&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 14:34:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4127120#M5202</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-30T14:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4128412#M5208</link>
      <description>&lt;P&gt;After spending 2 hours trying to understand why my ID has duplicates, I found out that records are duplicated in my LAKEHOUSE copy pipeline which I used the copy assitant to generate. Then I tried to use both append and overwrite to see if that fixes the issues, and it didn't.&lt;/P&gt;&lt;P&gt;Thank you for providing this workaround for what is clearly a bug! I wonder how anyone would be able to know this!&lt;/P&gt;&lt;P&gt;I have tried it, and I am not sure why, but after adding overwrite to dynamic content, it threw an error.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 19:03:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4128412#M5208</guid>
      <dc:creator>nomadica</dc:creator>
      <dc:date>2024-09-01T19:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4128415#M5210</link>
      <description>&lt;P&gt;I ended up creating a notebook to purge tables. Probably that is the way that it was intended to happen (still the question on why Overwrite option exits in data pipeline copy process.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 20:01:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4128415#M5210</guid>
      <dc:creator>nomadica</dc:creator>
      <dc:date>2024-09-01T20:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4193157#M5555</link>
      <description>&lt;P&gt;During the MS Fabric Conference (It was great, and if you didn't join one of these yet, please make sure you do!), I tested this with a MS Data Factory person, and the overwrite worked well! It could be something temporary that happened in August, and now in September it worked fine as expected, overwriting and not appending.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2024 06:49:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4193157#M5555</guid>
      <dc:creator>nomadica</dc:creator>
      <dc:date>2024-09-29T06:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4198826#M5570</link>
      <description>&lt;P&gt;This message prompted me to retest this quickly, and it does appear that the bug has been fixed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 07:47:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4198826#M5570</guid>
      <dc:creator>Richard_100</dc:creator>
      <dc:date>2024-09-30T07:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data activity not overwriting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4199426#M5572</link>
      <description>&lt;P&gt;I have retested this just now and overwrite is working as you'd expect, they have fixed this&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 08:55:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-data-activity-not-overwriting/m-p/4199426#M5572</guid>
      <dc:creator>Richard_100</dc:creator>
      <dc:date>2024-09-30T08:55:40Z</dc:date>
    </item>
  </channel>
</rss>

