The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am working with a customer, in a managed services setting, where I have recently been contacted on a support ticket.
The issue is that the dataset for some of their reports fails on REFRESH.
Specific error message below.
Underlying error code: -2147467259
Underlying error message: The key didn't match any rows in the table.
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.ValueError.Key: [Schema = "dbo", Item = "PBI_SalesHist_Reps"]
Microsoft.Data.Mashup.ValueError.Reason: Expression.Error
Microsoft.Data.Mashup.ValueError.Table: #table({"Name", "Data", "Schema", "Item", "Kind"}, {})
Cluster URI: WABI-US-EAST2-redirect.analysis.windows.net
Activity ID: 1780f2e9-47f0-44dd-b7ea-b7743ab4c57f
Request ID: 9c25c8e4-82ce-d822-291d-962e5f8a7a23
Time: 2021-09-02 13:15:58Z
On closer investigation, here are more details:
Thanks in advance.
Thanks for the update, that does appear to be weird.
Can you confirm you have got the latest On-Prem gateway installed?
Hi @Anonymous
The issue is with the underlying data source missing keys on a relationship in the table PBI_SalesHist_Reps.
In order to get data from a cloud and on-prem source it all has to go through the gateway in order to get it to refresh successfully. The way it is configured is correct.
Ask them to make sure that all the data is in the underlying source tables and to test it by running Power BI desktop and then refresh.
Forgot to mention... my first troubleshooting step was to download the dataset into PBI Desktop and refresh it... it refreshes successully there. No issues.
I had the exact same pb, it was due to a user access right pb on the SQL machine database. I created a new windows user, gave the good access rights on the SQL server then use that same user in powerbi service & it worked right away. No more refresh issue with underlying ids. Actually before it could access the SQL server but not the tables because of rights access.
User | Count |
---|---|
35 | |
14 | |
11 | |
11 | |
8 |
User | Count |
---|---|
44 | |
43 | |
19 | |
18 | |
17 |