You need to sign in to do that
Don't have an account?
ryepes15
FIELD_INTEGRITY_EXCEPTION
Im getting the following error on my test class when i push it to production, im not sure what it needs?
OpportunityAcctPartnertest.myUnitTest(), Details: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: OpportunityId, AccountToId (account to cannot be opportunity account): [OpportunityId, AccountToId] Class.OpportunityAcctPartnertest.myUnitTest: line 38, column 1
OpportunityAcctPartnertest.myUnitTest(), Details: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: OpportunityId, AccountToId (account to cannot be opportunity account): [OpportunityId, AccountToId] Class.OpportunityAcctPartnertest.myUnitTest: line 38, column 1
https://help.salesforce.com/apex/HTViewSolution?id=000166658&language=en_US