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 / The key didnt match an...
Power Automate
Unanswered

The key didnt match any rows in the table - On prem SQL - Stored Procedure - Power Automate - Power Apps

(0) ShareShare
ReportReport
Posted on by 24

I am trying to call a Stored Procedure from Power Apps through Power Automate and gives the below message 

 

I have gone through several threads in this forum related the issue but could find a solution that worked for me.

 

 

The key didn't match any rows in the table.
     inner exception: The key didn't match any rows in the table.
clientRequestId: 12e5d8b2-8701-4174-a5b3-1a9e7c4ec9e9

 

 

Appreciate anyones help 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    Can you show us the actual stored procedure action you are calling and the parameters declaration in the stored procedure.  I suspect this means that one of the parameters you listed for the stored procedure is miss-named.

  • Suresh1409 Profile Picture
    24 on at

    Hello Pstork1, 

     

    Please find below SP

    USE [Project_Dev]
    GO
    /****** Object:  StoredProcedure [dbo].[GetRNumber]    Script Date: 28-Feb-20 16:56:27 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:  <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [dbo].[GetRNumber]
     -- Add the parameters for the stored procedure here
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
        -- Insert statements for procedure here
     SELECT FORMAT(GETDATE() , 'MMM') + '-'+ convert(varchar(50),(NEXT VALUE FOR R_Number)) AS RNum;
     
      
    END
     
     
     
     
     
  • db1989 Profile Picture
    30 on at

    @Suresh1409  check that you have the right connection in place. It fixed my issue.

    db1989_0-1605814396882.png

     

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    Since you aren't using any parameters, does the stored procedure run correctly when you execute it manually inside SQL management studio?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard