Preserve source identifiers through n8n nodes
19 April 2026
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 revision | Child operation | Expected output |
|---|---|---|
| S-17, revision 2 | P-42 | Preview image |
| S-17, revision 2 | T-42 | Extracted 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.
| Hop | Identifier you send | Identifier you can read afterwards | Third party at this hop |
|---|---|---|---|
| Into the integration | Your source id | Must still be there | Named, or none |
| Out to the destination | The same id, or a mapped id you have written down | Must still be there | Named, 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.
| Case | Limit | What you sent | What remains | Reconciled? |
|---|---|---|---|---|
| Inside the limit | The number you set | A small batch | The outputs you expected | Not run |
| Past the limit | The same | One item over | Must be explicit, not silent | Not run |
| A failure halfway | The same | A batch | Named items done and not done | Not 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).
