Forum Discussion

jburklund's avatar
jburklund
Helper III
4 years ago
Solved

Debugging Date Conversion Error

I am getting the following error when trying to load data from an Azure SQL database in both Excel and PBI Desktop: "OLE DB or ODBC error: [DataSource.Error] Microsoft SQL: Conversion failed when con...
  • BA_Pete's avatar
    4 years ago

    Hi jburklund ,

     

    Whereabouts in your step list does this occur? Is there a specific step that triggers the error or is it immediately at Source/Navigation?

     

    If it's after a certain step, then you may be able to select the step before it, go to the Home tab > Keep Rows > Keep Errors. You could also try inserting steps before the error steps that perform Clean and Trim functions on all of your columns from the Transform tab > Format > Trim/Clean.

     

    If it's immediately on load, then I'd recommend running a query against your server, something like this:

    //Column-by-column
    SELECT Col1
    FROM yourTable
    WHERE Col1 like '%[^a-Z0-9]%'

     

    Re-run the query for each column in turn until you hit one (or more) that contains special characters.

     

    Pete