Forum Discussion

adrien5555's avatar
adrien5555
Helper II
10 years ago
Solved

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

  • savanahubio's avatar
    savanahubio
    Frequent 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. 

    • Anonymous's avatar
      Anonymous
      Not 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.

  • Anonymous's avatar
    Anonymous
    Not 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)

    • Anonymous's avatar
      Anonymous
      Not applicable

      This worked for me too, thanks!

  • 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!

     

     

    • austinsense's avatar
      austinsense
      Impactful 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.

      • adrien5555's avatar
        adrien5555
        Helper 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

  • 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

    • jessewysong's avatar
      jessewysong
      Helper III

      Never mind! One of our sales reps accidentally typed "Trina" into the sales order number field and hit "save"... sigh. All good now. 

      • Anonymous's avatar
        Anonymous
        Not 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!

  • moralescas's avatar
    moralescas
    Frequent 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

  • Anonymous's avatar
    Anonymous
    Not 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   

      • Anonymous's avatar
        Anonymous
        Not applicable

        In Excel, I repalced the "" with "NA".  Then in PBI, replace the "NA" with null.