HubSpot Xero Sync Overwriting or Duplicating Contacts: Root Cause and How to Stop It

Native HubSpot-Xero Data Sync can overwrite a company primary contact email with a different person and create duplicate contacts when clients use multiple emails. Here is how to fix it.

Mertio RevOps Engineering · Updated 2026-11-30 ·9 min read
1:1 vs N:1Xero puts one primary billing email on a customer record; HubSpot puts many people under one Company
Email keyHubSpot deduplicates contacts strictly by Email, so overwriting Email hijacks the contact identity
1-way lockTurning off Xero-to-HubSpot sync on the Email property stops primary contact overwrites immediately
Company-levelLinking Xero Contacts to HubSpot Companies instead of individual sales contacts eliminates the clash

HubSpot native Xero Data Sync breaks contact data because Xero and HubSpot model customers in completely different ways. Xero stores one Contact record per billing entity with a single primary email, while HubSpot separates Companies (deduped by domain) from individual Contacts (deduped strictly by Email). When bi-directional sync runs on the Email field, an AP update in Xero can overwrite a sales buyer email in HubSpot, and any client using two or three email addresses spawns duplicate contact records.

mertio · live workspace
HubSpot and Xero contact deduplication and company-level entity resolution
HubSpot and Xero contact deduplication and company-level entity resolution

How it works in practice

01

Pause your native Xero Contact sync before cleaning data

In HubSpot, open Settings > Integrations > Connected Apps > Xero > Contact sync and pause the sync. Cleaning up duplicates while a bi-directional sync is still active will cause Xero to recreate or overwrite records mid-cleanup.

02

Switch the Email field mapping out of bi-directional mode

Open your Xero Data Sync field mappings in HubSpot. Set conflict resolution so HubSpot wins on contact identity fields, or switch the Contact sync direction to one-way (HubSpot to Xero) so finance edits in Xero cannot overwrite a sales buyer email in HubSpot.

03

Check sync rules for blank values and missing domains

Verify that empty fields in Xero are blocked from overwriting populated HubSpot properties. Export your HubSpot Companies without a Company Domain Name and backfill their real domains so HubSpot stops creating duplicate companies.

04

Merge duplicate contacts using Secondary Emails instead of deleting

In HubSpot, go to CRM > Contacts > Actions > Manage duplicates. When one person uses two or three email addresses (for example a founder email and a billing alias), merge them into one contact record so the extra addresses live in HubSpot Secondary Emails without losing deal or email history.

05

Separate billing contacts from sales contacts long term

Tag finance recipients with a dedicated association label (such as Billing Contact) or link Xero Contacts strictly to HubSpot Companies rather than overwriting your sales champion contact record.

Side-by-side breakdown

Why HubSpot and Xero Clash on Contact Records
Data Model ConceptHow HubSpot WorksHow Xero WorksWhat Breaks Under Bi-Directional Sync
Primary unique keyEmail address on Contacts; Domain name on CompaniesInternal ContactID and exact Contact Name stringChanging a billing email in Xero overwrites an existing HubSpot person email instead of creating a separate AP contact
Company vs. PersonCompanies and Contacts are separate CRM objects with many-to-many associationsOne Contact object represents the company plus one Primary Person and optional extra personsSales champion in HubSpot gets swapped out for the client AP clerk stored as Primary Person in Xero
Multiple emails for one buyerSupported via Secondary Email on a single Contact recordPrimary email plus up to 5 Contact Persons on the same billing ContactEach extra email or alias creates a brand new duplicate Contact in HubSpot when synced without strict filtering
Missing domain on accounting recordsCreates a new Company when domain is blank and name differs slightly (Inc vs LLC)No domain field on standard Xero ContactsHubSpot accumulates duplicate Company shells alongside the real sales Company

How Xero Overwrites a Different Person Email Inside HubSpot

This bug looks surreal the first time a RevOps admin sees it in an audit log. You have a HubSpot contact for Sarah Chen (sarah@northwind.io), your VP of Operations buyer who has 40 logged sales emails and three associated deals. Finance opens Northwind in Xero and updates the primary contact email to ap@northwind.io so invoices reach accounts payable. Twenty minutes later, Sarah Chen contact record in HubSpot has its primary email changed to ap@northwind.io.

Once that happens, the damage cascades fast. Sarah emails stop logging to her record because her real address is no longer primary. Marketing workflows start emailing ap@northwind.io as if it were Sarah. If Sarah fills out a web form next week with sarah@northwind.io, HubSpot sees an unknown email and creates a brand new duplicate contact with zero historical deals.

The root cause is structural, not a one-off typo. Xero only exposes one primary contact slot per organization record to HubSpot Data Sync. When Data Sync links that Xero Contact to a HubSpot Contact by internal sync ID, any change to the primary email in Xero pushes down as an update to that exact HubSpot Contact ID, even if finance typed a completely different person name and email.

Why Clients With 2 or 3 Emails Spawn Duplicate HubSpot Contacts

Teams migrating into HubSpot or connecting Xero to an older portal hit the mirror-image problem: duplicate contacts multiplying every week. A typical B2B client interacts with you through at least two addresses, such as a personal work email during sales and a shared inbox like finance@client.com or billing@client.com during invoicing. Some small business owners also email from a Gmail address on their phone and a domain address from their laptop.

Because HubSpot deduplicates contacts strictly on exact email match, syncing every Xero contact person or invoice email creates a separate HubSpot contact for each address. Worse, Xero Contacts do not carry a native website domain property. When HubSpot tries to associate those new billing contacts to a Company, a slight naming difference (Acme Ltd in Xero vs. Acme Limited in HubSpot) spawns a duplicate Company record too.

Locking Down Native HubSpot Data Sync Settings

If you want to keep using HubSpot native Xero Data Sync, you need to narrow what it is allowed to touch. Do not leave Contact sync running bi-directionally across your entire database.

First, add a sync filter in HubSpot so only contacts who actually belong to billing (for example, contacts on a list called Sync to Xero or contacts with Association Label = Billing Contact) sync between the two apps. Your 12,000 marketing leads should never be exposed to an accounting sync.

Second, change the sync direction on Contact properties so HubSpot is the source of truth for names and emails, or turn off Contact sync altogether and sync only Companies and Invoices if your Data Hub tier allows it. Note that custom field mappings in HubSpot Data Sync require Data Hub Starter or higher.

Third, inspect your HubSpot Contact audit trail (Property History on the Email property) to find contacts whose email was recently overwritten by the Xero integration. Restore the real person email on the original record, then create a dedicated AP contact (or add the billing inbox as a separate contact associated with the same Company).

The Cleaner Architecture: Map Xero Contacts to HubSpot Companies, Not People

At a B2B company, an accounting customer in Xero is a legal entity (a Company), not an individual human being. Treating Xero Contacts as HubSpot Contacts is what forces a sales buyer and an AP clerk to fight over the same CRM record.

A company-first connector solves both problems at the root. Instead of mutating individual HubSpot Contact emails, it links each HubSpot Company 1:1 to its Xero Contact using domain matching, legal-suffix normalization (matching Northwind Ltd to Northwind Limited), and saved per-ledger contact IDs. Your sales contacts stay untouched inside HubSpot, while billing emails live separately at the company or invoice level.

Mertio is built around that exact 1:1 Company-to-Xero Contact model. It never overwrites your HubSpot Contact emails. It also blocks duplicate contact creation and gives you a collision guard screen to review any ambiguous match before an invoice goes out.

Further reading: Read the full engineering breakdown →

What finance will ask

Can I recover a HubSpot contact email after Xero sync overwrote it?

Yes. Open the affected Contact in HubSpot, hover over the Email property in the left sidebar, and click Details (Property History). HubSpot logs every historical value along with the integration that changed it, so you can restore the original email address and move the AP address to a separate billing contact.

Why does HubSpot create a duplicate contact when a client uses a second email address?

HubSpot uses the primary Email property as the unique identifier for contacts. Unless the second address is already stored under Additional Emails (Secondary Emails) on the existing contact record, any sync or form submission using the second email creates a new contact.

Does HubSpot Data Sync let me map Xero Contacts to HubSpot Companies instead of Contacts?

HubSpot native Xero Data Sync focuses primarily on Contact, Product, and Invoice syncs, which is why B2B teams with multi-contact accounts run into primary-email clashes. To keep human contacts untouched, restrict the native Contact sync with a billing-only list filter or use a company-first bridge like Mertio.

How do I stop Xero sync from creating duplicate HubSpot Companies?

Make sure every active HubSpot Company has its real Company Domain Name populated and avoid syncing Xero Contacts that have no email domain. When domain matching is missing, minor legal suffix differences like Inc, LLC, or Ltd trigger duplicate company creation.

Close the deal.
Mertio keeps the books straight.

Run a free duplicate-customer and unbilled-deal scan, or walk through every screen in the sandbox first. The free HubSpot workspace includes 5 synced invoices per calendar month.

HubSpot Marketplace Listed ↗ Zero QBO seats for sales 15-min HMAC-signed PDFs

Not ready to connect anything? Use the free finance toolkit: reconcile two CSV exports, age your receivables or make a PDF invoice, with no account.

Sandbox Get Started