Handle multiple PDFs in one n8n execution
14 November 2025
Start by identifying each attachment, then track each accepted PDF through the execution. A single n8n success signal does not establish that every document produced a usable result.
Build the item list at intake
Suppose an input message has two PDFs and a plain-text note. Give all three a parent intake reference and each a separate child ID. Record the incoming binary property and, if the final package must preserve the sender's sequence, the original ordinal.
| Child | Initial decision | Expected outcome |
|---|---|---|
| A, first PDF | Validate as a permitted PDF. | One result or a recorded item-level failure. |
| B, second PDF | Apply the same validation independently. | Its own result or failure, linked to B. |
| C, text note | Route under the non-PDF policy. | Record the disposition without calling the PDF processor. |
Use the declared MIME type as an input to routing, not conclusive proof of the file format. Ensure each accepted item retains its own binary data. n8n distinguishes binary properties from descriptive JSON, so copying the filename alone will not deliver the file to the next node. n8n binary-data documentation
Reconcile the execution by child ID
Suppose B completes before A. Match it to B by its child ID, not its position in the output list. Where the downstream task is a merge, use the original approved ordinal to reconstruct the required order after both accepted items are ready. A parallel extraction task may not need presentation order at all.
If A fails, retain B's successful result and C's non-PDF disposition. Decide whether the intended pack can proceed under its own completeness rule. Show the operator what succeeded, which child failed and whether the parent still needs action. Test a retry of A and verify that it cannot create a duplicate output for B. n8n item linking concepts
Part of the Run a PDF workflow in n8n and recover a partial job guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
