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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
trevorG1
Regular Visitor

Data source error The key didn't match any rows in the table.

Hi,

I have a report linked to an excel file on a SP site. It's be working fine all along. Now suddenly I'm getting the following error below.

I have had errors before where there has been a failed refresh due to a data mismatch due to someone changing a column name etc. but this time I can't seem to find any issues.

 

  • Data source errorThe key didn't match any rows in the table.. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @trevorG1 ,

 

This error is often caused by the following three points.

  • Mismatch between the data types of the keys used in relationships.
  • Improper date formats of the date fields in relationships.
  • (null) values in columns with decimal/whole number data types

 

For solutions to the above problems, you can refer to:

Power BI Error : “The exception was raised by IDataReader interface.”

 

 

Best Regards,

Stephen Tao

 

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

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @trevorG1 ,

 

This error is often caused by the following three points.

  • Mismatch between the data types of the keys used in relationships.
  • Improper date formats of the date fields in relationships.
  • (null) values in columns with decimal/whole number data types

 

For solutions to the above problems, you can refer to:

Power BI Error : “The exception was raised by IDataReader interface.”

 

 

Best Regards,

Stephen Tao

 

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

trevorG1
Regular Visitor

I usually get a differevnt error when that happens. Can't see any name changes in column headings or deletions 

trevorG1
Regular Visitor

I usually get a differevnt error when that happens. Can't see any name changes in column headings or deletions 

@trevorG1 I have the same issue.
How did you fixed it ?

Thanks you

amitchandak
Super User
Super User

@trevorG1 , it is because a column missing at source or renamed as the source. try to address that

 

 

refer

https://community.powerbi.com/t5/Desktop/The-key-didn-t-match-any-rows-in-the-table-when-changing-da...

https://community.powerbi.com/t5/Service/SQL-Server-Change-Data-Source-gives-quot-Expression-Error-T...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors