This article explains how to resolve the error encountered when a Salesforce formula references more than 15 objects, and how to request a limit increase for Spanning Relationships in your organization. Every object has a default limit of 15 spanning relationships (cross-object references). If you try to create a formula that references more than 15 objects, you will receive an error similar to:
"You have reached the maximum number of 15 object references on [Object Name]. You must remove at least 1 relationship(s) in order to save this [Workflow Rule/formula field/..]."
For example, a complex workflow rule on an Opportunity object referencing fields from more than 15 related objects — such as Account, Contact, Campaign, and multiple custom objects — will trigger this error when attempting to save.
The limit of 15 spanning relationships is a warning sign that the formula logic is getting too complex for the formula engine. It is strongly recommended that you explore ways to reduce or remove unused spanning relationships before requesting a limit increase.
Default Limit: 15 Spanning Relationships per object
Maximum Limit: 20 Spanning Relationships per object (this is the hard maximum — no further increases are available)
Submit a limit increase request with Salesforce Support
Review the ways to reduce spanning relationships below before reaching out to Support. Note that increasing this limit has potential performance implications — more complex formulas with more spans may result in increased page load and formula evaluation times. The customer must review and explicitly agree to these performance caveats prior to Support making any increase.
To increase your Spanning Relationships limit beyond the default of 15, you'll need assistance from Salesforce Support. However, before submitting a limit increase request, please explore the following options to reduce the number of spanning relationships:
If all options above have been exhausted and you still need assistance with increasing this limit, please have a System Administrator open a case with Salesforce Support with the following information:
000382367

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.