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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Chapin4u
Employee
Employee

Expression Error.: The key didn't match any rows in the table

2017-04-07_15-19-41.png

 

Hi, 

I need help to understand this error message (above image) and how to fix it, thanks 

1 ACCEPTED SOLUTION

 A typical case would be when you connect to an Excel file and then your Query attemps to access a Sheet that does not exist in the Spreadsheet...

View solution in original post

49 REPLIES 49

Hello, I am getting this error and I have hundreds of files that are being joined from a folder. I am unable to pinpoint where the error is coming from. I have looked at every file that has been updated since my last data refresh and I am failing to find the error. Does anyone know how to understand where the error is occuring? Like what file has the value that doesn't exist? 

 A typical case would be when you connect to an Excel file and then your Query attemps to access a Sheet that does not exist in the Spreadsheet...

How do I have the query skip files which don't have the targeted sheet name in them? It seems like the query is just stopping when it reaches a workbook without the targeted sheet name.  I'd like it to continue to the rest of the workbooks.

Hi, I am getting same error with Big query data set. The same sql is not showing error in another user power BI. Any idea how to fix it?

omikeyz
Frequent Visitor

I had this today when I was trying to get data in an MS Access db but the table was actaully a linked file to an Excel sheet. I changed it to a "table" and then it worked.

for my particular issue it was trying to combine multiple files from the same folder but the sheets had different names (named the same as the file)

as per some of the solutions above I changed the Source sheet name from a specific name to the sheet number, all was good

 

orginal:

Source = Excel.Workbook(Parameter1, null, true),
Receipt_1 = Source{[Name="Req_84521"]}[Data]

 

fixed:

Source = Excel.Workbook(Parameter1, null, true),
Receipt_1 = Source{0}[Data],

HLST
Frequent Visitor

I have renamed a spreadsheet in excel and received this error. I then renamed the dataset field on power bi desktop and tried to refresh, though I received the same error. Is there a way to fix this?

I followed some of the steps above but came across with interesting finding. I got this error as well, but in my scenario it appeared this way:
With my own credentials, as sharepoint site owner, I was able to read the file(s) with no issues.
When changing the credential to service account this error started to appear. The error didnt come out from sharepoint that had standard members/visitors, but in sharepoint where members and visitors were managed through AD groups. I added the service account to the AD admin group which was part of site visitor, but it didnt work. After adding the service account directly to the sharepoints visitor member list the file started to load with no issues. Hope this helps someone else as well.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.