Hi All,
I am facing an issue wherein I want to update a record from custom entity. However, upon saving of the form, I am getting Duplication Record error message.
I already disabled the duplicate detection of the custom entity and at data management settings. Never faced such issue before
Any idea?
Thanks in advance!
Regards,
Marvin
*This post is locked for comments
I was able to fix this.
Even though the I turned off the duplicate detection on entity level and data management. You must unchecked this options from data management.
I thought if I unchecked the Enable duplicate detection checkbox, duplicate detection rules will not run anymore. But, I was wrong.
Hi Nelson,
I don't see key component under Entity
Let me update the description of the issue. After creating the record, I am encountering such issue if I use account A as its associated account record but not if I use account B as its associated account record.
I do have a workflow that auto populates the new_name of the record that basically produces same name because of its logic.
In your custom entity, check your Keys to see if an alternate key has been defined. Alternate keys must be unique so if you have one record with a blank value in the key field(s) then you cannot have a second one.
technet.microsoft.com/.../29e53691-0b18-4fde-a1d0-7490aa227898.aspx
If this is correct, please update this posting.
Here is the downloaded log file:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Cannot insert duplicate key.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220937</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Cannot insert duplicate key.</Message>
<Timestamp>2018-05-29T03:39:16.3934255Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.GlobalActiveStagePlugin]
[bb48066e-f22f-412f-a530-91f72e4b859b: GlobalActiveStagePlugin]
</TraceText>
</OrganizationServiceFault>
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156