EPUBCheck OPF-074: same file in two items
Updated:
EPUBCheck OPF-074 is an error message: “Package resource "…" is declared in several manifest items.” The same file is declared by more than one manifest item. Each publication resource must be listed once, so a reading app can rely on one id and one media type per file.
The official message
Package resource "%1$s" is declared in several manifest items.
- 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 file added twice to the manifest with different ids.
- Two manifests merged when combining books.
- The same path written with different spellings, such as with and without ./ at the start.
How to fix it
When it's not this
If two different files have names that clash after case folding, that is OPF-060.
Terms used here
Other OPF messages
Sources
Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EpubCC.