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
Anonymous
Not applicable

Changing SQL Query in Source results in mismatch error

So i created a Power BI report using an SQL Server Query. This query had a certain number of columns. Inorder to do some clean up work, i updated my source sql query. This query had few columns than the original query. After saving the power query and refreshing the report, I am getting the following error. 

 

OLE DB or ODBC error: type mismatch (exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))

 

How can i fix this issue? I have created a lot of measures and visualizations. I do not want to recreate everything from scratch. Is there any issue with my approach? Please feel free to provide your comments and suggestions. 

2 REPLIES 2
Anonymous
Not applicable

@Anonymous - I think this previous thread describe it well. 

Cheers,

Nathan

Anonymous
Not applicable

Hi @Anonymous ,

 

Yes i visited this thread previously. The issue discussed in that thread doesnt have to do with changing the query. In my case, I only have one step (source) and still i am getting the mismatch error. Any how i solved the problem by creating a new source using the new query, then manually updating the table name in every measure and re mapping the relationships to the new table.

 

I hope microsoft comes up with a solution that gives the user ability to troubleshoot issues that might occur during refreshing of the data.

 

Atif

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.