Skip to main content

Notifications

Community site session details

Community site session details

Session Id : mq573Kj1+aU1QDjR5dJrnP
Power Automate - Power Automate Desktop
Unanswered

Problem using Microsoft Access with Linked ODBC Tables using a SQL Connection

Like (0) ShareShare
ReportReport
Posted on 15 Jun 2023 19:35:31 by 169

Not sure there is a solution here.

 

I have an Access DB that serves as a front-end to a Sage 50 Accounting reporting tool. Works great!

 

However, we need to grab data that is in a query with native MS Access tables joined to a couple Linked Sage 50 databases.

 

If I attempt to run a SQL against the above referenced query (Sage 50 Linked data & native SQL), it generates the error below.

 

Note: SAGEODBC is the name of the ODBC connection that MS Access uses to connect to Sage.

 

Correlation Id: d08e5adc-d464-41c8-891d-16d044572d07

ODBC--connection to 'SAGEODBC' failed.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Error in SQL statement ODBC--connection to 'SAGEODBC' failed. ---> System.Data.OleDb.OleDbException: ODBC--connection to 'SAGEODBC' failed.
 at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr)
 at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
 at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
 at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
 at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
 at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
 at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
 at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
 at Microsoft.Flow.RPA.Desktop.Modules.Database.Actions.DatabaseActions.ExecuteSQLStatement(Variant connectionString, Variant sqlConnectionVariable, Variant sqlCommand, Variant& result, Int32 timeout, Int32 getConnection)
 --- End of inner exception stack trace ---
 at Microsoft.Flow.RPA.Desktop.Modules.Database.Actions.ExecuteSqlStatement.Execute(ActionContext context)
 at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

Any ideas are appreciated.

 

Thanks.

  • mmonline Profile Picture
    169 on 15 Jun 2023 at 20:53:18
    Re: Problem using Microsoft Access with Linked ODBC Tables using a SQL Connection

    Well.. just recalled/figured out that the ODBC driver for Pervasive that connects to Sage 50 is 32 bit. 

     

    I'll contact Sage support tomorrow to see if there is a 64 bit version.

     

    However, I may simply pull all the data I need for this procedure into a native Access table and be done with it. Likely better performance too.

     

    I'm going to keep the discussion open for now in case someone has an idea.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 9 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 4

#3
stampcoin Profile Picture

stampcoin 2

Overall leaderboard
Loading started