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 getting while pe...
Power Automate
Unanswered

Error getting while performing execute sql statement using power automate desktop

(0) ShareShare
ReportReport
Posted on by 2

Hello All,

 

Hope you are doing good. I hope someone can help me out in tresolving the error i am getting. I am facing an issue while executing a stored procedure using execute sql query action from power automate desktop . Its throwing me syntax error. I have tried  query as :-  Exec sp_insert2  %CurrentItem[0]%, %CurrentItem[1]%, %CurrentItem[2]%   as well as  Exec sp_insert2  '%CurrentItem[0]%', '%CurrentItem[1]%', '%CurrentItem[2]%'  but i am still getting the syntax error. 

 

Please note i am trying to read the data from excel file and storing it in oracle database. Please find the attached workflow, as well as the stored procedure which i wrote .executesql.PNGworkflow execsql.PNGStoredProcedure.PNG

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

    @Rahul_skl 

     

    Try the below syntax:

    Deenuji_0-1713868200170.png

     


    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 🚀

  • Rahul_skl Profile Picture
    2 on at

    Thanks Deenuji for replying. But the syntax you wrote does not work with oracle database and stored procedure . In general i think the syntax which i was trying before works fine with mysql  database . I figured it out by myself. Thank You for your help 🙂

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 195 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 167

Last 30 days Overall leaderboard