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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

3 REPLIES 3
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!


Anonymous
Not applicable

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

scheepg_0-1724994642960.png

Good morning,

My sheet names can not be the same as per the screen shot. The daily reports are loaded every morning. I performed all my checks and all errors were removed but I get the error. It is a lot of sheets from 1 Jan till now. Not sure how to fix this.
Thanx

Gerhard

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.