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.
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.
| Pattern | What it protects against | Where it falls short |
|---|---|---|
| Persistent, guaranteed delivery | Messages lost when a server or network fails mid-transfer | Does not stop a bad message from failing again and again |
| Retry with exponential backoff | Temporary outages, timeouts, and rate limits | Without idempotency, retries can create duplicate orders or payments |
| Idempotency keys | Duplicates when the same message is processed twice | Needs a stable business key and storage to check it |
| Dead-letter or exception queue | Endless retry loops and silently dropped messages | Only useful if someone owns the queue and acts on it |
| Transactional outbox | Changes saved in the database but never published, or the reverse | Requires changes in the source application |
| Replay from a log or queue | Data missed during an outage or a bad deployment | Needs retention long enough to cover the outage |
| Circuit breaker | A failing system being flooded by retries | Messages 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 type | Example | Typical action |
|---|---|---|
| Transient | Timeout, rate limit, short outage | Automatic retry with backoff |
| Data | Missing customer ID, invalid date, wrong format | Fix the data at the source, then replay |
| Business rule | Credit limit exceeded, product discontinued | Route to the business owner for a decision |
| Configuration or security | Expired certificate, changed endpoint, revoked credentials | Alert IT immediately, pause the flow |
| Code or mapping defect | Mapping fails after a schema change | Fix 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.
| Criterion | What good looks like | Red flag |
|---|---|---|
| End-to-end tracing | One correlation ID followed across every hop | Separate logs per tool with no shared ID |
| Error handling | Configurable retries, exception queue, replay from the console | Retries hard-coded, failed messages only in log files |
| Error classification | Errors grouped by type and owner | One generic “failed” status |
| Connector health | Automated health checks and alerts before traffic fails | You find out when users complain |
| Business-level monitoring | Dashboards and alerts in business terms | Only CPU, memory, and HTTP codes |
| Openness | Exports to your observability stack, for example via OpenTelemetry | Monitoring 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.
Independent advice, not tied to any platform vendor.
Independent advice, not tied to any platform vendor.
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.
| Failure | Automatic response | When to escalate |
|---|---|---|
| Target system briefly unavailable | Retry with backoff, circuit breaker, queue messages | Outage longer than the agreed window |
| Connector or process crash | Health check detects it, platform restarts it | Repeated restarts in a short period |
| Network or data center failure | Failover to a standby runtime or region | Failover itself fails |
| Message rejected for invalid data | Move to exception queue, notify data owner | Same error from many records, which suggests a mapping problem |
| Expired credentials or certificates | Alert ahead of expiry | Always 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:
- Pause automatic bulk fixes, so nobody overwrites good data with bad.
- Confirm the system of record for each field, for example the CRM for contact data and the ERP for credit limits.
- Compare the systems: counts per day, key fields, and last-updated timestamps.
- Check the exception queue and logs for the period when the drift started.
- Look for typical causes: messages processed out of order, duplicates from retries, a mapping change, or a silent failure on one source.
- Fix the cause before repairing data.
- Replay or resend only the affected records, then reconcile again.
- 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
- IBM Docs – Working with dead-letter queues (IBM MQ)
- IBM Docs – Handling poison messages in IBM MQ classes for JMS
- IBM – IBM Integration
- IBM – webMethods hybrid control plane
- OpenTelemetry documentation
- Chris Richardson – Transactional outbox pattern

