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
Siddharth PrakashSiddharth Prakash 

Opportunity split enabling giving issue in a customisation


Hi Team
  1. In our case, we have an account with owner X and there are three opportunities open - Op1 , Op2 and Op3 and all are mapped to X
  2. Then I try to change the account owner to Y – Normally all the three opportunities will change from owner X to Y
  3. We created an automation so that whenever a custom setting is enabled, the opportunity will switch back to original owner. That is , when we switch account owner from X to Y , opportunities – Op1 , 2 ,3 will remain will owner X. This was done using account trigger + class + opportunity trigger
  4. This worked fine till about a month back and then we enabled the splits and kept everything as is
  5. Now, when we are changing the account owner ,we are getting a salesforce error. - Error ID: 547195966-3160 (1588352796)
  6. We have done a debug trace and found that we are exiting the account trigger properly and then we disabled the splits and then tried changing account owner. It worked as per our change that we had built in.
  7. We again enabled splits and tried changing account owner – it again threw an error as mentioned
  8. Need to understand what this error is as we are not able to debug any further/understand why the below error is coming.
  9. To rephrase, we have added a functionality in account transfer that prevents transfer open opportunities to new account owner by using a checkbox in custom settings and the functionality was working correctly before enabling splits and works if we disable splits and does not work if we enable splits. Need to know what is the error and if there is some way to prevent it.