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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

What this error meaning? Urgent

Hello Expert,
How I can deal with this error? what is the meaning? 
be noted that my data was connteced to SQL Server database

error.png

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

According to the error message, it seems the value of some field(s) mismatch the current data type. Please review the data and the data type settting of every field for the query Commercial_Import and check if there is any mismatch...

yingyinr_0-1661909557806.png

OLE DB or ODBC error: Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))

then you must first  find  them and convert them to ablank or null before you can change it to a whole number?  Or you can just create a a new column that checks if its a number and then puts the number in the new  custom colume ie

 

if Value.Is(Value.FromText([COLUMN]), type number) then COLUMN else null


 

And you can provide the screenshot of the query Commercial_Import (exclude sensitive data), later we can make troubleshooting and give you a suitable solution. Thank you.

Best Regards

Community Support Team _ Rena
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

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

According to the error message, it seems the value of some field(s) mismatch the current data type. Please review the data and the data type settting of every field for the query Commercial_Import and check if there is any mismatch...

yingyinr_0-1661909557806.png

OLE DB or ODBC error: Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))

then you must first  find  them and convert them to ablank or null before you can change it to a whole number?  Or you can just create a a new column that checks if its a number and then puts the number in the new  custom colume ie

 

if Value.Is(Value.FromText([COLUMN]), type number) then COLUMN else null


 

And you can provide the screenshot of the query Commercial_Import (exclude sensitive data), later we can make troubleshooting and give you a suitable solution. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MahyarTF
Memorable Member
Memorable Member

Hi

Please have a look at the following post. it is the same issue with the solution :

https://community.powerbi.com/t5/Desktop/OLE-DB-or-ODBC-error-DISP-E-TYPEMISMATCH/m-p/34076#M12207

Appreciate the Kudos

 

Mahyartf

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.