Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Debug Business rule

(0) ShareShare
ReportReport
Posted on by 432

Is it possible to debug a business rule in Dynamics CRM? Appreciate your help here.

*This post is locked for comments

  • Akhil101 Profile Picture
    432 on at
    RE: Debug Business rule

    @Natraj: Your post is indeed interesting !! Thanks for sharing.

  • ashlega Profile Picture
    34,477 on at
    RE: Debug Business rule

    Hi Akhil,

     it seems reasonable that, once you set a value in the business rule, there is an "unsaved change" (till you hit "save" at least)

     There is no point in debugging the rules - they are not "javascripts" in the usual sense (sure there are javascripts behind those rules, and there could be bugs, just like anywhere else.. but only Microsoft would be able to fix such bugs)

  • Verified answer
    NatrajY Profile Picture
    3,040 on at
  • joman Profile Picture
    617 on at
    RE: Debug Business rule

    So remove it, if you don't need it.

  • Akhil101 Profile Picture
    432 on at
    RE: Debug Business rule

    I replaced the business rule with java script and the unsaved changes is not showing now.

    If you get any article regarding how to debug a business rule, please do share.

    Thanks in advance.

  • Akhil101 Profile Picture
    432 on at
    RE: Debug Business rule

    That's like deactivating the rule. I just have one condition that is to set the lookup field. If I remove the condition, then what's the purpose of creating the rule then?

    Thanks anyways.

  • joman Profile Picture
    617 on at
    RE: Debug Business rule

    Remove a setting lookup from a rule, and you'll get no mistake.

  • Akhil101 Profile Picture
    432 on at
    RE: Debug Business rule

    As I said earlier I have done all this.

    The business rule which causes this is just setting the lookup field value. There is no error in the rule still its showing unsaved changes for that particular rule. So I thought if it is possible to debug a business rule then I can find out the exact issue.

    Anyways thanks.

  • joman Profile Picture
    617 on at
    RE: Debug Business rule

    You need to find a business rule, that make this changes.

    try to turn off all rules and then turn on by one and refresh a page.

    So, when you get a mistake, you'll find a rule, that make it.

    Then deactivate it and edit to remove mistake.

  • Akhil101 Profile Picture
    432 on at
    RE: Debug Business rule

    Hi Jomon,

    There is an issue where I am getting an unsaved changes even after saving the record. This custom entity has only business rules and no java script attached to it, so I tried deactivating all the business rules and this unsaved changes was gone, but when I activated again then the same issue. So I just wanted to know whether is it possible to debug a business rule.

    There is no mistake in the business rule since I am just setting the lookup field value in the custom entity.

    Thanks

    Akhil

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans