Skip to main content

Already active StageAssignment rules

Problem Analyzer suggestion for safely deploying changes to active StageAssignment rules

Dario Messina avatar
Written by Dario Messina
Updated this week

What triggers this problem analyzer?

This analyzer appears when your comparison includes one or more StageAssignment rules that already exist and are active in the target org. You’re attempting to deploy a change (for example, to the rule’s definition or metadata) that Salesforce will not accept while the rule is active.

What problem is it solving?

Salesforce validation can fail if you try to modify an active StageAssignment rule. That failure blocks your deployment even if everything else is valid. The analyzer helps you ship your changes by temporarily deploying the rule in a deactivated state, avoiding the validation error.

How does it work?

On the Problem analysis and environment variables step, Gearset lists the active StageAssignment rules that are part of your package and offers this suggestions to deploy it in its deactivated state.


This increases the likelihood of a successful validation and deployment.

Note: Because Gearset cannot safely re-enable rules automatically (to avoid unexpected behavior), you’ll need to re-enable them manually in your org after the deployment.

Did this answer your question?