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 Execute SQL St...
Power Automate
Answered

Problem Execute SQL Statement

(0) ShareShare
ReportReport
Posted on by 296

Hello Community,

 

Please help me with the following,

I want to filter data from an Excel file through an SQL Connection, in order to filter some items, but I have problems with Execute SQL Statement. 

 

It throws me the following error: 

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Error en la instrucción SQL The Microsoft Access database engine could not find the object 'intercambio_proveedores_2022062'. Make sure the object exists and that you spell its name and the path name correctly. If 'intercambio_proveedores_2022062' is not a local object, check your network connection or contact the server administrator. ---> System.Data.OleDb.OleDbException: The Microsoft Access database engine could not find the object 'intercambio_proveedores_2022062'. Make sure the object exists and that you spell its name and the path name correctly. If 'intercambio_proveedores_2022062' is not a local object, check your network connection or contact the server administrator.
en System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr)
en System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
en System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
en System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
en System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
en System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
en System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
en System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
en Microsoft.Flow.RPA.Desktop.Modules.Database.Actions.DatabaseActions.ExecuteSQLStatement(Variant connectionString, Variant sqlConnectionVariable, Variant sqlCommand, Variant& result, Int32 timeout, Int32 getConnection)
--- Fin del seguimiento de la pila de la excepción interna ---
en Microsoft.Flow.RPA.Desktop.Modules.Database.Actions.ExecuteSqlStatement.Execute(ActionContext context)
en Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

fgonzalez515_0-1656381905179.png

 

fgonzalez515_1-1656381929689.png

 

fgonzalez515_2-1656381965455.png

 

Thanks

 

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @fgonzalez515 

     

    The syntax to read an Excel sheet as a database is to suffix a $ sign to the sheet name as below.

     

    select * from [Sheet1$]

     

  • fgonzalez515 Profile Picture
    296 on at

    Hi @VJR,

     

    Keep throwing error,

     

    fgonzalez515_0-1656385282203.png

     

    fgonzalez515_1-1656385301198.png

     

     

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hey,

     

    in your case it should be [intercambio_proveedores_2022062$]

    instead of Sheet1$

  • fgonzalez515 Profile Picture
    296 on at

    @VJR,

     

    Thanks

  • HazemSaleh Profile Picture
    29 on at

    I know its solved but the best way to get dynamic sheet name 🙂

    HazemSaleh_0-1670494375636.png

    GL



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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard