Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
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
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans