Prevent duplicate processing during upload retries

3 November 2026

A person draws a workflow box and arrow on a whiteboard, viewed from behind.
Illustrative photograph. Cropped and resized. Photo: “Office Graph” — Kristin Hardwick / NegativeSpace. · CC0 1.0

A client submits a PDF, times out and tries once more. The two attempts tell you how often the client sent the request. They do not establish how many jobs the server accepted or how many outputs it published. In a controlled test, connect both attempts to the intended submission, the authenticated uploader and the final output before concluding that a retry was handled correctly.

Distinguish the request key from the receipt

If the service supports an idempotency key, the client can choose or retain it before sending the first request. A server receipt records what the service accepted. A timed-out client may never receive that receipt, even if a worker starts. Record a separate attempt ID for each send while retaining the same logical-operation key for a genuine retry. Include tenant, authorised identity and operation in the comparison.

EvidenceFirst attemptOne authorised retry
Business action and inputRecord tenant, purpose, input digest and logical operation.Confirm these identify the same intended operation.
TransportRecord attempt identity, send time and timeout.Record a different attempt identity and the sending time.
Server stateLook for the admission receipt and job ID. Leave unknown until traced.Check whether the response refers to that job, a separate job or a rejection.
Published outputRecord the actual output ID, destination and access.Confirm the number of downstream effects after both attempts settle.

Case UP-08 in the first-party test worksheet proposes a repeated submission with finite attempts and no unexplained duplicate accepted outputs. Its observed-result field is blank. It specifies a test the buyer can run, not an observed deduplication success. Benign upload tests

Examine a missing key without conflating two genuine submissions

Suppose the client cannot recover the original key after a restart. The same checksum could identify two intentionally separate submissions of identical bytes, even from the same user. Do not merge solely on the hash or an active session. Ask the service owner to trace the intended business action and the first admission state before authorising another effect. If a reused key accompanies a changed operation or payload, require the supported conflict or review path.

Give the buyer a reconciliation showing the attempt IDs, associated job or jobs, terminal outcomes and receiver-visible effects. A single preview in the interface is useful evidence, but does not exclude an extra queued job or a duplicate downstream notification. Record what was inspected and keep unknowns open.

Part of the Assess security controls for PDF uploads guide.

Recover an interrupted PDF upload safely

This section answers a narrower question than the rest of this page, and it does not mint a new URL. The original contribution preserved here is a connectivity test matrix and safe offline/online handoff runbook.

A retried request must not become a second job. Give the operation an identity you can recognise after the network returns.

StepWhat you sendWhat you expect if the response is lostResult
First attemptOne job, with your own idempotency keyA single stored resultNot run
Retry of the same attemptThe same key, not a new documentNo second resultNot run
A genuinely new documentA new keyA separate resultNot run

Labelled synthetic case. Use two harmless files and one repeated key. Count stored results. The count is the test. This is not a bypass of the service’s own limits.

The rest of this page remains the parent decision. Use the table for the question in the heading, and leave a cell blank rather than filling it from memory.

Avoid duplicate PDF jobs after n8n retries

This section answers a narrower question than the rest of this page, and it does not mint a new URL. The original contribution preserved here is a tested n8n workflow definition using verified generic API steps.

A credential in a workflow is a secret. The test is whether the workflow runs without the secret being written into a node you can export.

CheckWhat you looked atSecret visible?
The exported workflowThe file you can share internallyMust be no
A run log for a harmless callThe logMust be no
Where the secret actually livesThe store you intendNamed, not pasted here

Labelled synthetic case. Export a sample workflow that calls a harmless endpoint. Search the export for the credential. This section does not include a key, a token, or a step that recovers one.

The rest of this page remains the parent decision. Use the table for the question in the heading, and leave a cell blank rather than filling it from memory.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).