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 Apps / The Key Didn’t match a...
Power Apps
Answered

The Key Didn’t match any rows in the table

(0) ShareShare
ReportReport
Posted on 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

Categories:
I have the same question (2)
  • Verified answer
    omi18 Profile Picture
    640 on at

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

     

    Thanks,

     

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    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

  • jimmy6365 Profile Picture
    10 on at

    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:
  • Suggested answer
    CU09010416-0 Profile Picture
    4 on at
    For me this was caused by a table with a Unique constraint without any data in the table.  I got this until I added a row of data to the erroring table.  Removing the unique constraint also stopped the error.
  • Suggested answer
    CU09010416-0 Profile Picture
    4 on at
    I was getting this issue just for the one view I had in my app.  It was fixed by turning off a Preview feature in Settings for the app: "Enable improved data table control selection and Value property"

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard