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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register 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

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!


Anonymous
Not applicable

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

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.