Preserve source identifiers through n8n nodes

19 April 2026

A hand searches cards in an open wooden catalogue drawer.
Illustrative photograph. Cropped and resized. Photo: “Hand in filing cabinet.jpg” — Watty62 / Wikimedia Commons. · CC BY-SA 4.0

When one n8n input becomes two operations, carry the same source ID into both branches and give each operation its own ID. The first result to finish is not necessarily the first result you requested.

Split one source into two traceable operations

Suppose request R-42 contains PDF source S-17, revision 2. The workflow generates a preview and extracts text. Create the identifiers before splitting the input and carry them through the nodes that call or receive each operation.

Source and revisionChild operationExpected output
S-17, revision 2P-42Preview image
S-17, revision 2T-42Extracted text

Keep the request ID too. The same source may legitimately be processed in another request, and a retry of P-42 is not a new input PDF. If tracking attempts matters, give the attempt a separate identity from the logical child operation.

n8n's item linking connects workflow items to their inputs. That link is useful within the execution. An explicit source and child ID also gives a receiving system or reviewer a way to trace a result after it leaves the workflow. Check custom transformations where one input produces multiple outputs. n8n item linking concepts

Verify the mapping after order changes

Have the text extraction complete before the preview. Give a reviewer the resulting text and ask them to locate S-17 revision 2, T-42 and the other expected child. Repeat for the preview. Neither lookup should depend on item zero or on the order in which records were written.

If a branch drops its child ID, hold that result for reconciliation rather than joining to the nearest timestamp. Withhold one child result and check that grouping the other under S-17 cannot mark both operations complete. Keep source ID, child ID, outcome and output reference in the receipt without logging the underlying PDF or text.

Part of the Run a PDF workflow in n8n and recover a partial job guide.

Trace source documents through an integration

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 verified document/metadata flow diagram and third-party register.

A document that crosses an integration needs an identity that survives the hop, and a list of who touches it.

HopIdentifier you sendIdentifier you can read afterwardsThird party at this hop
Into the integrationYour source idMust still be thereNamed, or none
Out to the destinationThe same id, or a mapped id you have written downMust still be thereNamed, or none

Labelled synthetic case. Send one harmless file with a distinctive source id. Read it back at the destination. If the id changed, record the mapping. If it disappeared, that is the finding.

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.

Preserve input identity across chained PDF operations

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 an API contract, synthetic batch and partial-failure reconciliation log.

A limit is part of the contract. Write the limit you will enforce per job, and what a partial failure leaves behind.

CaseLimitWhat you sentWhat remainsReconciled?
Inside the limitThe number you setA small batchThe outputs you expectedNot run
Past the limitThe sameOne item overMust be explicit, not silentNot run
A failure halfwayThe sameA batchNamed items done and not doneNot run

Labelled synthetic case. Run a batch of harmless files and stop one on purpose. The log should say which items finished. A single “failed” for the whole batch is not reconciliation.

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).