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 / CoE Starter Kit "A rec...
Power Automate
Unanswered

CoE Starter Kit "A record with matching key values already exists."

(0) ShareShare
ReportReport
Posted on by

Error or OK?

 

I have imported the CoE Starter Kit. It is now that I have problems with two flows. The flows "Admin | Sync Audit Logs" and "[Child] Admin | Sync Logs" ran once successfully and from then on they consistently just ended with "failed". When I look at the details, the error is to be found in the flow "[Child] Admin | Sync Logs". To those who also use the CoE Starter Kit. Should the flow " Admin | Sync Audit Logs" run without errors or is this behavior normal? Thanks in advance!

 

Admin | Sync Audit Logs

MPRHIM_0-1611555291195.png

 

[Child] Admin | Sync Logs“

MPRHIM_1-1611555291202.png

 

MPRHIM_2-1611555291207.png

 

MPRHIM_3-1611555291211.png

 

{

  "error": {

    "code": "0x80040237",

    "message": "A record with matching key values already exists.",

    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionSourceKey": "Plugin/Microsoft.Crm.ObjectModel.CustomBusinessEntityService",

    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepKey": "e06e9c73-b35b-eb11-bb23-000d3abaa5af",

    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiDepthKey": "1",

    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiActivityIdKey": "dc2eb179-196c-466c-ab7c-17267309d8ba",

    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiPluginSolutionNameKey": "System",

    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepSolutionNameKey": "System",

    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionCategory": "ClientError",

    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionMesageName": "DuplicateRecord",

    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionHttpStatusCode": "412",

    "@Microsoft.PowerApps.CDS.ErrorDetails.SqlExceptionMessage": "Violation of PRIMARY KEY constraint 'PK_admin_AuditLogBase'. Cannot insert duplicate key in object 'dbo.admin_AuditLogBase'. The duplicate key value is <redacted>.",

    "@Microsoft.PowerApps.CDS.HelpLink": "http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040237&client=platform",

    "@Microsoft.PowerApps.CDS.InnerError.Message": "Cannot insert duplicate key."

  }

}

 

Details  â€žLaunchPowerApp“ from „[Child] Admin | Sync Logs“ flow

MPRHIM_4-1611555291217.png

 

 

Categories:
I have the same question (0)
  • diver7 Profile Picture
    4 on at

    I am seeing the same issue.

  • diver7 Profile Picture
    4 on at

    Take a look at this. There is a solution to this issue.

    https://github.com/microsoft/powerapps-tools/issues/723

     

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard