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 / Error on Patch trying ...
Power Apps
Unanswered

Error on Patch trying to use unique key that already exists in table

(0) ShareShare
ReportReport
Posted on by 4
We have a Dataverse table with a primary key, so other tables can use the key as a lookup.  The key is a text format Autonumber column called "ID".
 
In our canvas app, we have a Patch function inside a ForAll that should create new rows in our Dataverse table.  We use Defaults(TableName) to create the new rows.  We do not specify what to patch to the primary key column, so that the Autonumber column can create a unique number.
 
As of last week we have started having a strange issue where we will get network errors ("There are conflicts with changes on the server") intermittently when trying to patch.  The patch function will create some of the new rows but not all.
 
After using the Monitor I have found that the Patch is trying to create a row with an ID that already exists in the table.
 
We have only seen this happen in our Test/Prod environments, and not our Dev environment.
 
Can anyone suggest how we fix this?
 
Error message from the monitor is below (it is in Danish due to my org's language restrictions)
 
 "data": {
    "errors": [
      {
        "Kind": 6,
        "Message": "Netværksfejl under brug af Patch-funktion: Der er konflikter med ændringer på serveren. Du bedes genindlæse.",
        "Source": "Button_Gem_3.OnSelect",
        "Observed": "Button_Gem_3.OnSelect",
        "Details": {
          "HttpStatusCode": 412,
          "HttpResponse": {
            "code": "0x80060892",
            "message": "Der findes allerede en post, der har attributværdierne Tilsyns_ID. Objektnøglen Tilsyns_ID kræver, at dette sæt attributter indeholder entydige værdier Vælg entydige værdier, og prøv igen.",
 
 
Categories:
I have the same question (0)

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 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard