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
jon_clemens
Frequent Visitor

Fabric and SQL Azure Mirroring - duplicate data on Fabric side

We have mirroring setup, and it has been running fine.  But then we noticed that we are starting to see duplicate records in Fabric, almost like updates on the SQL side are being seen as changes, but then end up creating a new record, rather than update the existing record. 

 

Is this a known issue?  Any insight or explanations?

 

 

1 ACCEPTED SOLUTION

Option 1 (unplug it and plug it back in) did the trick! 

 

Is it a best practice with mirrored databases to periodically give them a restart like this?

View solution in original post

9 REPLIES 9
darrylw
New Member

I dont think this should be marked as solved! The recommendation is a hack. I think it best to keep the issue open until proper resolution from Microsoft.

darrylw
New Member

We are experiencing the same issue. Look forward to feedback and resolution.

v-nikhilan-msft
Community Support
Community Support

Hi @jon_clemens 
Thanks for using Fabric Community.
Currently there is no such type of known issue for Mirroring Databases.
Can you please provide me the screenshots for the issue? This would help me understand what's happening.

Thanks

Hi @v-nikhilan-msft thanks for the response. I don't have a screenshot of the Azure db, however if I create a dataflow in Fabric, you can see that the column 'TransferID' is the primary key, and if I use the 'Keep Duplicates' transformation on that column, it results in no rows (as expected). The db admin has also confirmed for me that there are no duplicates on the Azure side.

twhite_cargas_0-1714057237689.png

However, in the mirrored Fabric database of the same source, I created the same query to keep the duplicates, and there are multiple duplicated records as seen here:

twhite_cargas_1-1714057363469.png

The mirrored db is actively replicating, and not displaying any errors. I can see new records as recently as one minute ago. There are over 11M records in the table, with 38 duplicates, and each of the duplicates were created between April 19 - 23. We started replicating the db on April 16.

Hi @jon_clemens , @twhite_cargas 
You can try the below steps:

1) Stop and restart Mirroring, this will reseed all the tables.. {the turn it off and on again option}
2) Better option, is to deselect this table in the Mirroring Configuration, save the configuration, then add the table back in again.


If the issue still persists then we need our internal team to investigate on this. So I request you to create a support ticket here: Microsoft Fabric Support and Status | Microsoft Fabric
After creating a Support ticket please provide the ticket number as it would help us to track for more information.
Hope this helps. Please let us know if you have any other queries.

Option 1 (unplug it and plug it back in) did the trick! 

 

Is it a best practice with mirrored databases to periodically give them a restart like this?

It is also happening on ourside. Any reason for the root cause?

Hi @twhite_cargas 
No - turning it off and on, moves all the data again. Its easy, but an expensive way to fix it.
The issue with duplicate rows might be happening due to a bug. Hence I have escalated the same, and our team is working on this to fix it. 

Thanks

Hi @v-nikhilan-msft

 

We're experiencing the same issue with our Fabric database mirror (duplicate records in the mirror, none in the source DB). Is there a further update on this issue?

 

Turning the replication off and the on again, as you've pointed out, is a time expensive exercise. It's also unclear when/how often this duplication occurs which makes managing the solution impractical. 

 

Thanks

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!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

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.