Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Duplicate Detection Rule works for an Entity and doesn't for another

Posted on by 110

Hello everyone,

I created a duplicate detection rule for the contact entity and I tested if I could save the record if the rule is applied to it and verified that no duplicate record could be saved. Then I created another duplicate detection rule for the account entity. But when I tested this rule, I was able to save the record. For this particular test, I did not get the duplicate detection message as on the first test. Any idea about what went wrong? Thank you

*This post is locked for comments

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Duplicate Detection Rule works for an Entity and doesn't for another

    What I mean in out of the box even if it will display a duplicate dialog but if you will click on Save button again on the duplicate detection dialog won't stop you from saving, you can save duplicate record.

    Hope it will help.

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Duplicate Detection Rule works for an Entity and doesn't for another

    Hi Ashraf,

    This message is coming from the entity alternatek keys and not from duplicate detection.

    As mentioned in above posts, Duplicate Detection doesn't stop you from saving the record.

    if you want, you can create the similar alternate keys for your account entity.

    www.powerobjects.com/.../utilizing-alternate-keys-in-dynamics-crm-integrations

  • Ashraf Abu-Abdou Profile Picture
    Ashraf Abu-Abdou 110 on at
    RE: Duplicate Detection Rule works for an Entity and doesn't for another

    Here is the message I receive after trying to save the duplicate record for the Contact entity:

    Duplicate Record

    "A record that has the attribute values Email already exists. The entity key Duplicate Contact on Email Match requires that this set of attributes contains unique values. Select unique values and try again."

  • Ashraf Abu-Abdou Profile Picture
    Ashraf Abu-Abdou 110 on at
    RE: Duplicate Detection Rule works for an Entity and doesn't for another

    Dear Mahen,

    On my first post, I mentioned that the duplicate detection rule prevented me from saving the record for the contact entity and I used no plugin for that entity. I do not know why that happened

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Duplicate Detection Rule works for an Entity and doesn't for another

    Out of box duplicate detection dialog just displays a warning, it won't stop you from saving record, if you want to stop user you need to do custom development, for example you can have plugin.

    Hope it will help.

    Thanks

  • Ashraf Abu-Abdou Profile Picture
    Ashraf Abu-Abdou 110 on at
    RE: Duplicate Detection Rule works for an Entity and doesn't for another

    I recreated the rule again with those steps and made sure I published the rule at the end. This time I was able to see the duplicate detection message but I was able to save the record

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: Duplicate Detection Rule works for an Entity and doesn't for another

    Please check this guide if you have missed a step? E.g. Publishing the rule at the end?

    www.microsoft.com/.../set-up-duplicate-detection-rules-to-keep-your-data-clean.aspx

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

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans