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 / Problem using Microsof...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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.

I have the same question (0)
  • mmonline Profile Picture
    169 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard