OBLYTECH Logo
OBLYTECH Logo

Integration Error Queue Ownership and Retry Rules

An integration error queue holds messages that failed to reach their target. It works best when each queue has one named owner, a fixed retry ceiling, and a defined point where a person takes over from automation. Set those three before go-live, log every attempt, and review the numbers monthly.

Why error queues stall when nobody owns them

Failed integration messages rarely raise an alarm on their own. They sit in a queue, and the count creeps up on a report that nobody opens on Monday morning. By the time someone asks why an order never reached the billing system, the failure is weeks old and the source data has changed twice. Named ownership breaks that pattern by attaching a person to the queue.

Ownership has two layers that teams often merge. The integration owner understands the connection, the endpoints, and the field mapping. The data owner understands what the business expects the record to say. A single message failure often needs both. Writing down who holds each layer, and what each may decide without asking the other, prevents the common stall where each side assumes the other is handling it.

Assigning one accountable owner to each queue

Each queue gets one named person rather than a team alias. A shared mailbox has no one accountable for deciding whether a batch should be replayed. The owner covers four duties: triaging new failures, deciding whether an item retries or escalates, approving replays, and signing off that a queue is clear or that its open items are accepted as exceptions. If the owner needs to see the queue’s records, check that their access comes from the right permission set design for small teams rather than from a shared login.

  • Triage new failures on the working day they appear, using the failure classes described below.
  • Decide whether a failed item retries, escalates, or closes as a known exception.
  • Approve every bulk replay and record the approval in the log.
  • Name a backup owner who can act during leave, with the same access and the same documentation.

Separating the integration owner from the data owner

The integration owner is usually the person who built or maintains the connection. The data owner is the business lead for the object involved, such as the sales operations lead for opportunities or the finance controller for invoices. Integration owners should not decide whether a business value is correct, and data owners should not change mappings. When a message fails because the target value is disputed, the data owner decides and the integration owner applies the outcome.

Sorting failures into classes before any retry

Retry rules only make sense once failures are grouped by cause. Retrying the wrong kind of failure wastes attempts and delays the person who needs to act. Three classes cover most cases in practice.

  1. Transient failures, such as a timeout, a record lock held by another process, or a temporarily unavailable endpoint.
  2. Data failures, such as a blank required field, a value outside an allowed list, or a duplicate key rejected by the target.
  3. Access failures, such as an expired credential, a changed endpoint address, or a connection user who lacks the permission the integration needs.

Transient failures are the class where an automatic retry can succeed without any change. A data failure repeats identically until someone corrects the source or the mapping, so retrying it adds log noise and nothing else. An access failure needs whoever controls the credential or the permission to act, and the owner should route it to that person directly.

Choosing a retry ceiling for transient failures

The retry ceiling is a number your team picks from its own volume and tolerance for delay. A reasonable starting point is a small number of attempts, with the gap between attempts widening each time. That spacing lets a short outage clear without flooding a recovering endpoint. Record the chosen number, the spacing, and the reason for both in the queue documentation. Revisit them when volume changes sharply or a new downstream system is added. Each retry is another call, so retry traffic adds to the same call volume as normal integration work and should be sized alongside the API call budget checklist before you settle on a ceiling.

Catching systemic faults that look like transient ones

Sometimes the same transient error text appears across many unrelated records in a short window. That pattern points to a fault in the connection, the target system, or the credential, not to bad luck with individual records. The owner should pause automatic retries for that error text, check the connection, and resume only after the cause is found. Continuing to retry during a systemic fault spends attempts on items that no retry can fix at that moment, including items that would have succeeded once the fault cleared.

Deciding when a failed message goes to a person

Automation should hand a failed message to a person at a defined point, and that point should be written down rather than left to judgment in the moment. Escalate an item to a named person when any of these conditions applies:

  1. The automatic retry ceiling has been reached without success.
  2. The failure class is data or access, so retrying cannot fix the cause.
  3. The message belongs to a time-sensitive process, such as a payment, a provisioning step, or an order release.
  4. The same error text appears across several records, which suggests a systemic fault.

An escalation should create a visible task with the message identifier, the source record, the failure class, and the last three attempt results attached. A count on a dashboard does not count as escalation, because nobody is assigned to it. The person receiving the item either fixes the cause and asks for a replay, or records a decision to close the item as a known exception with a reason.

Logging each attempt so the history can be rebuilt

A retry log answers three questions later on: what was tried, what happened, and who decided. Without it, a team that reopens an incident a month afterwards can only guess. Keep one log entry per attempt rather than a single row per message that gets overwritten, because overwritten history hides the pattern a systemic fault leaves behind.

Fields each retry entry needs

Each entry should carry the message identifier, the source record identifier, the attempt number, a timestamp in one agreed time zone, the error text as received, the failure class assigned by the owner, the action taken, and the name of the person or process that acted. Store the error text unchanged. Paraphrasing it during triage makes later pattern matching unreliable.

Weekly checks against the source records

Once a week, the owner should compare the open items in each queue with the source records they reference. Look for items whose source record has since been corrected or deleted, because replaying those would write stale values. Count open items older than the agreed threshold and review each of them with the data owner. A queue that grows week over week usually means the retry ceiling or the escalation rule needs changing, not that more people are needed.

Replaying messages without repeating the original damage

A replay sends queued messages through the integration again. It is the riskiest step in the cycle because it can duplicate writes or overwrite values that changed after the original failure. Keep batch sizes within the limits your org imposes on bulk operations, and check the governor limits guide for admins before you size a batch. If a replay also fires triggers, the same care applies as for a data load, so review the bulk-safe trigger checklist first.

Before any replay, confirm three things. The root cause is fixed and recorded in the log. The target records have not changed in a way that makes the queued values wrong. The integration can recognize a duplicate, through an external identifier or a matching key, so a message that already succeeded does not create a second record. Start with a small batch and check its outcome against the source before running the rest. Record the batch size, the approving owner, and the result of that check. If the small batch shows an unexpected change, stop and return the queue to the escalation state rather than pushing the remaining items through.

Teams that want outside help laying out the ownership, retry, and logging model can start with the Salesforce implementation service page.

Questions about queue ownership and retries

What should a new queue do before its owner has been trained?

Hold it in a non-automatic state until the owner has reviewed the first few failures. A queue that retries before anyone can triage it hides the early failure pattern, and that pattern is the most useful input for setting the ceiling. The backup owner should shadow the first triage cycle as well.

Should the same person approve retries and replays?

Separating them is better where the team has enough people. Deciding to retry one item is a judgment made in the moment. A replay touches many items at once and deserves a second pair of eyes, even if that second person is the data owner. A small team can let one person hold both roles, but the log should still show the approval step.

How often should retry limits be reviewed?

Review them after a significant change in volume, after a change to the connected system, and at least once a quarter. The trigger events matter more than the calendar. Note each change with the date, the old value, the new value, and the reason, so the history of the rule can be audited in the same way as the messages it governs.

Can a retry collide with someone editing the same record?

Yes. A user editing a record while a queued update arrives can cause the integration to overwrite a change the user just made, or the reverse. Agree in advance which side wins for each field. Where the answer depends on the field, treat the item as a data failure and route it to the data owner rather than retrying it automatically.