Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
pbi_taken
Frequent Visitor

Incremental refresh og selected refresh using data pipeline

Hi, 

 

Wondering if anyone has done this successfully?

 

I'm using the copy activity to get data from my on-prem sql server. I would like to not overwrite my entire table on each refresh. 

I each row has a "UpdatedDate" and I would like to use this to check if it's greater than previous and then refresh, otherwise keep as is and shorten the refresh time.

 

Does anyone know if this is possible?

 

Thanks!

1 ACCEPTED SOLUTION

I think you will need to use Notebook to upsert into Lakehouse.

 

There is an example of upsert here:

https://microsoftlearning.github.io/mslearn-fabric/Instructions/Labs/03b-medallion-lakehouse.html

 

There is an overview of some functions here:

https://docs.delta.io/latest/delta-update.html

View solution in original post

7 REPLIES 7
mikeburek
Advocate II
Advocate II

There is not currently a way to do this with only the Copy Data activity.

 

If you want to use auxiliary/raw/landing tables, you cannot update a Lakehouse table with the SQL Endpoint. You can with a Notebook.

 

If you want to write with SQL, you can use auxiliary/raw/landing tables in a Warehouse and make a shortcut inside the Lakehouse pointing to the Warehouse table.

 

 

frithjof_v
Community Champion
Community Champion

Please vote for this idea:

 

Support UPSERTs and DELETEs when copying data into Lakehouse Tables from Pipeline copy activity, as opposed to Appending new rows

https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=87f3d168-6022-ee11-a81c-6045bdc01ce4

 

On the Ideas site, it says this is under planning, but it has been under planning for a year already. Your vote can highlight the urgency for getting this much-needed feature.

frithjof_v
Community Champion
Community Champion

Are you looking to append the updated rows, or are you looking to do upsert (insert new rows and update existing rows with changes)?

 

If you want to do an upsert, I think you will need to include a Notebook to do the upsert for a Lakehouse destination.

looking to upsert.. append is an option, but not useable in my situation

I think you will need to use Notebook to upsert into Lakehouse.

 

There is an example of upsert here:

https://microsoftlearning.github.io/mslearn-fabric/Instructions/Labs/03b-medallion-lakehouse.html

 

There is an overview of some functions here:

https://docs.delta.io/latest/delta-update.html

rubayatyasmin
Super User
Super User

Hi, @pbi_taken 

 

You can use this upsert option to get your desired result. 

 

rubayatyasmin_0-1724063924084.png

 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Hi @rubayatyasmin ,

 

Thanks! Maybe my question was a little misleading. My destination is a Lakehouse and with that it does not give me the option of upserting. 

Could an expression builder solve this, and if so, I do not know..

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.