Run the free scan

RoutedAll guides

Your Salesforce lead assignment rule is not working. Here is why.

Free check of your Salesforce or HubSpot routing. It runs in your browser.

An assignment rule rarely breaks with an error. It keeps running and quietly sends leads somewhere you did not mean. These are the causes we see most, in the order worth checking.

France'

First, was the rule asked to run?

The rule runs only when something asks it to. That can be a ticked box, a form set to use it, an import option or the API header. See rules that only run on create and leads created by an import or API.

  1. Create a test lead in a sandbox.
  2. Tick the box to assign using the active assignment rule, then save.
  3. Read the owner. If it is right now, the rule works and was never asked. See how to test a rule.

1. An entry above it matches first

Salesforce stops at the first entry that matches. A broad entry high in the list takes leads meant for a narrower one below it. A whole region, say, or "Country is not blank". Everything after a catch-all never fires.

2. A value carries a stray quote

We saved a rule on our Salesforce test org on 29 September 2026. Quotes wrapping a value were removed. A single stray one stayed. An entry testing for France' only matches a lead whose country is literally France'. No lead ever is.

3. A country name tested against a code field

CountryCode holds two-letter codes such as GB. An entry testing it for United Kingdom can never match.

4. A picklist value that no longer exists

Someone renamed or removed a picklist value; the rule still tests the old one.

5. The owner has left, or the queue has nobody in it

Leads arrive, get assigned, and sit with someone who cannot work them.

6. A Flow changes the owner after the rule

Salesforce runs before-save flows, then the assignment rule, then after-save flows. A record-triggered flow that sets the owner after save has the last word. Whatever the rule decided.

7. Omni-Channel is routing the queue

If the lead lands in a queue Omni-Channel serves, the accepting agent becomes the owner. A lead nobody accepts waits.

Check it yourself

SELECT COUNT() FROM Lead WHERE IsConverted = false AND Owner.Type = 'Queue'
SELECT COUNT() FROM Lead WHERE IsConverted = false AND Owner.IsActive = false AND CreatedDate = LAST_N_DAYS:90

Then walk one misrouted lead through the rule's entries by hand, in order. Compare each criterion with the lead's real values.

The free scan checks your export for:

No export access? Paste your rule entries instead.

A worked example from our test org

We ran the queries above against our own Salesforce test org on 11 October 2026. Defects are planted there on purpose. It holds 18 open leads. Eight of them are owned by a queue rather than a person. Two open leads belong to a user who has left. That split tells you where to look first. Check 5 covers both: a queue with nobody in it, and an owner who has left. No customer data is used here.

Related: Salesforce assignment rule not firing and Salesforce lead assigned to the wrong person.

Writing a new entry? Check it before you save it.

Questions

Why does my assignment rule not run for some leads?

The rule runs only when something asks it to. That can be a ticked box, a form set to use it, an import option or the API header. A lead created without one of them skips the rule.

Why is my Salesforce lead assignment rule not working?

Three causes are common. An entry above it matches first. A value carries a stray quote. A country name is tested against a code field. A flow can also change the owner after the rule.

In what order does Salesforce run flows and assignment rules?

Before-save flows run first, then the assignment rule, then after-save flows. An after-save flow that sets the owner has the last word.

How do I find leads the rule sent somewhere useless?

Count open leads owned by a queue, and open leads owned by inactive users. The guide gives both queries.

The routing health checklist17 checks, from the rules to the handoff.
Open it

Have it checked every night instead.

Routing Forensics connects as a read-only user and checks this, and the rest of your routing, against your real leads. Three design partners get a free health report on their own CRM, free for 90 days: what is leaking, where, and what it is worth. Apply for a place.

Or check it now. The free scan reads your Salesforce export in your browser. Nothing is uploaded.

Apply for a free place without leaving this page. We ask for a read-only user, a named owner and a short regular call.

We use this only to reply. Privacy notice.

More guides