Forum Discussion
OLE DB or ODBC error DISP_E_TYPEMISMATCH
Hi All,
this error shows up when I try to refresh data.
The data source is a local csv :
Config: windows 10
thanks for helping :)
Adrien
The type mismatch is probably happening because you're doing some conversion from the orginial data types - go into the query editor and remove any type conversions and see if that works.
23 Replies
- savanahubioFrequent Visitor
This is the 3rd time this has randomly happened to me. I have not changed the source data. Does any one have a resolution?
Each time this happens I have to start from scratch and add the source again, add my conditional columns, etc. I basically have to redo my entire report.
So far I have tried deleting all the "Changed Type" tasks from the query editor, re-installing Power BI, clearing my Power Bi cache. And no luck.
- AnonymousNot applicable
Is there any log that will give me even a hint as to which column is throwing the type mismatch (or better yet, the row)? My DAX for this table is over 200 lines long. Last data refresh previews just fine, but is throwing the DISP_E_TYPEMISMATCH error when I go to the report.
- AnonymousNot applicable
I also got this error because my Power BI file and my Windows version had different formats. Commas and points were other way round because of the difference between American and Eurpean formats.
I could fix it by going to Control Panel > Region > Formats > English (United States)
- AnonymousNot applicable
This worked for me too, thanks!
- adrien5555Helper II
Please,
Completely stuck with this.
Since the error talks about "type mismatch", I tried to define all data type to 'text'
but no effect,
Help!
- austinsenseImpactful Individual
The type mismatch is probably happening because you're doing some conversion from the orginial data types - go into the query editor and remove any type conversions and see if that works.
- adrien5555Helper II
It's kinda weird, as by removing all steps in the history, it does the trick, data is refreshed, and by opening again the query editor, PBI recreates automatically the deleted steps (which are Promoted header, and Changed type).
I performed the test on a backup file.
To "clean" the production datasource, I then need to delete all applied steps in the query editor....
As there are many steps applied, is there any alternative, so as to avoid to recreate each and every step?
Many thanks for helping me resolve this issue
- jessewysongHelper III
Unfortunatly I am now getting this error on a dataset that had been working fine for months. I dont even have any change type commands in my query. The only reason I knew there was an error is because my on premises gateway data suddenly stopped refreshing today and no ones dashboards worked.
Any other ideas on how to troubleshoot?
Thnk you,
Jesse
- jessewysongHelper III
Never mind! One of our sales reps accidentally typed "Trina" into the sales order number field and hit "save"... sigh. All good now.
- AnonymousNot applicable
Thanks for posting with your findings. I used your answer to solve my problem. Someone also typed a word into a date field being funny, using "eternity" as their target resolution date. Now I know the first thing to look for!
- moralescasFrequent Visitor
Just in case someone experiences this problem still.
Although I had not made any changes to my columns, it simply had a conflict with the name of the columns.I had used the letters "i" and "I" (in capitals) to name two of my columns.
I changed the names of the columns, closed and applied, and it worked again.Paulo
- AnonymousNot applicable
In my case, a column in Excel had a mix of numbers and blank values, i.e. "". The "" in Excel created empty strings, which PBI couldn't handle along with numbers
- joebobjohnsonNew Member
I have the same issue - what did you do to resolve this?
- AnonymousNot applicable
In Excel, I repalced the "" with "NA". Then in PBI, replace the "NA" with null.