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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Execute Stored procedu...
Power Automate
Unanswered

Execute Stored procedure: Database functions with non-scalar parameters aren't supported

(1) ShareShare
ReportReport
Posted on by 636

 

HI

 

Wiring up the Execute Stored Procedure running against on-premises SQL Server should be easy once you sort out the SQL Execute permissions for your test user. 

 

 

 

 

 

 

ALTER PROCEDURE [dbo].[usp_GetHappiness] 
(
	@YourParam nvarchar(128)

 

 

 

 

 

 However, we found that type  SYSNAME aka nvarchar(128) which  are Unicode parameters , is not supported  -  you get this nice error. Where is this documented in https://docs.microsoft.com/en-us/connectors/sql/#general-known-issues-and-limitations 

 

 

 

 

 

Database functions with non-scalar parameters aren't supported.
 inner exception: Database functions with non-scalar parameters aren't supported.

 

 

 

 

 

In SSMS we created a new stored procedure with the following parameter

 

 

 

 

ALTER PROCEDURE [dbo].[usp_GetMoreHappiness] 
(
	@YourParam varchar(25)

 

 

 

 

This worked perfectly.  We did try editing the old sp definition but the old param type definition persisted, as did the issue with the flow .

 

Related issue 

Categories:
I have the same question (0)
  • _Ken Profile Picture
    120 on at
    We did try editing the old sp definition but the old param type definition persisted, as did the issue with the flow .

     

    I've found switching the flow Off/On often resolves issue where old definitions or permissions persist after changes on SQL Server.

    Switching flow Off/On is also necessary after an Environment Variable referenced is updated.

  • Suggested answer
    CM-16111004-0 Profile Picture
    2 on at
    Used varchar instead.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard