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 / 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 (1)
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard