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 / Error executing SQL st...
Power Automate
Unanswered

Error executing SQL stored procedure: The key didn't match any rows in the table

(0) ShareShare
ReportReport
Posted on by 2

When attempting to connect to a SQL Server (via a data gateway), I authenticate using SQL Server Authentication.

 

When trying to execute stored procedure, I am met with the following error:

 

The key didn't match any rows in the table

 

I did not specify any keys, columns or parameters - there were no optional fields, only three required: Server, database, and proc.

 

Yet it fails when executed.

 

 

"The dynamic operation request to API 'sql' operation 'GetProcedure_V2' failed with status code 'BadRequest'. This may indicate invalid input parameters. Error response: { "status": 400, "message": "The key didn't match any rows in the table.\r\n inner exception: The key didn't match any rows in the table.\r\nclientRequestId: {redacted}", "error": { "message": "The key didn't match any rows in the table.\r\n inner exception: The key didn't match any rows in the table." }, "source": "sql-we.azconn-we-002.p.azurewebsites.net" }'.

 
I didn't specify any keys, and the proc I'm executing returns a single value in a one column/row table output.
Categories:
I have the same question (5)
  • lbendlin Profile Picture
    8,617 Super User 2026 Season 1 on at

    Can you successfully execute the SP from a different tool like SSMS?

  • hax_a Profile Picture
    2 on at
    Spoiler (Highlight to read)
    Yes, proc executes without any issue via SSMS. 
    Yes, proc executes without any issue via SSMS. 

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
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard