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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
jamesholland198
Frequent Visitor

Desktop Refreshes - DirectQuery to Dataset - "Sequence contains more than one matching element"

Hi,

 

I have a PowerBI dataset which I am connecting to via Direct Query.  My setup has been the same for a long time with no recent changes, but today I have started to receive the below error when trying to refresh any dataset that has a DirectQuery connection into this "Master dataset".  The problem seems specific to this Dataset only, as connecting to any other Dataset refreshes OK.

 

Refresh.JPG

 

 

My report refreshes fine directly in Service, it's only when trying to refresh via Desktop I get this error.  This happens with any file that is connected to this Dataset

 

Does anyone know what this error could refer to and give me a pointer of what to look out for within this "master dataset"?

 

Thanks,

7 REPLIES 7
technolog
Super User
Super User

In my case, I just found one of the freshly added measures via Tabular Editor that was breaking the update. Removed it from the report. Added it again with a different name and everything worked.

Finding that measure was a matter of successively deleting measures until the update worked.

 

Also from the recommendations I've seen:

Check for Duplicate Elements: Ensure that the data or elements you are querying do not contain duplicates when they are not supposed to. This is often the case when you expect a unique identifier but find multiple entries with the same identifier.

PBIAL
Frequent Visitor

Problem solved.

 

In my composite, there is one pbi model causing this issue.

I just changed all the table names to different names in this trouble model. Refresh successfully without this error anymore. 

 

PBIAL
Frequent Visitor

Has this problem been solved yet? I also kept getting this error for updating a composite consisting of 5 pbi datasets. 

mcumis
Kudo Collector
Kudo Collector

Was there any conclusion to this problem? It is happening on one of my DQ reports, with numerous connections to PBI datasets and SSAS databases. The published app/report is working as expected, but whenever I try to refresh the desktop report it throws up that error.

I'm on the latest version of Power BI, it isn't realistic for me to revert to a different version on my work laptop.

Anonymous
Not applicable

Hi @jamesholland198 ,

 

Please try upgrading the Power BI Desktop to latest version and check if this issue still exists.

 

Best Regards,

Jay

jamesholland198
Frequent Visitor

@amitchandak  

 

Thanks for the reply, but a duplicate value in a 1-M relationship would normally be more specific about the error, and usually tells you exactly which table has the duplicate and what the duplicate value is.

 

Also, the Master Dataset are connected to itself refreshes perfectly fine, so if there was any duplicate 1-M relationship issues within the model then the Dataset refresh itself would fail.

 

Also, everything refreshes perfectly fine in Service, it's only in Desktop that this error happens

 

It happens as soon as the refresh gets through "Evaluating", then "Creating connection in model" and then instantly throws up the error - and it's not like normal refresh errors as another dialogue box popups saying that something went wrong and to report it as an error:

 

refresh error2.JPG

amitchandak
Super User
Super User

@jamesholland198 , To me, seem like an issue with tables having 1-M relationship.

Seem like one side of the table is getting duplicate value

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors