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 / 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
    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

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard