Products · DLQ Manager · Repair and resend

One contract change, thousands of dead-lettered events, repaired once

A producer ships a new contract and an hour of perfectly good orders dead-letters. Repair and resend lets you describe the fix on one message, prove what it does to every message before anything is sent, and release the resend at a pace you control - while every message keeps its own identity and values.

Understand the failure

Filter to the failing population by cluster, reason, label or time. The selection is frozen the moment you start: later arrivals are a separate, visible population.

Preserve the data

A field you move keeps each message's own value; a value can be read from the message's properties or captured facts. The example is a proposal the product checks, never an oracle it copies.

Prove the repair

Validate against every message with nothing sent: would change, unchanged, held by a rule, failed, could not be read - and the five add up to the whole selection.

Control the release

A first stage, a second, then the rest under a rate budget, pausing between stages. Pause, continue or cancel at any time; nothing the broker accepted is ever taken back.

Explain every outcome

Resent, failed, uncertain, held, skipped, cancelled - and expired for a resend past its deadline - exact counts at any size, every row exportable, the transformation version and the approval on record.

When a whole batch dead-letters for one reason

The messages are not broken - something between two services changed. The data is still the order, the payment, the shipment the business needs. Repair and resend turns the clean-up from a project into a procedure.

A contract change between microservices

The producer moved customerId under customer.id and bumped the schema version; the consumer was deployed first and rejects the old shape. Move, rename and set the fields once, on one message - every message keeps its own customer.

A missing header or property

A release forgot the tenant code, the correlation property or the label the consumer routes on. Set it from another property, from a value in the body, or as a literal - and hold the messages where the source is missing instead of guessing.

A wrong value spread across a batch

A bad configuration stamped the wrong code, currency or endpoint into an hour of messages. Replace the value only where it matches, so the messages that were right stay untouched - and validation proves which ones change.

A downstream outage, now over

Nothing was wrong with the messages; the database or the partner API was down. Resend them as captured, with no repair - in stages, under a rate budget, so the service that just recovered is not flattened by the backlog.

The same failure next month

Keep the repair as a transformation that says where it applies and carries its own test. Next time the same contract trips, the transformation is offered first for that entity and that failure reason - the fix is a selection, not a rewrite.

The same incident, two ways

Thousands of orders dead-lettered after a contract change. What the team does next:

By hand

  • Peek the dead-letter queue page by page in an explorer tool, or write a drain script.
  • Copy bodies to files; write a one-off script to transform them; test it on a handful.
  • Hope the handful was representative - the outliers are found by the consumer, in production.
  • Re-publish everything at once, through a tool with the namespace keys on someone's laptop.
  • No way to pause when the consumer starts failing again; no clean record of what was sent.
  • Message ids, properties and history are lost or rebuilt by hand; the audit trail is a chat thread.

With Repair and resend

  • Filter to the failure and freeze the selection - later arrivals stay out.
  • Edit one message as it should look; the rules are derived and written as sentences.
  • Validate every message with nothing sent; the outliers are held with the reason before anyone is affected.
  • Release only what the validation proved, in stages you can pause, continue or cancel.
  • A second person approves the exact plan when the batch is large; the approval cannot be reused for anything else.
  • Every outcome is counted and exportable; the transformation version, the approval and every pause are on record.
  • Only one repair runs per queue or subscription at a time, and everyone sees who holds it - two operators cannot send the same messages twice.

No scripts to write and review, no keys handed around, no replay done blind. The people who understand the business data do the repair; the platform guarantees it is applied the same way to every message, and proves it before anything is sent.

1 · Select the messages, and freeze them

From the Messages page, filter the grid to the failure - the top failure cluster, the dead-letter reason, a label, a time range - or tick the rows you mean, and press Repair and resend. The workspace opens with that selection frozen at a captured-time cutoff, so the count you see is the count that will be validated and the count that will be released.

  • Frozen selection. Filters, ticked ids and the cutoff are stamped on every step; "later arrivals excluded" is written on the card.
  • The newest rows of the selection are shown so you know you are looking at the right population before you touch anything.
The Messages page for the orders queue, filtered to the incident with a search: the top failure cause ContractValidationError, the toolbar with Resend ALL, Repair and resend, Archive ALL and Delete ALL, 'Total: 135 messages', and the first rows with their enqueue time, dead-letter reason and label
Step 1: filter to the failure and press Repair and resend - the workspace opens with exactly this selection, frozen at a cutoff.

2 · Define the repair on one message - and see it on the others

Pick a saved transformation (the ones that declare this entity or this failure reason come first), or edit one message as the example - the editor opens on the newest JSON message. The product derives the rules and writes them as sentences: Set schemaVersion to 2 where it is 1, Move each message's customerId to customer.id, Set tenant.code from the application property tenantCode. The original message, the rules and the generated result sit side by side, and you can switch the example to any message of the sample.

  • Each message keeps its values. A moved or copied field carries every message's own value; a value equal to one of the message's properties is read from that property; a literal is typed, so "00123" stays text and 2 is a number.
  • Lists are asked, not guessed. A change inside a list asks whether you mean this item, every item with the old value, or the items where a sibling matches - and shows the exact rule each answer runs.
  • Blocked rather than dropped. Invalid JSON, a list that changed length, a value that changed shape: the edit is stopped with the reason, and nothing runs until it is complete.
  • Held rather than guessed. A missing or null source, a type that cannot convert without loss, a target that already holds a different value - the message is held and reported, never changed by guesswork.
The start of step 2 in the Repair and resend workspace: the frozen selection card '135 messages · orders · captured before the freeze time · later arrivals excluded' with Change selection, the four-step rail with '2 Define repair' active, and the three ways to define the repair - Use a saved transformation, Edit one message as the example (selected, with Open the example editor and '3 rules derived from your example'), and Resend as captured (no repair)
Step 2: three ways to define the repair - a saved transformation, one message edited as the example, or resend as captured.
The example editor opened over the Repair and resend workspace (dimmed behind it), titled 'Edit one message as the example for all': the example message picker on the newest JSON order, the message as captured on the left (orderId PJ-0130, customerId C-0130, schemaVersion 1, application properties batch, producer and tenantCode 00123) and 'How every message should look' on the right, edited to customer.id C-0130, tenant.code 00123 and schemaVersion 2 and marked valid JSON, with the properties, label and content type as editable fields; below, 'What will change on every message': Set schemaVersion to 2 where it is 1, Move each message's customerId to customer.id
Edit one message as it should look; the rules are derived from the difference, and an edit that could mean more than one thing is asked about.
Step 2 of the workspace, below the frozen selection card '135 messages · orders · captured before the freeze time · later arrivals excluded': three columns - the original order (customerId C-0130, schemaVersion 1), the repair rules in words (1. Set schemaVersion to 2 where it is 1; 2. Move each message's customerId to customer.id, as text, hold when missing or when the target holds another value; 3. Set tenant.code from the application property tenantCode), and the generated result with customer.id C-0130, tenant.code 00123 and schemaVersion 2 under 'Each message keeps its values'; below, the sample preview over 50 of 135: 46 changed, 0 unchanged, 2 held, 2 failed, and 'Validate all 135'
The original, the rules and the result for one example; the sample preview over fifty messages tells you the shape is right.

3 · Validate every message, with nothing sent

A sample of fifty tells you the shape is right. It does not tell you that every message is like your example. Validate all runs the rules over the whole frozen selection and sends nothing. When it finishes, every message is accounted for in one of five outcomes: would change, unchanged, held by a rule, the transformation failed, or could not be read - such as an XML body in a JSON repair. The five add up to the validated total, the reasons are grouped, and the counts are marked provisional until every message has a result.

  • Reconciled, not sampled. Would change + unchanged + held + failed + unreadable = every message of the selection, each one listed in the report with its outcome and reason.
  • Send only what was proven. The default sending policy sends only the messages the validation proved would change; the unchanged and the held ones stay exactly where they are.
  • Stale means stale. Change a rule after validating and the validation is marked stale: it describes the rules it ran, not the ones you have now. A message edited after it was validated, or snoozed after the selection was frozen, is held with that reason - never sent under the old proof.
Step 3 of the workspace, 'All 135 messages checked': five cards - 125 Would change (sent, changed, when you start the resend), 3 Unchanged, 5 Held by a rule, 2 The transformation failed, 0 Could not be read - each with Show messages; the reasons 'Held: a value the rules read from is missing' 5 and 'Failed: The body is not JSON' 2; the sending policy 'Send only the 125 changed and valid messages' selected with 'Not sent: 3 unchanged, 5 held by a rule, 2 where the transformation failed, 0 unreadable', 'Transformation v1 · validation matches the current plan', 'Validated at ...; messages are checked again before sending'; and Staged sending on the right: stages of 100, 1,000, then the rest, at most 100 per second, pauses after each stage
Step 3: every message validated, the outliers explained, and the policy to send only what was proven.

4 · Send in stages you can pause

Anything larger than a hundred messages is released in stages by default: a first stage of 100, a second of 1,000, then the rest, at most 100 messages per second, pausing after each stage until you continue. Watch the consumer take the first hundred before the rest goes. Or release all at once, or your own shape.

  • Pause, continue, cancel. Pausing stops new sends (batches in flight finish); cancelling is for good - what the broker already accepted stays sent, the rest is never sent and is reported as cancelled.
  • Bounded. A resend must finish within 14 days of its start; past that it shows Expired and sends nothing more - start a new resend, with a fresh validation, for what remains. Pausing, cancelling or expiry never strands a message: what Service Bus already accepted is recorded as resent.
  • Outcomes that mean something. Resent (accepted by Service Bus), failed (no retry can fix it), uncertain (a retry may; the broker may have taken it), held, skipped, cancelled. Broker acceptance and business processing are separate outcomes.
  • Exact at any size. The counts come from a per-batch ledger - exact past the rows the screen shows, immune to a redelivered batch - and the CSV exports every row.
Step 4 of the workspace: the plan in words on the left (orders, captured before the freeze time; transformation 'Contract v1 to v2' v1 applied to every message; validated against all 135: 125 would change, 5 held, 2 would fail; send only the 125 changed and valid messages; stages of 100, 1,000, then the rest), and on the right 'Resend in progress': 100 processed · 100 resent · 0 failed, '100 message(s) accepted by Service Bus so far. Whether the receiving application processed them has not been verified here.', 'stage 1 of 2 · paused - stage 1 of 2 completed; waiting for the operator to continue', the button 'Continue with the remaining 25', Cancel resend, and 'Pause and Cancel stop new sends only. Messages Service Bus has already accepted are not recalled.'
Step 4: the first stage is out and the release waits for you before the rest goes.
The same resend finished: 125 processed · 125 resent · 0 failed, '125 message(s) accepted by Service Bus', stage 2 of 2 · Finished, with View report and Back to messages
Finished: the outcome counts and the report with every row.

What goes wrong stays visible

The proof run tried the faults as hard as the happy path. An edit that is not valid JSON is stopped in the editor with the line and column, and the resend cannot be continued until it is complete. Messages the rules cannot repair safely - here five without the tenant code and two XML bodies in a JSON repair - are held with the reason and never sent, and the three orders already in the new shape are counted as unchanged rather than repaired twice. A release cancelled while paused after its first stage reports exactly that: the hundred the broker accepted stay sent, the rest is never sent and is reported as cancelled.

The example editor refusing an invalid edit: the right-hand editor shows 'line 12, col 22' in red, the message 'JSON error - line 12, column 22: Expected ',' or '}' after property value', 'What will change on every message: Nothing yet', and the 'Continue to resend' button is disabled
Blocked, not dropped: an invalid edit is stopped with the reason and the resend cannot continue.
A resend cancelled while paused: the plan on the left, and on the right the card titled 'Cancelled' with a red mark: '125 processed · 100 resent · 0 failed · 25 cancelled', '100 message(s) accepted by Service Bus', 'stage 1 of 2 · cancelled', with View report and Back to messages
Cancelled after the first stage: what the broker accepted stays sent, the rest is reported as cancelled.

Approval bound to the exact plan

Above a threshold your tenant sets, the release becomes a request for a second person - and that person approves this exact plan: the selection and its filters, the cutoff, the transformation and its version, what the validation found, the send policy and the release shape. The product refuses to run anything else under that approval.

  • Proven before it is asked for. A tenant can require the full validation before a repair may be requested at all - the approver sees what was proven, not what was hoped.
  • No reuse. Pausing or continuing the same plan needs no new approval; changing the selection, the transformation, the destination or the stages does - and the same request id is never reused for a different selection.
  • Started on time, by someone still allowed. An approved plan must start within 24 hours. If another repair holds the entity, it waits and starts by itself - only while the approver's current permissions still allow it; otherwise it asks for confirmation.
  • A different person. The requester cannot approve their own request; every decision is audited, and an evidence pack can be exported.
The 'Approval required' dialog: 'This resend would touch 135 messages, above the tenant's approval threshold of 50. Request an approval first.', the transformation it will apply with its version, 'Validated against all 135: 125 would change, 5 held, 2 would fail', the release in stages of 100, 1,000, then the rest at most 100 per second, 'The approval is bound to this exact plan (filters, cutoff, transformation version, destination); any change needs a new request', a justification, and Request approval
The request carries the plan and what the validation proved.
The Approvals page: the subtitle 'Approving starts the operation under your name as soon as its entity is free; while another repair runs there, it waits.', the policy banner 'Approval is required for a bulk resend / delete above 50 messages. A transformed resend must be validated against the whole population before it can be requested.' and the pending requests - RESEND on sb-dlqmanager-lab / orders, 135 of a threshold of 50, the repair transformation by name with its version, marked validated and staged, the requester, Pending, its expiry, and Approve, Reject and the evidence download
The second person decides on the exact request - and can download its evidence first.
The tenant setting 'Approval for large replays and purges': threshold 50 messages, switches 'Applies to resend', 'Applies to delete' and 'Require a full validation before a transformed resend can be approved', all on
Your tenant decides the threshold, and whether a repair must be fully validated before it can be requested.

Transformations that know where they belong, and prove themselves

A repair you keep becomes a versioned transformation. It can declare where it applies - entity paths with wildcards, dead-letter reasons, labels - so it is offered first where it belongs. And it can carry its own tests: a message as captured and what the transformation must make of it. Every save runs the tests and refuses a transformation that fails one; one without tests is marked as not yet checked against examples. A bulk edit you keep gets its entity and reason as its applicability and your template as its first test, automatically.

The transformation editor for 'Contract v1 to v2' v1: the json.set step for tenant.code reading the application property tenantCode as a string with 'Hold the message' when missing or when the target exists; the 'Where it applies' section with entity path orders; and the Tests section, 1 passed, with the test 'Template d1843a94 as edited' expecting 'changed', the message as captured beside the expected result, both with their label and properties, and Run tests
A transformation with its applicability and a passing test - every save runs its tests.

What is on record

  • The transformation version that ran, and the engine version it was written for.
  • The validation report: every message, its outcome and its reason.
  • The approval request, the decision, and the plan it was bound to.
  • The sending policy, every pause, continue and cancel, by whom.
  • The per-message outcome report with exact counts, exportable as CSV.

JSON bodies today; the same contract for XML is next. Read the what's new stream for each step as it shipped, or the bulk operations section for the quick path.

Repair the next contract change in an hour, not a week.

Connect a namespace and try Repair and resend on your own dead-letters - free for 30 days.