The assignment rule looks right, the lead still ends up with someone else. When that happens, a flow is usually changing the owner after the rule has decided.
The order Salesforce runs things in
On save, Salesforce runs before-save flows first, then the assignment rule, then after-save flows. Salesforce calls this the order of execution. Check the current order in its developer guide. An after-save record-triggered flow that sets OwnerId then overrides whatever the rule chose.
What to look for in each flow
- An owner set after save. Any Update Records step on the lead that writes
OwnerIdin an after-save flow. - A hard-coded owner Id. A step that assigns to a literal user or queue Id. When that person leaves, the flow keeps assigning to them.
- No fault path on the owner update. If that step fails, the save can fail with it. Test this in a sandbox. A web form lead can be lost.
- Steps nothing leads to. An old round robin left in the flow, with no connector into it, never runs. It still reads as if it does.
Check it yourself
In Setup, open Flows and filter to active record-triggered flows on Lead. For each, note whether it runs before or after save. Open every step that updates the triggering record. Then take one misrouted lead and read its owner history:
SELECT OldValue, NewValue, CreatedById, CreatedDate FROM LeadHistory WHERE LeadId = '00Q...' AND Field = 'Owner'
A change at creation can come from the rule or from a flow in the same save. The flows' entry conditions tell you which. A change by another user, or later, points to an integration, a sync or a person.
The free scan checks your export for:
- more than one system setting the Lead owner,
- owner updates with no fault path
How to read the owner history
Each row of the history query is one owner change. It shows the old value, the new value, who made the change and when. Read it from the oldest row down. The first change is normally the assignment rule. It is made by the user who created the lead, or by the automated process user. A later row by a different user is not a flow in the same save. It is an integration, a sync or a person. Then list the after-save flows on Lead that write OwnerId and match their entry conditions to the lead. Run it on three leads from the same source before you decide.
If the changes come from a marketing tool, see a marketing automation sync overwriting the lead owner.
To decide which one should own the owner field, see assignment rules or Flow.
Questions
How can a flow override a lead assignment rule?
An after-save record-triggered flow that sets the owner runs after the rule. So it has the last word.
How do I tell whether a flow changed the owner?
Read the lead owner history. A flow in the same save shows as an owner change by the creator in the same second as creation.
What else should I check in a routing flow?
Hard-coded owner Ids, owner updates with no fault path, and steps that nothing leads to.
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.