IT CanvassTalk to an advisor
ServiceNow Troubleshooting · LessonBy , ServiceNow Trainer, 8 yrs · Published · current release · fixes

Debugging business rules

Why a rule did not fire, and how to find out.

Quick answer

When a business rule misbehaves, work through this checklist.

When a business rule misbehaves, work through this checklist.

  • Confirm the When (before/after/async) and the condition match.
  • Check the order field, a lower-order rule may change data first.
  • Add gs.info() logging and watch the system log.
  • Verify the rule is active and in the right scope.
  • Watch for recursion from current.update().
Try it YourselfJavaScript
▸ Press Run to execute.

Runs in a sandbox in your browser. Mock gs and GlideRecord and sample data are provided.

Quick check

+0 XPStreak ×0
Question 1 of 2
What controls which rule runs first?

Frequently asked questions

What does the term Debugging business rules refer to in ServiceNow?
When a business rule misbehaves, work through this checklist.
What is the practical takeaway on Debugging business rules?
Confirm the When (before/after/async) and the condition match. Check the order field, a lower-order rule may change data first. Verify the rule is active and in the right scope.
Practise this on your own free instance.
Set up your free instance →
Already working on ServiceNow and stuck on a live ticket?Get an expert ServiceNow developer on screen-share to finish your daily tasks with you. Deliver on time, protect your reputation and your job. Monthly support only, no task-wise plans.Task assigned · no idea where to startStill stuck · your job on the lineExpert joins your screenDelivered on timeExplore On Job Support