web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Duplication Record issue

(0) ShareShare
ReportReport
Posted on by 149

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.

duplicate_5F00_record.PNG

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 have the same question (0)
  • bebeben10 Profile Picture
    149 on at

    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&quot; xmlns="schemas.microsoft.com/.../Contracts&quot;>

     <ErrorCode>-2147220937</ErrorCode>

     <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic&quot; />

     <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>

  • Suggested answer
    Eccountable Profile Picture
    10 on at

    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.

  • bebeben10 Profile Picture
    149 on at

    Hi Nelson,

    I don't see key component under Entity

    6786.components.PNG

    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.

  • Verified answer
    bebeben10 Profile Picture
    149 on at

    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.

    duplicate_5F00_detection.PNG

    I thought if I unchecked the Enable duplicate detection checkbox, duplicate detection rules will not run anymore. But, I was wrong.

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 Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
Ciprian  P Profile Picture

Ciprian P 2

#3
ZS-27011425-0 Profile Picture

ZS-27011425-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans