Forum Discussion

KevinGagel_Canf's avatar
KevinGagel_Canf
Frequent Visitor
2 years ago
Solved

Switching Data Source From one Excel Workbook to another updated version causes OLE DB or ODBC error

I created a new report and once I was happy with it I wanted to use updated information. I switched the data source to an updated Excel Workbook that contains an identical layout. Both were created f...
  • KevinGagel_Canf's avatar
    KevinGagel_Canf
    2 years ago

    Thanks, that gave me the insight I needed to figure out the problem.

    The two files are not identical after all. The new file was generated by a newer version of the script that generates the Excel Workbook. In the old version the date columns are a string that excel converts to a date. In the new version of the script the date columns are a datetime data type.

    The report is modeled off of an Excel file that was output from the old script. The new output looks identical but Power BI sees the difference as {"LastLogonDate", Int64.Type} vs {"LastLogonDate", type date}. 

     

    Switching the query to "type date" for both date columns corrected it and now the report works. 

     

    Thank you.