Forum Discussion
OLE DB or ODBC error: Type mismatch. (Exception from HRESULT: 0x80020005)
- Anonymous7 years ago
Hi rocky09 ,
I had a similar report set up on the Power BI Service that failed to refresh but provided me with a more detailed error. It turns out one of the fields contains string values when the ODBC connection was expecting date. When I checked the set up for the original data source the field in question was shown as a string so I'm not sure where the change occured.
Luckily, in this instance, I think I'll be able to omit the field from the report as I don't think it's entirely necessary. Hopefully that will negate the issue.
Thanks,MarkJames
One thing to try:
Create a duplicate source of the problematic query, and load it into a new table (TEST) in the power bi dataset. Use Dax Studio (External Tools) to identify the column type by running a query on DMV>TMSColumns. Send output to Excel, filter for the new TEST table and original table, pivot on the table name, with the column name and explicit column type. Made it very easy to find the mismatched column type!