Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Duplicate Detection rule for Account getting unpublished when Auditing is turned off for Account entity

Posted on by 190

Hi,

We have a duplicate detection rules for the Account and Contact entities. We also have an Azure Logic App that disables auditing for these 2 entities at 2am for around 5 minutes (can be longer or shorter depending of the number of files being processed) The duplicate rule seems to be getting unpublished for the Account entity when the auditing for Account is disabled (which we don't want)  but the contact rule remains published. Currently we have to publish the account rule every morning. 

Any ideas why this would happen and why it happens to the Account entity only

Thanks

Phil

*This post is locked for comments

  • Verified answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Duplicate Detection rule for Account getting unpublished when Auditing is turned off for Account entity

    Hey fillcrocker,

    It has been observed in lot of cases where a Duplicate Detection rule that you’ve once published has later on returned to an unpublished state. 

    Mostly seen-

    • After Importing the CRM Solutions
    • At the time of Bulk Import
    • Changes in Entity Metadata

    Can check here also:

    http://survivingcrm.com/2012/04/did-you-just-disable-duplicate-detection-in-crm-by-accident/

    https://community.dynamics.com/crm/f/117/t/128129

    So this is the product behavior or you can say a bug in CRM. Sometimes it get automatically Publish but sometimes you have to do it manually.

    I can only suggest you, If you are able to figure out when your Logic Apps disabling and enabling the auditing, you can write a simple Console or Web Job that will check every-time in CRM whether the rule is published or not. If not it will Published that rule automatically.

    You can refer following articles in order to Publish the Rule automatically.

    https://community.dynamics.com/crm/b/crmchap/archive/2017/02/12/automatically-publish-duplicate-detection-rules-dynamics-crm-dynamics-365-for-enterprise

    https://msdn.microsoft.com/en-us/library/hh547456.aspx?f=255&MSPPError=-2147217396

    If my answer helped to resolve your issue, kindly verify it by clicking 'Yes'. It would be helpful to the other community members seeking to resolve a similar issue.

    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.in

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