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 / SQL Issue executing St...
Power Automate
Unanswered

SQL Issue executing Store Procedure with parameter varchar(8000) in Microsoft Flow

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

I have a store Procedure below which contains input parameter @customer_Test with varchar(8000).

 

ALTER PROCEDURE [dbo].[SPTestCustomer]
(
@company_id VARCHAR(8)
,@inv_mast_uid VARCHAR(2000)
,@prod_group_id VARCHAR(8) = NULL
,@customer_Test VARCHAR(8000)
)
AS
SET NOCOUNT ON
Select
count(@@ROWCOUNT) NumberofRows

FROM dbo.TableEmp

return

 

Now I successfully connected my database using On-Premise Gateway connector. And I am trying to execute my store Procedure through SQL Server "Execute stored procedure (V2)" action as shown below:

1.png

But my flow is failing and giving me error "The size (8000) given to the parameter '@Variable3' exceeds the maximum allowed (4000)."

2.png

 

This works well when I remove the input parameter with varchar(8000). Is there any limitation in MS Flow???

 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Ankita2020 

     

    You may check the current limitations with the SQL connector here: https://docs.microsoft.com/en-us/connectors/sql/

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Ankita2020 Profile Picture
    6 on at

    I could not see any variable limitation in the link. Please let me know if I am missing anything??

  • Ankita2020 Profile Picture
    6 on at

    Any Idea about varchar(8000) variable limitation while executing Store Procedure through MS Flow? FYI, we cannot edit the Store Procedure.

  • Community Power Platform Member Profile Picture
    on at

    @Ankita2020 Did you find a solution for this? im having the exact same. 

  • bk2020 Profile Picture
    6 on at

    I am experiencing the same issue.

     

    Has anyone found a resolution to this issue?

     

    Thank you.

  • bk2020 Profile Picture
    6 on at

    I am experiencing the same issue.

     

    Has anyone found a resolution to this issue?

     

    Thank you.

  • MattinWi Profile Picture
    2 on at

    Sorry to hijack after so long, but I am in this same situation and am not finding anything anywhere else about this.

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard