Skip to content
EPUBCheck · Package document (OPF)

EPUBCheck OPF-067: file in link and manifest

Updated:

EPUBCheck OPF-067 is an error message: “The resource "…" must not be listed both as a "link" element in the package metadata and as a manifest item.” The same resource is listed both as a link in the metadata and as a manifest item. EPUB treats linked records and publication resources differently, so a file must be one or the other.

The official message

The resource "%1$s" must not be listed both as a "link" element in the package metadata and as a manifest item.

Default severity
Error. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.
EPUBCheck version
5.4.0

%1$s, %2$s… are filled in with the file, value or element EPUBCheck found.

Typical causes

  • A metadata record (such as an ONIX file) linked with link and also added to the manifest.
  • A tool that adds every file in the folder to the manifest.
  • A link added later for a file that was already declared.

How to fix it

  1. Read the file name EPUBCheck quotes.
  2. Decide: if the file is part of the publication (used by the content or the spine), keep the manifest item and remove the link.
  3. If it is only an external record about the book, keep the link and remove the manifest item.

When it's not this

If a local link simply lacks its media type, that is OPF-093.

Terms used here

Other OPF messages

  • OPF-066 Missing "dc:source" or "source-of" pagination metadata. The pagination source must be identified using the "dc:source" and "source-of" properties when the content includes page break markers.
  • OPF-065 Invalid metadata declaration, probably due to a cycle in "refines" metadata.
  • OPF-070 Custom collection role "…" is an invalid URL.
  • OPF-063 Referenced Adobe page-map item "…" was not found in the manifest.
  • OPF-062 Found Adobe page-map attribute on spine element in opf file.
  • OPF-072 Metadata element "…" is empty.

Sources

Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EpubCC.

FAQ

What does EPUBCheck OPF-067 mean?

EPUBCheck OPF-067 is an error message: “The resource "…" must not be listed both as a "link" element in the package metadata and as a manifest item.” The same resource is listed both as a link in the metadata and as a manifest item. EPUB treats linked records and publication resources differently, so a file must be one or the other.

Is OPF-067 an error?

OPF-067 is reported as error by default. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.