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

Community site session details

Session Id :
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

I have the same question (0)
  • Verified answer
    bebeben10 Profile Picture
    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
    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
    10 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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans