Users may encounter errors changing the opportunity owner in Salesforce when there are flows or triggers acting on revenue opportunity splits or on opportunity product splits, and the new opportunity owner does not have a split in the same territory as the previous opportunity owner. Flows and before insert triggers that update a split's territory are incompatible with the way opportunity splits are handled in the opportunity change owner API (Application Programming Interface). To avoid errors when changing opportunity owners, the opportunity splits territory values must be the same for the new owner and the previous owner.
This article explains how to avoid errors when you change the owner of a Salesforce Opportunity that has revenue splits or opportunity product splits with assigned territories. It describes two solutions and a worked example for Solution B.
Ensure that the previous owner splits have the same territory values that your flow or before insert trigger will set the values to for the new owner splits. Set these territory values either manually or with an additional before update trigger or automation on the opportunities whose owners are changing.
Ensure that the new owner has splits of the same types in all the same territories as the previous owner. This will prevent your flow or before insert trigger that updates the split's territory from running, allowing the change owner API to complete without error.
John is about to leave the company. He has one open opportunity with splits in the Pacific Northwest (PNW) and Northern California (NorCal) territories. The splits are divided as follows:
To avoid an error when reassigning the opportunity to Amalie using Solution B, first give Amalie a split in the PNW territory for the Revenue Splits type (she already has a split in the NorCal territory), and a split in the NorCal territory for the Custom "Contributor" Revenue Splits type.
The Overlay Splits type isn't affected, so there is no need to assign splits to territories for this split type.
004867879

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.