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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
TylerVono
Helper III
Helper III

OLE DB or ODBC error: Type mismatch.

Hello - Looking for some advice, I am querying a large excel file but am running into an unexpected error: OLE DB or ODBC error: Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)).

 

Any idea how I would trouble shoot this error?

1 REPLY 1
Anonymous
Not applicable

Hi @TylerVono ,

1. Check Data Types in Source File: The error might be occurring because you’re doing some conversion from the original data types. Go into the query editor and remove any type conversions and see if that works.
2. Remove and Re-add the Source:  Sometimes, simply removing the data source and re-adding it can resolve the issue. Go to "Home" > "Manage Queries" > "Data Source Settings", remove the source, and then reconnect to the Excel file.
3. Check for Null Values: Null values can sometimes cause type mismatch errors. Filter out or handle null values in the Query Editor.
4. Clear Data Load Cache: Try to clear the data load cache: Go to File -> Options and Settings -> Options -> Data Load -> Clear cache. Save the file and load again.
5. Update Power BI Desktop: Ensure you are using the latest version of Power BI Desktop as updates often include bug fixes.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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