Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi Guys I have an issue that I have dealing with for the last few weeks. I recently started implementing Incremental refresh for my data models. One model already works with the incremental refresh and its refresh takes a few minutes with the rest of the data achieved. The problem I am facing is that when I to implement a different incremental refresh for a different model, After publishing I expect the first refresh to take a while because that where the partioning and archiving of data takes place. During that first refresh I consistently get an error claiming there is duplicate in one of Maiin Fact Tables, lets call it stock. So i get an error that there is duplicate for Id '0898672' for example within the stock Table. When I run a simple query to check, there is no duplicate. Also the Id column in the Stock table is an incremental Id so chances of a duplicate being there are zero. Now before you ask, I have checked in the Desktop Power Bi whether all my steps support query folding and yes my parameter start with RangeStart and RangeEnd. I also understand that the RangeStart and RangeEnd parameters are overwritten once you set up incremental refresh. I have no idea where I am going wrong. The very same table , in a different report I implemented incremental refresh and it works just fine. Every time when I publish the report , I run that first refresh and the same error comes after while claiming there is a duplicate. The id number might differ bit its the same error . I am really out of ideas , any advice or help would be appreciated.... This is the error message I get "
Hi @DataAnalyst7 ,
Based on your description, it seems you've already taken several important steps to troubleshoot the problem, such as verifying query folding and checking for duplicates directly in your source data.
you may try to check the relationships involving the 'Stock' table in your Power BI model. Ensure that the 'Id' column is correctly set up as a unique identifier and that the relationship configurations do not inadvertently create a scenario where duplicates could be perceived.
In addition, when setting up the incremental refresh, please carefully review the configuration to ensure that the filter conditions for 'RangeStart' and 'RangeEnd' are correctly applied to your 'Stock' table. Is there any possibility that the filter conditions might be leading to an overlap in the data being refreshed?
I also found a similar post, please refer to it and see if it helps you.
Solved: Refresh error: "...contains duplicate value...and ... - Microsoft Fabric Community
Best Regards,
Yulia Yan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-weiyan1-msft Thank you for your respone. I went through most of solutions provided in the post you sent me. Could you please elaborate further on this? I have a feeling it might help "Is there any possibility that the filter conditions might be leading to an overlap in the data being refreshed?"
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
39 | |
27 | |
21 | |
21 | |
10 |
User | Count |
---|---|
45 | |
38 | |
34 | |
19 | |
15 |