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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
thomas9921
Frequent Visitor

Can't find error when loading multiple files from folder

Hello, 

 

I have a Power BI report that pulls data from 4 different sharepoint folders, each have many files in them. When I refresh the data it runs into the error , OLE DB or ODBC error: [Expression.Error] The key didn't match any rows in the table. This stops the data refresh and prevents the queries from running. I have no idea which file is causing the error.  


Is there any way to find our which file is causing the error?  Or at least, is there a way to tell power bi to skip the files that have errors?

 

Thanks for your help!!!

1 REPLY 1
dax
Community Support
Community Support

Hi thomas9921,

It seems that when load the data , something not match in  dataset. You need to check this in desktop->Edit Queries(Applied Step) to see which step contains error. I think this might be similar to below(it might have many files to combine, but some files' name are not the same, like below code, some items are not sheet1, so it refer ro sheet 1, it will cause error). You could check whether it is this situation(you could delete this reference item=sheet1 to see whetehr it work or not). 

512.PNG

By the way, if possible, could you please inform your code and sample for me? Then I will help you more correctly.

Best Regards,
Zoe Zhi

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

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.