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 / Error ejecutar instruc...
Power Automate
Unanswered

Error ejecutar instruccion SQL

(0) ShareShare
ReportReport
Posted on by 4

Tengo un problema a la hora de ejecutar una instrucción de SQL. 

 

ESCOGER Peticionarios.Peticionario, Peticionarios.Tipo, Peticionarios.ID
FROM Peticionarios
WHERE (Peticionarios.ID=%NIF%);

Es bastante sencilla, pero el error que aparece es esto:

 

"Error en la instrucción SQL. No se han especificado valores para algunos de los parámetros requeridos". 

No sé por qué sale este error, alguien me podría decir dónde está el error?. Gracias

Un saludo

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @Power24 

     

    Could you please share some screenshot of execute sql statement action?

    Deenuji_0-1715089238312.png

     

    And also confirm %NIF% is your variable or its a like query?

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

  • Power24 Profile Picture
    4 on at

    Hola

    Power24_0-1715090346399.png

     

    es una Variable

     

  • Power24 Profile Picture
    4 on at

    Hola, 

     

    Te envío el mensaje se excepción que aparece:

     

    Id. de correlación: d924b8a6-f596-454a-add1-0115161eebb5

    No se han especificado valores para algunos de los parámetros requeridos.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Error en la instrucción SQL No se han especificado valores para algunos de los parámetros requeridos. ---> System.Data.OleDb.OleDbException: No se han especificado valores para algunos de los parámetros requeridos.
    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)

     

     

    Gracias

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @Power24 

     

    Please follow the below syntax for variables:

    SELECT Peticionarios.Peticionario, Peticionarios.Tipo, Peticionarios.ID
    FROM Peticionarios
    WHERE (Peticionarios.ID='%NIF%');


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @Power24 

     

    Could you please run your same query in sql and share the results pls(remove NIF variable and apply some value directly)?

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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 707

#2
Haque Profile Picture

Haque 475

#3
Valantis Profile Picture

Valantis 456

Last 30 days Overall leaderboard