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
LB-Tech
Helper I
Helper I

Detected type mismatch Error

Screenshot 2024-11-16 112455.pngHello,
We have an issue with Detected type mismatch. But we have already disabled the auto detect column type before loading the data. While loading it doesn't showed any error, but after doing certain steps for transformation and refreshed, it showed the errors in the image. It automatically detects the data type, add index and reorders the cloumn. Then we removed those steps like reordered cloumn, kept error, added index and detect type mismatch and gave close & apply, then the error goes.
Again same error occurs everytime we refresh.

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @LB-Tech 

That is the error query which gives you the idea of what the errors are abut you're supposed to fix the type mismatch error from the referenced query itself.  The common scenario fo a type mismatch error is that a coliumn has been set to a type number but some of ther rows contain characters other than numbers so  naturally those non-numeric characters cannot be converted to numbers. Once the type mismatched error is fixed in the referenced query, that error query should not return any row. If you click the blank space next to a cell with error, it will tell you what the error is. In the screenshot below, Column1 is set to type number but there are rows with alphanumeric characters thus the error.

danextian_1-1731740724801.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @LB-Tech 

That is the error query which gives you the idea of what the errors are abut you're supposed to fix the type mismatch error from the referenced query itself.  The common scenario fo a type mismatch error is that a coliumn has been set to a type number but some of ther rows contain characters other than numbers so  naturally those non-numeric characters cannot be converted to numbers. Once the type mismatched error is fixed in the referenced query, that error query should not return any row. If you click the blank space next to a cell with error, it will tell you what the error is. In the screenshot below, Column1 is set to type number but there are rows with alphanumeric characters thus the error.

danextian_1-1731740724801.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thank you for the reply.
So, You are refering this error is a normal problem. Is there any other way to stop this mismatch error.
If in case of scheduled refresh, will this error disturb the process?

 The query will still load most of the time and will return blank rows for those with errors.  For example, changing data type of a column to date when someone of the values contain string will error out for those rows but loading wont be affected. However, if that error is because the date is in the wrong format - for example, if 24/12/2024 returns an error because your locale is set to US but the source uses GB then this needs to be corrected in the query itself. If not, you'll get blank or wrong dates - think about 7/1/2024 being July 1 instead of Jan 7. Ignoring the error is a case-to-case basis but investigating why there is an error is worth doing than risking loading incomplete or wrong data.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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.