Designing Failure Handling Into Data Integration Services A Data Integration Services flow failed at two in the morning. It was retried four times, failed each time, and was discarded. Nobody found out for eleven days, when a customer asked why their address change had not taken effect. Integrations fail routinely and the handling is usually an afterthought. Here is what Data Integration Services should specify about failure before anything is built. Discarding is a decision somebody made by default The uncomfortable starting point. Our connector retried and then gave up, because that was the library default and nobody had changed it. Silently losing a message is the worst available outcome and it is what you get unless somebody chooses otherwise. Every integration we build now states explicitly what happens after the last retry. Separate transient from permanent failure Because they need opposite responses. A timeout is transient and retrying helps. A malformed record is permanent and retrying it four hundred times helps nobody and fills the logs. Ours classifies on the error. Transient failures retry with backoff. Permanent ones go aside immediately, which keeps the queue moving and the errors visible. Build the dead letter path first Not as a later improvement. Failed messages go to a holding area with the original payload, the error, the timestamp, and the number of attempts. That area is monitored, has an owner, and has a documented process. Ours had none of this for two years, which is why eleven days passed. Make replay possible and safe Which requires idempotency. A replayed message must be safe to process twice, because you will not always know whether the first attempt partially succeeded. Three of our integrations created duplicates on replay. We found that during a recovery rather than during design, which is the expensive way to find it. Decide whether order matters Explicitly, per integration. Some flows must process in sequence. An address change followed by an account closure produces a different result in the other order. For those, a failure blocks the queue deliberately rather than being set aside. For everything else it does not. Treating all integrations the same way gets one of those two cases wrong. Alert on the queue, not just the error The signal that catches the quiet failures. An integration producing no errors because it is receiving nothing looks perfectly healthy on an error dashboard. We alert on throughput falling below expectation as well as on failures. That has caught three incidents where an upstream system had simply stopped sending. Reconcile independently Because the integration cannot audit itself. A daily comparison of record counts and key totals between source and destination finds what message level monitoring misses. Ours found a flow that had been dropping about one per cent of records for four months. Every individual message had succeeded. Give every integration an owner and a runbook Named, with the failure modes written down. What this flow does, what it depends on, what has failed before, how it presents, and what the response is. Our eleven day incident involved a flow nobody owned. Data Integration Services delivered without named ownership are delivered to nobody. Run it through proper pipelines With the same discipline as application code. Ours are deployed through pipelines our DevOps Company partner built, with tests, review, and staged rollout. Integration logic deployed by hand into a graphical tool is the most common arrangement we see and it is why these estates are hard to change safely. Keep the measurement honest When somebody asks what the work is worth. We were asked to build an AI ROI framework around integration reliability, on the argument that clean data enables future capability. We reported four operational numbers instead. Messages lost, mean time to detect a failure, replay success rate, and reconciliation discrepancies. All four moved, and none of them depended on anybody believing a forecast. What our failure design specifies ● An explicit stated behaviour after the final retry, never a library default. ● Classification of transient against permanent failure. ● A monitored dead letter area with an owner and a process. ● Idempotent processing so replay is safe. ● A per integration decision on whether order matters. ● Throughput alerting alongside error alerting. ● Independent daily reconciliation of counts and totals. ● A named owner and a runbook for every flow. ● Deployment through tested, reviewed pipelines. Common questions What happens after the last retry? Whatever you decided, or discarding if you did not. Ours discarded for two years because nobody had changed a default. Should every failure be retried? No. Permanent failures should go aside immediately. Retrying a malformed record four hundred times helps nobody. How do you catch silent failures? Alert on throughput and reconcile independently. Ours lost one per cent of records for four months with every message succeeding. Is replay safe? Only if processing is idempotent. Three of ours created duplicates, and we found out during a recovery. Should order always be preserved? No, and deciding per flow matters. Data Integration Services treating every integration identically get one of the two cases wrong. Who builds the deployment path? Ours was built with our DevOps Company partner on the same standard as applications. Integration logic deployed by hand is why these estates are hard to change. How long should a message be retained? Long enough to replay after a fix is deployed. Ours holds fourteen days, which has always been enough. What is the first thing to add? A monitored dead letter area with an owner. Data Integration Services without one are discarding messages by default. Who should own an integration? A named team with a runbook. Our eleven day incident was a flow that belonged to nobody. Where we are now Explicit failure behaviour on every flow, a monitored dead letter area, idempotent processing, throughput alerting, and daily reconciliation. The message that failed at two in the morning would now raise an alert by six and be replayed by nine. Nothing about the integration itself is any better.