Process several PDF attachments from one message

9 June 2026

Hands position a sheet in a hole punch beside office stationery.
Illustrative photograph. Cropped and resized. Photo: “Person Office Supplies” — Matt Moloney / NegativeSpace. · CC0 1.0

Give the email a parent record and each attached PDF its own child record. Then decide what a failure means for the business pack. The invoice can be technically readable while its required supporting appendix is still missing.

Map the cover, invoice and appendix

Suppose one message contains three PDFs. The cover and invoice open, but the appendix fails the agreed parsing check. Record the original message ID, each attachment's stable ID and role, and the result of its technical checks. Preserve those facts independently of the next business decision. Example attachment manifest

ChildTechnical stateBusiness question
CoverReadableDoes it contain instructions that change how the other files should be handled?
InvoiceReadableMay it enter review without the appendix, or is the complete pack required?
AppendixFailed parsingWho requests a replacement and how will the corrected file be matched?

An all-or-nothing downstream rule does not require falsely marking the cover and invoice as invalid. Their original outcomes remain useful when a valid appendix arrives.

Apply an explicit dependency rule

If the appendix is mandatory for release, hold that decision and show exactly which child is blocking it. If the appendix is optional for initial intake, the invoice may proceed to the authorised review stage with a visible exception. Neither route is automatic approval of the invoice for payment.

When the replacement arrives, assign it a new intake identity and link it to the failed appendix and original message. Verify the replacement under the same rules. If it clears the block, resume the intended downstream step without creating another invoice job for the cover or the previously accepted invoice.

Use the three child records to show the operator what arrived, which item failed, what work may proceed and who owns the unresolved attachment.

Part of the Deduplicate PDF email attachments without losing their case guide.

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