cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
deanbland
Helper III
Helper III

The key didn't match any rows in the table

Hi all,

 

I have been using SharePoint folders to store an Excel file in to use for Power BI. I have recently received another Excel sheet within the folders and I am getting this error message:

 

"An error occurred in the ‘Transform File’ query. Expression.Error: The key didn't match any rows in the table.
Details:
Key=
Item=RISKS_MeasureActualDetails_acti
Kind=Sheet
Table=[Table]"

 

I have looked online for solutions, some saying that I need to make sure the file names are the same (SharePoint won't let me do this). I have had a look at both files and all columns are the same also. I am unsure what else to do, can someone please advise! 

 

Thank you, 

 

Dean

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @deanbland 

Usually this means a column name or sheet name has changed in the file you are importing, compared to the code in the Transform File query.

Double check columns and sheets. Make sure there are no leading or trailing spaces in column and sheet names.

If you still have the issue please post your query/PBIX file and a sample of the structure of the file you are importing.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @deanbland 

Usually this means a column name or sheet name has changed in the file you are importing, compared to the code in the Transform File query.

Double check columns and sheets. Make sure there are no leading or trailing spaces in column and sheet names.

If you still have the issue please post your query/PBIX file and a sample of the structure of the file you are importing.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Got a similar error today and the issue was the sheet names - The sheet names have to be the same. 

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors