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
[Child] Admin | Sync Logs“
{
"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
Take a look at this. There is a solution to this issue.
https://github.com/microsoft/powerapps-tools/issues/723
I am seeing the same issue.