web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 7xN67mud141zsnH8Nxg+Ry
Power Automate - Building Flows
Answered

Execute Stored Procedure (V2) parameter error

Like (0) ShareShare
ReportReport
Posted on 29 Apr 2020 19:01:07 by 7

I created a job that executes a SP, which then starts a SQL Agent Job.  I made sure all of the permissions were correct, and I am receiving the below error.  I used the Execute stored procedure (V2) action, the SQL connection does work as I can select the database and procedure name "sp_start_job".  I then get the parameters list, where I tried to enter the job_name.  When that didn't work I tried using the job_id instead, but I received the same error.  

 

{

  "status"400,

  "message""Database functions with non-scalar parameters aren't supported.\r\n     inner exception: Database functions with non-scalar parameters aren't supported.\r\nclientRequestId: 2a5c1de1-8884-4601-9420-c751d767d242",

  "error": {

    "message""Database functions with non-scalar parameters aren't supported.\r\n     inner exception: Database functions with non-scalar parameters aren't supported."

  },

  "source""sql-ncus.azconn-ncus.p.azurewebsites.net"

}

I have the same question (0)
  • westerdaled Profile Picture
    624 on 04 Jul 2022 at 12:36:44
    Re: Execute Stored Procedure (V2) parameter error

    I am also impacted by this 

     

    In my case I am calling a stored procedure usp-GetSomeThing  with param @DataSource (nvarchar(128)  which returns a resultset .

    I have called a similar stored procedure without parameters and no issues. 

     

    Update: This might be a workaround for the main issue in this post https://powerusers.microsoft.com/t5/Building-Flows/Execute-Stored-procedure-Database-functions-with-non-scalar/td-p/1656231 

  • CJRV Profile Picture
    28 on 20 Jun 2022 at 15:54:51
    Re: Execute Stored Procedure (V2) parameter error

    Has anyone found a workaround for this?

  • adzh Profile Picture
    7 on 30 Apr 2020 at 11:07:26
    Re: Execute Stored Procedure (V2) parameter error

    abm,

     

    Thank you for the reply. Hopefully this is something they add down the line.

     

    Thanks

  • Verified answer
    abm abm Profile Picture
    32,506 Most Valuable Professional on 30 Apr 2020 at 00:05:28
    Re: Execute Stored Procedure (V2) parameter error

    Hi  @adzh 

     

    Looks like this feature is not a supported feature in Flow. 

     

    There is reference related to logic apps for this. 

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/942a1dcb-376b-4c6f-bc37-e89ca250b70f/azure-logic-apps-error-while-calling-oracle-stored-procedure-with-output-parameter?forum=azurelogicapps

     

    LogicApps not supported this feature yet so there is a good chance this feature won't be available in flow.

     

    Thanks.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2