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 / Facing issue connectin...
Power Automate
Answered

Facing issue connecting stored procedure with nvarchar(max) property

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I am facing very strange issue with SQL stored procedure and connecting it via Microsoft Flow.

 

I had created a stored procedure which takes input that is set as nvarchar(max). If I test stored procedure over SSMS it works fine while if i call it from Ms.Flow i get below error message.

 

The 'inputs.parameters' of workflow operation 'Execute_stored_procedure_(V2)' of type 'OpenApiConnection' is not valid. Error details: The API operation 'ExecuteProcedure_V2' requires the property 'parameters/Comments' to be a string of maximum length '-1' but is of length '20'.

 

I had another sql database for my other project which uses same table, SP and Ms Flow. I transferred everything from that tenancy to current to test this issue. I see issue on this database.

 

My flow is running in preview version. Database where SP+Ms.Flow with nvarchar(max) is basic plan while one with issue is standard plan.

 

I also found issue with int column. If pass details to SP with int column it throws similar issue. As a work around i changed variable to nvarchar(255) and then cast it to int in query it worked.

 

Need help on fixing this issue.

 

Thanks

Priyank Bhat

Categories:
I have the same question (0)
  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @priyankbhat1 ,

     

    The error message said the property 'parameters/Comments' to be a string of maximum length '-1' but is of length '20', I'm afraid that you could only trouble shooting it according to this message and you could change the maximum length.

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard