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 / ODBC error when PAD fl...
Power Automate
Answered

ODBC error when PAD flow called from Cloud flow

(0) ShareShare
ReportReport
Posted on by 313

I need to access data via ODBC in a Power Automate flow. There isn't a connector for this in Power Automate Cloud, but it can be done in Power Automate Desktop. So I've created a PAD flow that handles the ODBC connection, installed this on a VM in Azure, and added an action to call the PAD flow from my Cloud flow in unattended mode.

The PAD flow works fine when run directly on the VM. But when I sign out of the VM and attempt to run it from the Cloud flow I get this error:

"code": "Database.ConnectToDataSourceError",
"message": "Problem while executing action 'Connect'. Can't connect to data source ERROR [08001] Cannot find all files in data path\r\nERROR [01000] The driver returned invalid (or failed to return) SQL_DRIVER_ODBC_VER: 28.1\r\nERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed\r\nERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr)

This seems to imply some sort of ODBC driver problem that occurs only when the PAD flow is called from the Cloud flow - not when it's run directly. Is that reasonable? Can anyone help please?

  • Verified answer
    Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @JonathanGibbs ,

     

    We can fetch the access data using Open SQL connection as well. Below is the PAD flow:

    Kaif_Siddique_0-1665081240998.png

    Connection String:

    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\dd\DB1.accdb;Persist Security Info=False;

     

    Execute SQL Statement:

    Kaif_Siddique_1-1665081441215.png

     

    Let me know if this works for you. 

     

    Regards

    Kaif

  • JonathanGibbs Profile Picture
    313 on at

    thanks @Kaif_Siddique . Moving to the oledb connection worked, together with sorting out permissions on a data location required by one of the odbc connections. I had shared this location with NT SERVICE\UIFlowService but found I also needed to share it with the local account on which the PAD was running.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 432

#2
11manish Profile Picture

11manish 313 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 154

Last 30 days Overall leaderboard