How to Handle Integration Failures Without Losing Data: Monitoring, Retries, and Automatic Recovery

Justyna
PMO Manager at Multishoring

Integrations between your ERP, CRM, e-commerce, warehouse, and partner systems fail every day. Networks drop, an API changes, a record breaks a validation rule. Whether that costs you data depends on how the integration was built: durable messaging, retries that cannot create duplicates, a queue for messages that still fail, and monitoring that shows every flow end to end.

Most executives hear about integration problems from the wrong people: a customer whose order never shipped, a sales team with outdated prices, a finance report that does not match the ERP. This guide explains how well-built integrations survive failures, how to see all of them in one place, what can recover automatically, and what to do when data between systems is already out of sync.

Executive summary

Integration failures cannot be avoided, but data loss can. This guide explains the patterns that keep failed syncs from losing data (durable delivery, retries with idempotency, exception queues, and replay), how to monitor every integration in one place, which failures can recover automatically, and how to reconcile customer data that is already out of sync. It also shows where IBM MQ and IBM Integration fit.

How do integration platforms handle failed syncs and retries without data loss?

Reliable integrations never drop a message silently. They store each message durably before processing, retry temporary failures with growing delays, make every update safe to apply twice, and move messages that keep failing to a separate exception queue. From there, a person or rule fixes the cause and replays the message.

Data loss usually happens in the gaps between systems: a message is taken off a queue before it is safely written, a retry runs after a timeout that actually succeeded, or a failed record is logged and forgotten. The patterns below close those gaps.

PatternWhat it protects againstWhere it falls short
Persistent, guaranteed deliveryMessages lost when a server or network fails mid-transferDoes not stop a bad message from failing again and again
Retry with exponential backoffTemporary outages, timeouts, and rate limitsWithout idempotency, retries can create duplicate orders or payments
Idempotency keysDuplicates when the same message is processed twiceNeeds a stable business key and storage to check it
Dead-letter or exception queueEndless retry loops and silently dropped messagesOnly useful if someone owns the queue and acts on it
Transactional outboxChanges saved in the database but never published, or the reverseRequires changes in the source application
Replay from a log or queueData missed during an outage or a bad deploymentNeeds retention long enough to cover the outage
Circuit breakerA failing system being flooded by retriesMessages wait, so queues must have room for them

Enterprise service buses and message brokers have offered persistent delivery for years, and that is what prevents loss during network interruptions. Modern iPaaS tools offer similar features, but defaults vary, so check whether delivery is persistent, how many retries run, and where failed messages end up.

When a sync fails on one source only

Many integrations pull from several systems at once, for example customer data from a CRM, a billing system, and an e-commerce platform. When one source fails, the integration should not quietly publish an incomplete record.

Good error handling does three things here. It marks the record as incomplete instead of passing partial data downstream, it keeps the successful parts so they do not need to be fetched again, and it reports exactly which source failed and why. For flows where order matters, such as status updates, it also holds later messages for the same record until the failed one is resolved.

One honest caveat: “exactly once” delivery across several independent systems is rare in practice. The safer design goal is “at least once” delivery combined with idempotent processing, so a message may arrive twice but is applied only once. Our guide to the most common integration issues covers the project mistakes that lead to these gaps.

How do you centralize monitoring, logging, and error handling for all integrations?

Centralize by giving every message a correlation ID, sending logs and metrics from all integration runtimes to one place, and routing failures from every pipeline into one exception queue with a clear error type. One dashboard then shows each business flow end to end, the health of every connector, and what is waiting for a fix.

Most enterprises run integrations on several tools at once: an ESB, an iPaaS, message queues, file transfers, and custom scripts. Each has its own console, so nobody sees the full path of an order from the web shop to the ERP. A central view should show:

  • every business flow end to end, traced by correlation ID across systems
  • connector and endpoint health, with automated checks that a connection works before traffic arrives
  • queue depth and message age, which reveal a stuck consumer before users notice
  • a single exception queue across pipelines, with error type, owner, and retry history
  • retry dashboards that separate messages that recovered from those that keep failing
  • business metrics, such as orders received versus orders posted to the ERP

Classifying errors is what turns a log into something people can act on.

Error typeExampleTypical action
TransientTimeout, rate limit, short outageAutomatic retry with backoff
DataMissing customer ID, invalid date, wrong formatFix the data at the source, then replay
Business ruleCredit limit exceeded, product discontinuedRoute to the business owner for a decision
Configuration or securityExpired certificate, changed endpoint, revoked credentialsAlert IT immediately, pause the flow
Code or mapping defectMapping fails after a schema changeFix and redeploy, then replay affected messages

Open standards help when you mix tools. OpenTelemetry gives logs, metrics, and traces a common format, so data from different runtimes can be combined in one observability tool.

Monitoring and alerts for ERP data flows

For ERP integrations, technical alerts are not enough. A flow can be “green” while orders stop arriving because a source system stopped sending them. Add business alerts, such as no orders posted to the ERP in the last 30 minutes during business hours, invoice totals that do not match between systems, or inventory updates older than the agreed threshold. Agree the thresholds with the finance and operations owners as well as IT.

How to choose an integration platform with strong diagnostics

Vendor rankings change every year and rarely reflect your systems. Judge platforms, and the partners who run them, on how they behave when something breaks.

CriterionWhat good looks likeRed flag
End-to-end tracingOne correlation ID followed across every hopSeparate logs per tool with no shared ID
Error handlingConfigurable retries, exception queue, replay from the consoleRetries hard-coded, failed messages only in log files
Error classificationErrors grouped by type and ownerOne generic “failed” status
Connector healthAutomated health checks and alerts before traffic failsYou find out when users complain
Business-level monitoringDashboards and alerts in business termsOnly CPU, memory, and HTTP codes
OpennessExports to your observability stack, for example via OpenTelemetryMonitoring data locked in one console

A platform with good diagnostics still needs clear ownership. Decide who watches the exception queue on weekends before you go live.

Are failed syncs reaching your customers before IT?

We review your integrations, retry and error handling, and monitoring, show where data can be lost, and give you a prioritized plan to close the gaps across IBM and non-IBM platforms.

BOOK AN INTEGRATION HEALTH CHECK

Independent advice, not tied to any platform vendor.

Anna - PMO Specialist
Anna PMO Specialist

Independent advice, not tied to any platform vendor.

BOOK AN INTEGRATION HEALTH CHECK
Anna - PMO Specialist
Anna PMO Specialist

Can integrations detect and recover from failures automatically?

Yes, for temporary failures. A well-designed integration retries timeouts, restarts failed components, switches to a standby endpoint, and replays messages once a system is back. Failures caused by bad data or business rules cannot be fixed by retrying, so they should go to the right person, who does not always need to be in IT.

Automatic recovery depends on knowing which failures a machine can solve.

FailureAutomatic responseWhen to escalate
Target system briefly unavailableRetry with backoff, circuit breaker, queue messagesOutage longer than the agreed window
Connector or process crashHealth check detects it, platform restarts itRepeated restarts in a short period
Network or data center failureFailover to a standby runtime or regionFailover itself fails
Message rejected for invalid dataMove to exception queue, notify data ownerSame error from many records, which suggests a mapping problem
Expired credentials or certificatesAlert ahead of expiryAlways escalate to IT, never retry blindly

Integrations between marketing tools and CRM are a good example. A campaign sync that fails at night can retry on its own when the marketing platform is back. Contacts rejected because of a missing consent flag should go to a marketing operations owner with a clear explanation and a “fix and resend” option, rather than to an IT ticket queue.

Automation needs limits. Retries without idempotency create duplicates, and unlimited retries can turn a small outage into a flood when the system comes back. Set a maximum number of attempts, then hand over to people.

What to do when customer data is out of sync between systems

When customer data no longer matches between systems, stop guessing and reconcile. Confirm which system is the source of truth for each field, compare record counts and key values, trace missing or duplicated updates by correlation ID, fix the cause at the source, and only then replay or resend the affected messages. Bulk overwrites without a diagnosis usually make it worse.

A practical sequence:

  1. Pause automatic bulk fixes, so nobody overwrites good data with bad.
  2. Confirm the system of record for each field, for example the CRM for contact data and the ERP for credit limits.
  3. Compare the systems: counts per day, key fields, and last-updated timestamps.
  4. Check the exception queue and logs for the period when the drift started.
  5. Look for typical causes: messages processed out of order, duplicates from retries, a mapping change, or a silent failure on one source.
  6. Fix the cause before repairing data.
  7. Replay or resend only the affected records, then reconcile again.
  8. Add a business-level check so the same drift triggers an alert next time.

Validating connectors after a migration from legacy systems

Migrations are a common source of drift. When you replace an old ESB, broker, or point-to-point interface, run the old and new connectors in parallel for a period, compare their outputs automatically, and track counts and totals per business flow on a reconciliation dashboard. Keep the old connector available until the comparisons stay clean through at least one month-end or other peak.

We describe the wider approach in our guide to modernizing mission-critical systems without downtime. If you need an independent view of your current interfaces first, an integration audit is a good starting point.

Where IBM fits

IBM is a strong option when your integrations already run on IBM MQ or IBM integration software, or when you need one view across several integration runtimes in a hybrid environment. Its messaging has mature support for durable delivery and failed-message handling. If your integrations run mainly on a single cloud iPaaS, its native tools plus an open observability stack may be enough.

IBM MQ uses a dead-letter queue on each queue manager for messages that cannot be delivered, so they are stored for later handling instead of being lost. For messages that an application repeatedly fails to process, IBM MQ supports a backout queue and threshold, which moves these “poison messages” aside so they do not block the rest of the queue.

For monitoring across tools, IBM Integration, formerly IBM webMethods Hybrid Integration and IBM Cloud Pak for Integration, connects applications, APIs, events, and data across hybrid environments. IBM describes its hybrid control plane as a single place to govern and monitor APIs, integrations, events, and messaging, including third-party runtimes.

In our projects, the hard part is rarely the tool. It is agreeing error ownership, retry limits, and business alerts with the teams that depend on each flow. For background on choosing between messaging and streaming, see our IBM MQ vs Kafka decision guide. For implementation help, see our IBM Cloud Pak for Integration and IBM integration modernization services.

Key takeaways

  • Integration failures are normal, but data loss can be designed out.
  • Combine durable delivery, retries with backoff, idempotent processing, and an exception queue with clear ownership.
  • Give every message a correlation ID and bring all integration runtimes into one monitoring view, with business-level alerts.
  • Automate recovery for temporary failures, and route data and business errors to the people who can fix them.
  • When data drifts between systems, reconcile and fix the cause before replaying anything.

If failed syncs keep reaching your customers or your reports before they reach IT, an independent review of your integrations is a good first step.

Talk to our integration specialists about an integration health check.

Integration error handling FAQ

What is a dead-letter queue?

A dead-letter queue is a holding queue for messages that cannot be delivered or processed, for example because the target does not exist or the message keeps failing. Instead of losing those messages, the system stores them so a person or an automated rule can fix the cause and resend them.

What is the difference between retry and replay?

A retry repeats a failed delivery automatically, usually after a short delay. A replay resends messages later, often after a fix, from a queue, log, or exception queue. Retries handle temporary problems, and replays recover from longer outages or defects.

Is exactly-once delivery possible across systems?

Within one platform, some messaging systems offer exactly-once processing. Across several independent systems, it is hard to guarantee. Most reliable integrations use at-least-once delivery with idempotent processing, so duplicates are recognized and ignored.

What should you monitor in enterprise integrations?

Monitor flow status end to end, error rates by type, retry counts, queue depth and message age, connector health, latency per flow, and business metrics such as orders received versus orders posted. Alert on trends as well as on single failures.

How is integration monitoring different from application performance monitoring?

Application performance monitoring looks at the speed and errors of individual applications. Integration monitoring follows business data across several applications and checks that every message arrived, in the right order and in the right form.

How quickly should integration failures trigger alerts?

It depends on the business impact of each flow. Payment and order flows may need alerts within minutes, while nightly master data syncs can be checked after each run. Set thresholds per flow with the business owner.

Sources and further reading

Talk to expert →
contact

Thank you for your interest in Multishoring.

We’d like to ask you a few questions to better understand your IT needs.

Justyna PMO Manager

    * - fields are mandatory

    Signed, sealed, delivered!

    Await our messenger pigeon with possible dates for the meet-up.

    Justyna PMO Manager

    Let me be your single point of contact and lead you through the cooperation process.