Troubleshooting

Determine master record

objectList should contain a minimal of 2 records.

  • Cause 1: The objectList contains too few or too many records for a valid merge operation.
  • Cause 2: Providing records of different object types in objectList causes the merge to fail.
  • Resolution: Ensure the list contains at least 2 records for merging to occur.

SObject row was retrieved via SOQL without querying the requested field

  • Cause: Fields required by the Duplicate Check Merge Rules are missing from the query.
  • Resolution: Query all required fields, especially fields with custom merge rules not set to “Master Record Rule.”

System.NoAccessException: Entity is not API accessible

  • Cause: The dc3Api class is part of a managed package, and the user’s profile or permission set does not grant them access to this class.
  • Resolution: Salesforce enforces Apex class visibility based on the Apex Class Access permissions in the user’s profile or permission set.