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

partner insert API call issue

I am using Create API call to create a partner role between an opportunity and an account but I get an exception with the following mesage:
field integrity exception: OpportunityId, AccountToId (account to cannot be opportunity account)
What is the reason for this?
Best Answer chosen by Admin (Salesforce Developers) 
We ran into this issue as well. The Account that is related to the Opportunity cannot also be added as a partner on the same Opportunity.