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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Krishna09
Helper III
Helper III

With out changing any dat type----error:- OLE DB or ODBC error: Type mismatch.

Hi All,

datasource is hsarepoint. A power BI was already connected to to sharepoint. I have downloaded it and made required changes to it. But, I have not changed any datatype. 

 

When i got to apply the changes ive made in the EDIT QUERIES, the message: "OLE DB or ODBC error: Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))" comes up.

 

 

Failed trails:- 1.  from many suggestions in online,  I have changed datatype. It didnot work.

                      2. checked if there is any dataa type change happened. But no data type is changed.

 

Krishna09_0-1671609604656.png

 

1 ACCEPTED SOLUTION
MAwwad
Super User
Super User

The "Type mismatch" error usually occurs when there is a problem with the data types of the columns in the query.

Here are a few things you can try to troubleshoot the issue:

  1. Check the data types of the columns in the query. Make sure that the data types are consistent with the data in the source. For example, if a column contains numeric data, make sure that the data type is set to "Whole Number" or "Decimal Number" in the Query Editor.

  2. Check for any errors in the data. Make sure that all values in the columns are of the correct data type. For example, if a column is set to the "Date" data type, make sure that all values in the column are valid dates.

  3. Check for any formatting issues in the data. Make sure that all values in the columns are properly formatted according to the data type. For example, if a column is set to the "Currency" data type, make sure that all values in the column are formatted as currency.

  4. Check for any missing or blank values in the data. Make sure that all required columns have values, and that all values are properly formatted according to the data type.

View solution in original post

4 REPLIES 4
Finbar31
Frequent Visitor

I might be able to help. If your field types are correct, then maybe look at any calculated fields or measures within the visuals. I found that even if it could load the data and process the fields, it would still error. I tracked it down to an "n/a" in an ABC123 field. The field type wasn't a problem but I followed it up with a calculation in the visuals - this is why it errored at the end of the loading sequence.
Krishna09
Helper III
Helper III

@MAwwad Thank you very much. I tried the steps you suggested. they didnot work. Later I created new one. It worked.

Krishna09
Helper III
Helper III

@MAwwad Thank you very much for your response . I have tried your suggestion. None of them worked. So I created a new one and published. It worked. 🙂

MAwwad
Super User
Super User

The "Type mismatch" error usually occurs when there is a problem with the data types of the columns in the query.

Here are a few things you can try to troubleshoot the issue:

  1. Check the data types of the columns in the query. Make sure that the data types are consistent with the data in the source. For example, if a column contains numeric data, make sure that the data type is set to "Whole Number" or "Decimal Number" in the Query Editor.

  2. Check for any errors in the data. Make sure that all values in the columns are of the correct data type. For example, if a column is set to the "Date" data type, make sure that all values in the column are valid dates.

  3. Check for any formatting issues in the data. Make sure that all values in the columns are properly formatted according to the data type. For example, if a column is set to the "Currency" data type, make sure that all values in the column are formatted as currency.

  4. Check for any missing or blank values in the data. Make sure that all required columns have values, and that all values are properly formatted according to the data type.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.