DEV Community

Demo
Demo

Posted on • Originally published at orgdoc.dev

Salesforce validation rules: when too many is too many

As a Salesforce admin who's rolled out orgs for healthcare, finance, and manufacturing enterprises, I've seen validation rules become a silent killer of productivity. The classic mistake? Adding rules without considering the cumulative impact. Your org might have 50+ validation rules—each "necessary" in isolation—but together they create a tangled web that slows down users and breaks integrations.

The Real Cost of Over-Validation

Validation rules aren't just about data accuracy—they're about user experience. In a recent healthcare client, we had 37 validation rules on the Patient object. The "Primary Care Provider must be active" rule was fine. But then came "No duplicate patient names within 30 days" and "Insurance must be non-expired." When a user tried to create a new patient record, they’d get 5 error messages at once. Support tickets exploded because users didn’t know which rule to fix first. The result? 22% longer case creation times.

How to Spot the Danger Zone

You’ve crossed into "too many" when:

  • Users get multiple errors on a single save attempt (e.g., 3+ validation errors).

  • Rules conflict with each other (e.g., one rule requires a field, another blocks it if a condition is met).

  • Rule logic is duplicated across objects (e.g., "Date must be in the future" on both Opportunity and Case).

Use this SOQL to audit your org:

SELECT Id, Name, Active, ErrorMessage FROM ValidationRule WHERE Active = true ORDER BY CreatedDate DESC LIMIT 100
Enter fullscreen mode Exit fullscreen mode

Run this monthly. If your list is over 20 entries, you’re at risk. In a financial services client, we found 18 rules on the Account object—all enforcing similar "compliance" logic. The lead developer called it "a validation rule snowstorm."

Fixing It: Practical Steps

Don’t just delete rules. Here’s how I’ve cleaned up:

  • Group overlapping rules: Merge "Insurance must be active" and "Insurance expiration date must be > today" into one rule using AND(ISPICKVAL(Insurance_Status__c, 'Active'), Insurance_Expiry__c > TODAY()).

  • Replace with workflow: If a rule is for reporting (e.g., "Opportunity must have a close date"), use a workflow rule to auto-populate a field instead of blocking saves.

  • Deprecate legacy rules: Audit rules older than 18 months. In a manufacturing client, 12% of rules were inherited from a legacy system and never updated. Delete them.

After cleaning up a client’s 43 Account validation rules to 14, their sales team’s save time dropped by 40%. No more "which error to fix first?" chaos.

The Bottom Line

Validation rules are like fire alarms: critical when they work, but useless if they’re always blaring. Each rule adds cognitive load to users and technical debt to your org. If a rule doesn’t prevent a critical data integrity issue (e.g., duplicate records causing financial loss), it belongs in the dustbin.

Stop adding rules on autopilot. Audit quarterly. Merge, replace, or delete. Your users—and your productivity—will thank you.

Run a free org health scan to identify your validation rule bloat. We’ll flag excessive rules, conflicts, and outdated logic—no fluff, just actionable insights. Fix the noise before it becomes a crisis.

📚 Recommended Resource: Salesforce for Dummies — great for anyone learning Salesforce.

📚 Recommended Resource: The Phoenix Project — great for anyone IT management.

📚 Recommended Resource: NIST Cybersecurity Framework Guide — great for anyone security frameworks.


Need a second opinion on your Salesforce org? Request a diagnostic.

Top comments (0)