Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Business rules require deactivating and activating to work after each deploy.

Posted on by 4
Hi! I work in a project managing a D365 CRM. We have plenty of business rules and they (mostly) work fine except a few (3 at the moment) that require deactivation and then activation to work properly. 

The most recent one is is super simple. 

If Contact type is X -> Hide Field Y and Z. It works 100% fine in our Development environment but as soon as we deploy to another environment they don't seem to work  despite being in status: Activated. 

As soon as I deactivate and then activate the business rule it works as intended in the Test environment. 

I have to do this after every single deploy and in every environment we deploy to. 
Pipeline is Dev->Test-Acceptance test ->Production and this rule exists in every environment by now but still require deactivation + activation to work properly. 


I've tried altering scope of the rule. Made sure that there are no similiar rule/another rule working on the same fields but there are none as far as I can find.

Has anybody else had this problem and if so, what did you do?
  • Nilsbergstroom Profile Picture
    Nilsbergstroom 4 on at
    Business rules require deactivating and activating to work after each deploy.
    We use Azure Devops to import/publish solutions between our environments. We only use unmanaged solutions and 2/3 business rules are within the same (incident) and 1 of them are in another custom entity.

    As explained, all of these business rules work but require us to deactive and activate them after each deploy. 
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Business rules require deactivating and activating to work after each deploy.
    Hi Partner,
    Did you deploy the business rules by exporting them through the solution's import?
    These three business rules are on different entities?
    Check the solution layer of these three business rules or the host entity in target environment.
    Is there an unmanged layer on the imported solution that prevents the imported business rules from working.
    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/solution-layers
    I hope you can mark my answer verified if it answer your question! If you have any questions, please feel free to contact me.
    Regards,
    Leah
     
     

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,835 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,526 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans