Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi!
I am trying to use copy job and have setting to overwrite data, but when data sinks to lakehouse, it is still being duplicated like it was append setting.
What to do? Not to use copy job and use dataflow gen 2?
Solved! Go to Solution.
Hi @stiggrr87
Thanks for raising this query in Microsoft Fabric Community Forum.
The overwrite option in Copy Job with Lakehouse may not fully truncate the existing Delta table and can behave like append in some scenarios.
Reference : What is Copy job in Data Factory - Microsoft Fabric | Microsoft Learn
Hope this helps !!
Thank You.
Hi @stiggrr87,
Is this a new copy job or an older one?
Previously only appending records was supprted, but now truncating is also supported, so if you create a new copy job it should be able to truncate the target table.
WHat I've done as a quick workaround for this is to run the copy job from a pipeline, and then before the copy job executes run either a notebook (for a lakehouse) or a script (SQL) to truncate the table first.
Proud to be a Super User! | |
Hi @stiggrr87
Thanks for raising this query in Microsoft Fabric Community Forum.
The overwrite option in Copy Job with Lakehouse may not fully truncate the existing Delta table and can behave like append in some scenarios.
Reference : What is Copy job in Data Factory - Microsoft Fabric | Microsoft Learn
Hope this helps !!
Thank You.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.