Skip to main content

Notifications

Community site session details

Community site session details

Session Id : nLEZ9kfJaFn5QVgS3PhkqA
Power Apps - Building Power Apps
Answered

The Key Didn’t match any rows in the table

Like (0) ShareShare
ReportReport
Posted on 17 May 2022 14:24:31 by 640

Hello All,

 

I'm trying to use the patch function to send data from Power apps to the SQL server table. I have been using this same patch function in other apps and it is working fine. 

 

This is a new table and a new app I'm working on and getting this error. " The Key Didn’t match any rows in the table. Inner exception". 

 

And SQL table has an Identity column. 

 

This is what I have OnSelect property of the button. 

Patch(
'databse',
{
Request_Date: Today(),
Request_Department: RS_Select_Dept.Selected.Result,
Request_Description: RS_Description.HtmlText,
Request_Semester: RS_Select_Sem.Selected.Result,
Request_Year:Year(Today()),
Request_Status:"Pending Approval",
Requestor_Name:User().FullName,
Requestor_Email:User().Email
}
);

 

Any Suggestions?

 

Thanks,

Omi

  • jimmy6365 Profile Picture
    10 on 15 Apr 2023 at 20:36:59
    Re: The Key Didn’t match any rows in the table

    Hi

     

     Did you ever figure out how this self resolves? I keep getting it randomly. Have a simple SQL server view and get this error. 

     

     "Message": "Error when trying to retrieve data from the network: The key didn't match any rows in the table.      inner exception: The key didn't match any rows in the table. clientRequestId:
  • v-yujincui-msft Profile Picture
    on 20 May 2022 at 05:41:21
    Re: The Key Didn’t match any rows in the table

    Hi @omi18 ,

     

    It seems that your problem has been solved.

    Maybe you could consider marking your reply as a 'Solution' to close the case.

     

    Best Regards,
    Charlie Choi

  • Verified answer
    omi18 Profile Picture
    640 on 17 May 2022 at 14:46:42
    Re: The Key Didn’t match any rows in the table

    Never mind after some time it started to work. No changes were needed.

     

    Thanks,

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started