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 to Data...
Power Apps
Unanswered

Error on Patch to Dataverse - attempting to create rows with duplicate primary keys

(0) ShareShare
ReportReport
Posted on by 4
We have a Dataverse table with a primary key, so other tables can lookup to the table.  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 tool 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.",
 
 

 
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

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 333 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 86 Super User 2026 Season 1

Last 30 days Overall leaderboard