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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ivannye
Helper I
Helper I

Unable to connect to the data source undefined.

Hi,

 

I have this issue. the data loads perfectly in desktop powerbi but it cannot load through the gateway.

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 = "Fact_HCG_C_SALFLDG"]
Microsoft.Data.Mashup.ValueError.Reason: Expression.Error
Microsoft.Data.Mashup.ValueError.Table: #table({"Name", "Data", "Schema", "Item", "Kind"}, {})
Cluster URI: WABI-SOUTH-EAST-ASIA-redirect.analysis.windows.net
Activity ID: 471e7ba7-f8a1-4698-a81c-4b302a2d3dfe
Request ID: 1e5e8a25-5318-c988-f12f-271f886dd05e
Time: 2021-03-09 01:41:36Z

4 REPLIES 4
v-janeyg-msft
Community Support
Community Support

Hi, @ivannye 

 

Have your problem been solved? If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.

 

Best Regards

Janey Guo

v-janeyg-msft
Community Support
Community Support

Hi, @ivannye 

 

According to your description, You said that it can be refreshed normally in the desktop, but after publishing to service, you can't connect to the gateway and refresh, right?

If so, You need to check whether the name of the database or instance name is correct,and authentication and elsewhere may appear mismatched. The problem is usually the failure to identify the correct table. Need to investigate one by one.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AllisonKennedy
Super User
Super User

Have you got any security filters applied? This error usually means the table/query is empty. Might also be an issue with authentication. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

amitchandak
Super User
Super User

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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