Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Duplication Record issue

(0) ShareShare
ReportReport
Posted on by 130

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

  • Verified answer
    bebeben10 Profile Picture
    bebeben10 130 on at
    RE: Duplication Record issue

    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.

  • bebeben10 Profile Picture
    bebeben10 130 on at
    RE: Duplication Record issue

    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.

  • Suggested answer
    Eccountable Profile Picture
    Eccountable 615 on at
    RE: Duplication Record issue

    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
    bebeben10 130 on at
    RE: Duplication Record issue

    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>

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans