Fix a duplicate association ID before a HubSpot CSV import
Start with the company side of the join. If two company rows carry the same value in the column you selected as their unique key, a contact referencing that value has no single target. Deleting repeated contact rows can remove valid links.
Reproduce the difference with two files
Download the Contacts example and Companies example. Their shared column is ExternalCompanyKey. The examples use fictional records.
- Run the two files in the free checker. Contact rows 2 and 3 share an email and refer to two distinct companies. Keep both if the person works with both organizations.
- Row 4 points to ORG-999, which is absent from the Companies example. Check whether that company already exists in the destination portal.
- On a copy of the Companies file, change the second company’s key from ORG-002 to ORG-001. Rerun the checker. ORG-001 now matches two company rows and ORG-002 has no match. Restore the authoritative identifier after reviewing the source.
Choose the identifier for the destination import
For an existing company, use its HubSpot Record ID when available. Keep IDs as text when preparing a spreadsheet so leading zeros or long identifiers survive. A custom key used to identify a record must correspond to the intended unique property in the destination account. Name matches alone need a human check when branches or subsidiaries share the same name.
For two files, choose the common column on both sides during mapping. For one file, repeat the contact identifier on each row and supply the associated company’s unique identifier. Selecting the wrong object’s Record ID changes what the importer tries to update.
Verify the intended change
Save the proposed links and run a small import in the appropriate test environment. Check the individual associations and primary-company designation there. The preflight cannot see existing CRM relationships or validate labels configured in your account.
Official references: HubSpot import file requirements and HubSpot import error guide.