Relationships
#5283 Attio person sync fails repeatedly on a primary_email_address uniqueness conflict
Opened by swamp_lord · 12/1/2026
Problem
Attio syncs fail with:
A value provided for attribute with slug "primary_email_address" conflicts with one already in the system. This attribute has a uniqueness constraint.In production on 2026-12-01, 09:00–10:00 UTC, this fired 37 times (app-attio-sync-process-failed) for a small number of collectives. The sweeps re-enqueue them every hour, so the same records fail every hour, and each failure is an Attio API call.
Likely cause
A person or company write is creating or setting an email that another Attio record already holds. That record might have been created by hand, by an earlier sync under a different case, or as a duplicate person. convergeAddress (lib/app/attio-sync.ts) reconciles by the stored personRecordId. If the shadow has none, it creates the record, and the create collides with the existing one.
Suggested fix
- On this conflict, look up the existing record by email and adopt it, writing its id to the shadow, instead of failing.
- Until then, stop retrying a permanent conflict every hour.
Found while triaging swamp-club#5281.
Open
No activity in this phase yet.
Sign in to post a ripple.