Catch missing, altered and extra files in a PDF handover

15 January 2026

Archive shelves holding labelled boxes and rolled documents.
Illustrative photograph. Cropped and resized. Photo: “Documents on shelves in the archive store (History Centre) at the Herbert.jpg” — mooncow / Wikimedia Commons. · CC BY-SA 3.0

A recipient can receive the expected number of PDFs and still have the wrong files. In this four-document handover exercise, a manifest identifies each expected path and file hash. Try the three supplied failure cases to distinguish a missing invoice, altered tables and an unexpected extra file.

Related articles

How do you prove which versions arrived?

The decision is whether responsibility for a defined document collection can move from one system or owner to another without losing required content or context. Name the sending owner, receiving owner, migration operator and person authorised to accept exceptions. Give the collection a fixed cutoff or an explicit method for reconciling later changes.

State what is being transferred: current documents, prior versions, attachments, metadata, access rules, processing history and relevant retention instructions. A folder containing the latest PDFs may be only part of the archive. Ask the owner which relationships make those files usable and which evidence must survive.

Where this guidance stops

This guide concerns transfer and reconciliation. It does not design the organisation’s retention policy, determine legal admissibility or certify a preservation format. Those decisions inform the handover. A successful copy also does not prove that the destination’s search, permissions or business workflow operates correctly.

Inventory files, metadata and permissions

Versions, retention metadata and access rules

Use a stable document ID and version separately from the filename. The destination may require different folders or naming conventions; identity should remain traceable through that change. Record the original location and the intended destination location in the same row.

Inventory fieldPurposeCheck at receipt
Document ID and versionDistinguish records and revisionsNo unexplained missing or duplicated identity
Source and destination pathsPreserve the transfer mappingEach approved path resolves within the intended collection
Byte size and checksumCompare the transferred bytesRecompute from the received file
Descriptive metadataRetain title, dates and relationshipsCompare required fields and interpretation
Access rulePreserve authorised useTest approved and denied reader cases
Retention or hold referenceCarry the owner’s instruction forwardConfirm the destination applies the agreed rule

Do not collapse two records merely because their bytes match. A document can legitimately belong to two cases with different ownership or retention context. Conversely, two files with the same name may contain different versions. Resolve duplication through the record identities and the owner’s decision.

The BagIt specification, RFC 8493, illustrates the distinction between a complete package and one whose manifest checksums have also been verified. It also explains that manifest integrity checks do not secure a package against active attacks without additional measures. Use an approved transfer and authentication process as well as checksum comparison.

Four matching documents and three failed transfers

Inputs, assumptions and the expected result

The transfer manifest describes four original synthetic PDFs: a table fixture, an invoice corpus, drawn character strokes and a cleaned redaction example. Each has a stable ID, version, size, SHA-256 value, source reference and proposed destination path. The examples contain no customer archive.

On 31 October 2026, a local experiment copied the files into isolated temporary destinations and compared the received set with that manifest. Each case started from a fresh copy. The fault cases then removed one file, appended a harmless synthetic comment to one PDF, or added an unexpected extra copy.

Executed caseExpected identitiesReceived filesResult
Unchanged transfer44All four hashes matched
Invoice file removed43Missing invoice file identified
Table file bytes altered44Table checksum mismatch identified
Extra stroke-file copy added45Unexpected file identified

The altered-file case demonstrates why equal counts are insufficient. Four files arrived, but one did not match the recorded source bytes. The extra-file case demonstrates why “all expected files present” is also insufficient when the permitted collection must be exact.

The saved results identify the actual filenames and matching counts. The reproduction script preserves the procedure and original fixture references. The supplied manifest is a teaching format; it is not claimed to be a certified BagIt package.

What the results establish

The experiment verifies byte-level set reconciliation for four known files. It does not test an archive application, metadata import, search index, access controls or human acceptance. The signature fields are empty, and no receiving owner has approved the transfer. An unsigned example must not be presented as an accepted organisational handover.

Reconcile completeness and usability

Counts, integrity, retrieval and key workflows

Perform reconciliation at several levels. First compare expected and received identities. Then compare the byte properties for each mapped version. Next verify required metadata and relationships. Finally, exercise the tasks that make the destination useful to its intended users.

For a real collection, select retrieval cases deliberately: a recently amended contract, an old version, a restricted document, an attachment and a record with an unusual filename. Have the authorised user find the correct item through the normal interface and open the expected version. A direct filesystem lookup by the migration operator does not test that journey.

Where transformation is intentional, expect the hash to change. OCR, redaction or format conversion produces a new output that needs its own identity, transformation record and appropriate content checks. Preserve the source hash and link it to the new version. Do not overwrite the source checksum with the destination value merely to make the comparison pass.

Test both permitted and prohibited access. A reader who should see a document must be able to retrieve it; a reader outside that scope must remain unable to do so. Record the actual roles used and protect sensitive test evidence. The synthetic manifest’s proposed access label is not a tested destination permission.

Keep a reconciliation total that accounts for accepted, missing, rejected, transformed and deferred records without double counting. Every source identity should have one explained disposition, even when its transfer is intentionally postponed.

Acceptance checklist for a PDF archive handover

Exceptions, rollback and preservation of source evidence

Each exception needs a document ID, observed difference, consequence, owner and next action. Distinguish an approved exclusion from an unexplained absence. For example, an owner may authorise a restricted record to remain in the source system, but the handover must state how future users obtain it and who maintains that arrangement.

Use these checks before requesting acceptance:

  • The source cutoff and any final changes have been reconciled.
  • Every required identity and version has an explained destination or exception.
  • Expected bytes match, or authorised transformations have their own evidence.
  • Required metadata, relationships and retention instructions are accounted for.
  • Retrieval and access tests cover the agreed user tasks.
  • The receiving owner has reviewed the unresolved exceptions and responsibilities.

Preserve the source collection until the agreed acceptance and rollback conditions are met. A successful transfer script is not authority to delete it. Record whether rollback means returning to the original system, restoring a snapshot or reversing a limited import, and test the relevant method within an authorised environment.

A corrected transfer should receive a new reconciliation record. Retain the failed record as part of the history, so the team can explain what changed and why the final decision differs. Do not silently remove failed rows from the evidence pack.

Accept ownership and ongoing stewardship

Acceptance record and future responsibility

The final handover record should identify the accepted collection, manifest version, verification date, methods, exceptions and responsible people. Attach the receiver’s actual approval through the organisation’s accepted process. A typed role name in a template is not that approval.

Name the ongoing owner for retrieval support, permission changes, preservation checks and retention actions. Explain how a user reports a missing or incorrect document and where the evidence is kept. Responsibility for the bytes and responsibility for the surrounding business process may belong to different teams; both need a clear handover.

For the supplied example, the justified outcome is that four bounded transfer checks behaved as recorded. The next step is to apply the manifest to an authorised collection, perform destination usability and access tests, reconcile exceptions and obtain the receiving owner’s decision. Only then can the organisation describe its own archive handover as accepted.

Verify PDF file checksums after migration

Compare the checksum of each transferred file with its source entry and investigate individual mismatches before accepting the archive.

Read “Verify PDF file checksums after migration”.

Reconcile file counts without double-counting versions

Count physical files and logical version histories separately so multiple revisions of one document do not inflate the reconciliation.

Read “Reconcile file counts without double-counting versions”.

Handle missing files in an archive handover

Compare expected and received identifiers even when the counts match. An unexpected file can conceal the absence of a required one.

Read “Handle missing files in an archive handover”.

Record custody changes for business documents

Record who transferred and accepted the archive, which inventory they used and which exceptions remained at the point of handover.

Read “Record custody changes for business documents”.

Sources

  • RFC Editor, RFC 8493, The BagIt File Packaging Format (V1.0), October 2018: https://www.rfc-editor.org/rfc/rfc8493.html. Sections 3 and 5.4; accessed 31 October 2026. The local JSON manifest is not represented as a BagIt conformance result.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with ChatGPT. Editorial and technical checks by Kairos (Codex). The linked articles were drafted with NotebookLM and independently checked and edited by Kairos (Codex).