web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SQL connection error -...
Power Automate
Answered

SQL connection error - The .Net Framework Data Provider for OLEDB

(0) ShareShare
ReportReport
Posted on by 18

SQL Connection is not working though test connection is success.

 

The .Net Framework Data Provider for OLEDB (System.Data.OleDb) does not support the Microsoft OLE DB Provider for ODBC Drivers (MSDASQL). Use the .Net Framework Data Provider for ODBC (System.Data.Odbc).

 

Installed ODBC drivers but not showing up on Data link

 

Vishuse_0-1686880618534.png

Any idea

I have the same question (0)
  • Parthiban759 Profile Picture
    56 on at

     

    Provide this connection string as shown in the screenshot, try it out

     

    DSN=SQL_Server;Trusted_Connection=Yes;APP=Power Automate;WSID=**SERVER NAME**;DATABASE=**DB Name**

    DSN_SQL.PNG
  • Vishuse Profile Picture
    18 on at

    I tried but its not working, actually trying to connect to amazon redshift self-service database..

  • Vishuse Profile Picture
    18 on at

    I see this might be an issue, dnt see ODBC provider here, do you know how to populate ODBC provider 

     

    Vishuse_0-1686914065179.png

     

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @Vishuse 

     

    Can you check below link for your reference?

     

    https://docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • Parthiban759 Profile Picture
    56 on at

    you can also add through OLEDB SQL Sever, try that method it works.

  • Vishuse Profile Picture
    18 on at

    Hi Srini84, I did followed the steps form the article, as i already mentioned test connection is coming thru but its failing when I ran it from power automate desktop step.

     

    i doubt issue is with OLE providers on SQL connection string which doesnt show ODBC providers

  • Vishuse Profile Picture
    18 on at

    I tried that also no luck.. thanks

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @Vishuse 

     

    Can you share the error screenshot?

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • Vishuse Profile Picture
    18 on at

    Here is the error detail :

     

    Correlation Id: 9039fb2a-3476-4047-b591-47bff7923f90

    The .Net Framework Data Provider for OLEDB (System.Data.OleDb) does not support the Microsoft OLE DB Provider for ODBC Drivers (MSDASQL). Use the .Net Framework Data Provider for ODBC (System.Data.Odbc).: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Connection string isn't valid ---> System.ArgumentException: The .Net Framework Data Provider for OLEDB (System.Data.OleDb) does not support the Microsoft OLE DB Provider for ODBC Drivers (MSDASQL). Use the .Net Framework Data Provider for ODBC (System.Data.Odbc).
    at System.Data.OleDb.OleDbConnectionString.ValidateProvider(String progid)
    at System.Data.OleDb.OleDbConnectionString.ValidateConnectionString(String connectionString)
    at System.Data.OleDb.OleDbConnectionString..ctor(String connectionString, Boolean validate)
    at System.Data.OleDb.OleDbConnectionStringBuilder.GetProviderInfo(String provider)
    at System.Data.OleDb.OleDbConnectionStringBuilder.TryGetValue(String keyword, Object& value)
    at Microsoft.Flow.RPA.Desktop.Modules.Database.Actions.DatabaseActions.OpenConnection(Variant connectionString, SqlConnectionVariant& connection)
    --- End of inner exception stack trace ---
    at Microsoft.Flow.RPA.Desktop.Modules.Database.Actions.OpenConnection.Execute(ActionContext context)
    at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @Vishuse 

     

    Did you tried 32 bit & 64 bit ODBC driver version?

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard