Forum Discussion
Copy data activity not overwriting
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.
"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.
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'.
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.
Thank you for providing this workaround for what is clearly a bug! I wonder how anyone would be able to know this!
I have tried it, and I am not sure why, but after adding overwrite to dynamic content, it threw an error.
- nomadica1 year agoFrequent Visitor
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.
- nomadica1 year agoFrequent Visitor
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.
- Richard_1001 year agoResolver I
This message prompted me to retest this quickly, and it does appear that the bug has been fixed.