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
Anuj Thakur 4Anuj Thakur 4 

Getting Exception while INserting PartnerNetworkRecordConnection object records in system

Hi Team,
When i am editing the opportunity then one Opp Trigger is trigrred. we have written code in that trigger which is trying to save the PartnerNetworkRecordConnection object record in system. we are passign ConnectionID and Opportunity ID in PartnerNetworkRecordConnection object. but while inserting the record we are getting "System.DmlException: Insert failed. First exception on row 0; first error: INVALID_PARTNER_NETWORK_STATUS, invalid status for partner network operation: []" exception. 
Also, if user is trying to edit then on the same line in code he is getting "
INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference" 
we have checked all the access for user profile and sharing setting as well but nothing is work out. can anyone please help here.