Is it possible to debug a business rule in Dynamics CRM? Appreciate your help here.
*This post is locked for comments
Is it possible to debug a business rule in Dynamics CRM? Appreciate your help here.
*This post is locked for comments
@Natraj: Your post is indeed interesting !! Thanks for sharing.
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)
I have done couple of posts about this:
dreamingincrm.com/.../troubleshooting-business-rules
dreamingincrm.com/.../understanding-process-triggers-and-business-rule-internals
So remove it, if you don't need it.
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.
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.
Remove a setting lookup from a rule, and you'll get no mistake.
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.
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.
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