Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Answered

SQL execute stored procedure V2

(0) ShareShare
ReportReport
Posted on by

Hi

 

I'm trying to execute a stored procedure with an SQL Server connecter via on-prem gateway and I get the below error.

I have older flows that use 'execute stored procedure (v1)' on the same gateway and are running daily without any issue.

I've tried to remove and recreate the connector and that did not help.

Thanks

SP_GW.png

 

 

 

  • sagardhamani Profile Picture
    2 on at
    Re: SQL execute stored procedure V2

    Hi ,

    I am facing an issue in the power automate flow in a step of 'Execute_stored_procedure_(V2)'.

    Please find the error message below.   Invalid connection settings inner exception: Not a valid data source. clientRequestId: c338b978-c6fb-42b1-85f1-57a199f946f6   { "status" : 400 , "message" : "Invalid connection settings\r\n inner exception: Not a valid data source.\r\nclientRequestId: c338b978-c6fb-42b1-85f1-57a199f946f6" , "error" : { "message" : "Invalid connection settings\r\n inner exception: Not a valid data source." }, "source" : "sql-we.azconn-we.p.azurewebsites.net" }

  • Community Power Platform Member Profile Picture
    on at
    Re: SQL execute stored procedure V2

    Hey

     

    If you need to reference the port in the connection string it should be using    ":"

     

    For example:

    db_address:403    whereas 403 is the port

  • knives Profile Picture
    74 on at
    Re: SQL execute stored procedure V2

    Hi @Anonymous,

     

    I am having this issue too but am unsure what your solution means, could you please share a screenshot of your configuration please so I can see what I have to do to rectify?

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: SQL execute stored procedure V2

    For anyone reaching this post. If you need to reference the port in the database address, you must do it with ":".

    Address convention should be <server_address>:<port> and NOT <server_address>,<port>.

     

    This solves the issue.

     

    Cheers

  • Community Power Platform Member Profile Picture
    on at
    Re: SQL execute stored procedure V2

    Hi Alice,

     

    Yes - for the 'Database Name' and 'Server Name' I'm abale to select the value from the dropdown menu, i.e. without typing it in.

    The error occurs when I try to do the same for the 'Procedure Name' field.

     

    Thanks!

  • v-alzhan-msft Profile Picture
    on at
    Re: SQL execute stored procedure V2

    Hi @Anonymous ;

     

    Could you choose the server from the drop-down list in the Execute stored procedure?

     

    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics