DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

CRM Sync Failure Modes and Retry Rules

These CRM sync failure modes explain why a sync can look healthy while it quietly loses data for your customers. A timeout, a lapsed token and a rate limit each leave a different mark, and each needs a different answer. Teams that treat all of them as one error retry forever or never retry, and both choices cost real time. DaletPipe separates them into named end states, so a person can see the cause at once and act on it. This article walks through each failure, the retry rule behind it and how that rule works in the product code.

Which CRM sync failure modes appear most often at work?

Four groups cover most incidents. Transport failures come from the network or the provider's servers. Limit failures come from request caps.

Grant failures come from expired or revoked access. Data failures come from a record that the connector cannot read.

Each of the crm sync failure modes needs its own owner. In fact, a short table of crm sync failure modes keeps meetings calm. In fact, each of the crm sync failure modes needs its own owner.

Write the retry rules into the runbook for each stream. Also, write the retry rules into the runbook for each stream. Teach support staff the end states before an incident.

Each group has a different owner. Thus, a platform engineer owns transport and limits. Indeed, a support lead owns grants, because a person must reconnect the account.

A data lead owns record errors. Notably, the reason is that a mapping or a provider field is at fault.

Why is one failed label not enough for any of us?

A generic label hides the owner and the next step. Indeed, the same word covers a fix that waits ten minutes and a fix that needs a customer. Also, a named end state removes that doubt.

A short table of crm sync failure modes keeps meetings calm. Alert on the end states that need a person.

Illustration of plug, people, puzzle for crm sync failure modes
Key takeaway

Most CRM sync failure modes are quiet. Classify each failure, retry only the ones that can heal, and let every run end in a named status.

How does the transport retry a failed call in DaletPipe?

The transport makes up to three attempts for each call. Also, the waits are fixed at half a second, one second and two seconds. Thus, a 401 answer triggers one token refresh. Also, a persistent 401 ends the run as re-consent required.

Each step is recorded with its date.

Which crm sync failure modes have you met this quarter?

A 429 answer is handled in a special way. Likewise, the transport reads the Retry-After header once and waits for it, up to 60 seconds. Reads that fail with a 5xx answer are retried, and writes are not retried that way. In addition, the reason is that a repeated write may repeat its effect.

These rules are small on purpose. Also, they absorb short outages and brief limits. Also, they leave long problems to the run level.

A run that keeps failing ends with a status. Also, the status tells a person what to do.

How do the four end states map to the failure groups?

Success means that the provider had no further pages. Error carries the provider's reason or the transport's message. Rate limited means that retries ran out inside the limit window. Re-consent required means that the grant lapsed.

Name the crm sync failure modes that hurt your customers most. Review the crm sync failure modes after every incident. Moreover, name the crm sync failure modes that hurt your customers most.

Short retry rules are easier to review than long ones. Short retry rules are easier to review than long ones. Notably, a rate limited run keeps every page that it saved.

  • Success needs no action, though a quiet stream may deserve a look.
  • Error needs the error text, and then a person decides.
  • Rate limited needs a longer interval or a shorter entity list.
  • Re-consent required needs a user who can reconnect the account.

The connection also moves to a needs re-consent state after a lapsed grant. In fact, the problem is then visible on the connections list as well as in the run list.

What does a stopped run leave behind for the next run?

Each page is saved with its cursor and its receipt in one commit. Indeed, if page 41 fails, pages 1 to 40 stay saved. Indeed, the lease is released, so the next worker can take the stream.

Review the crm sync failure modes after every incident. Thus, a rate limited run keeps every page that it saved.

The next run asks for changes since the start of the last good run. Besides, it overlaps on purpose, because a record can change after its page was read. Records are keyed by connection, entity and provider reference. Therefore, a repeated read updates the same row.

DaletPipe connections list screen
For example, the connections list screen of DaletPipe.

What do we do when a run ends rate limited twice?

Lengthen the interval before you raise any retry count. Notably, a longer interval and a shorter entity list fix problems that a bigger retry budget cannot. Also, check the provider's own limits in the limits table, which lists daily caps beside the per-second rates. The limiter paces each request, and the schedule keeps the day inside the cap.

What can a retry never repair on a CRM sync?

A retry cannot repair meaning. Also, a renamed field, a changed pick list or a removed permission stays broken until a person acts. DaletPipe names such gaps in the mapping outcomes and in the receipts instead of hiding them.

Teams often list the crm sync failure modes before they write a runbook. In addition, which crm sync failure modes have you met this quarter? Teams often list the crm sync failure modes before they write a runbook.

Test the retry rules with a stub that answers 429. Likewise, four end states cover every run in the activity list. Overall, two rate limited runs in a row call for a longer interval.

A retry also cannot prove completeness. Also, a page iterator that ends tells you that the connector stopped asking. Moreover, the receipt label tells you whether the provider proved a full read. Therefore, a careful team reads the label and compares counts with the CRM itself.

How do webhook deliveries fail and retry in a similar way?

Outbound deliveries have their own rules. In fact, a 2xx answer ends a delivery as success. Also, a 4xx answer ends it as failed at once.

Every change is reviewed by a second person.

A 5xx answer, a timeout or a connection error schedules a retry. In fact, the waits are 5 and 30 seconds, and then the row is marked dead.

Test the retry rules with a stub that answers 429.

A 429 answer, or a 503 with a Retry-After header, waits for the longer of the delay and that header. Indeed, it uses no attempt. Indeed, such a delivery expires seven days after its creation.

A dead row names the event that never arrived. Therefore, polling can fill the gap.

How do you turn these failure rules into a short runbook?

Write one page with four lines, one for each end state. Thus, name the owner, the first check and the usual cause. Review the page after every incident, and keep it next to your run list.

The CRM sync reliability guide shows where this page fits among the other habits. The sync jobs page lists the end states in full. Also, the rate limits article explains pacing.

A diagram of 3 connected steps, each with a small drawing: Retry rules, End states, Rate limited.

What questions do readers ask about this topic most often?

Which failures can a retry fix, and which need a person?

A retry fixes a timeout, a 5xx answer or a short rate limit. It cannot fix an expired grant, a removed field or a changed permission. DaletPipe separates the two by end status.

How many attempts does the transport make before it gives up?

The HTTP layer makes up to three attempts with fixed waits of half a second, one second and two seconds. A 429 answer honors a Retry-After header once, capped at 60 seconds. Reads that fail with a 5xx answer are retried, and writes are not.

What does a rate limited run keep after it stops?

It keeps every page that was already committed, and it releases its lease. The next scheduled run resumes from the last good boundary, so nothing that was saved is replayed.

Does a successful run prove that every record was read?

A successful run says that the connector stopped asking for pages. The receipts say which pages were read. Their label is complete when the adapter holds provider-specific proof of a full read, and unverified when the provider promises no stable snapshot.

See how DaletPipe fits the providers your team uses today

Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.