Forum Discussion

Flávia's avatar
Flávia
Frequent Visitor
1 year ago
Solved

Sporadic ODBC Error: “Invalid SQL_DRIVER_ODBC_VER (03.80)” During Power BI Refresh (~20% Failures)

Hi everyone, I’m facing a recurring issue with my Power BI reports when refreshing via the on-premises data gateway. Around 20% of refresh attempts fail with the following ODBC error:     O...
  • pbiuseruk's avatar
    1 year ago

    Hi,

    I've got 2 more suggestions - if you're having an issue with the load from the driver, then it makes sense to reduce the load as much as possible. I do this by writing an SQL statement (under the optional setting when establishing the connection within Power BI).

    Might be worth limiting it to just the fields from the table that you need. Then repeat this for the other tables and have them as separate queries.

    You should only have 1 query for each table that you're trying to retreive. If you need multiple queries for the same table, then make one base one and make several other referenced queries (this is much better for performance and is a best practice).

    The second point was that if you're seeing that it's failing 1 in 10 times when you're directly calling data through the driver, then it looks like there's an issue with either the server or the connector.

    Either way, what makes sense to do is:
    1. Enable the automatic emails when a refresh fails.
    2. Create a Power Automate flow, which has a trigger to run, based on that email (very simple to make this).
    3. Then add a step in the Power Automate flow to refresh the semantic model. This will basically allow you to build a custom retry mechanism. You could even try the refresh multiple times and add delays in between. Then maybe send an email back to yourself if it doesn't get refreshed after x number of retries.