function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Seth PartridgeSeth Partridge 

How to resolve this error? [object Object]: Can't update splits: percentages don't add up to 100.00%.

Trying to create an Apex trigger that updates the Opportunity splits to evenly distribute the percentage of the sale to each Opportunity Team Member. I'm using a split that validates to 100%, and I'm getting this error every time, even though it adds up to 100%.

I was getting an error with the trigger, so I looked up the split records (2 team member, 35% and 65%) that I created manually on the opportunity with a SOQL Query.  I tried editing the individual split records to 100 and 0 percent. I get the following error when I click Save Rows. This was the same error I was getting in my trigger.

User-added image

​​​​​​​Thanks for your help!
Brent LandelsBrent Landels
Hey Seth - I am also encountering this issue - did you ever find a solution?