Match the report title.
Look for "OPF_002 OPF file not found in the EPUB" or the closest title above. Keep the original EPUBCheck, KDP, or Kindle Previewer wording if it differs.
EPUB error guide
Use this when EPUBCheck reports OPF_002, container.xml points to an OPF path the EPUB does not contain, or when the rootfile path is wrong. Find the real package file before you change the rootfile path.
Scan when the message does not name the affected path. The report shows affected paths and repair decisions, not manuscript text.
Fixed-layout, DRM, or source-workflow issue? Check unsupported or review-first EPUB cases.
Match these report titles
Use this guide when
Your message matches "OPF_002 OPF file not found in the EPUB" or one of the report titles above.
Upload if
You have the exported reflowable .epub and need the affected path, file, field, or repair decision before editing.
Handle outside this tool
Use the source tool or publishing workflow for DOCX, PDF, KPF, KCB, fixed-layout, comics, image-first books, DRM, visual design, or KDP listing and approval problems.
Read the scan report
Use the report label, affected file, and repair decision together. A matching title alone is not enough if the file path or EPUB structure points to a different problem.
Look for "OPF_002 OPF file not found in the EPUB" or the closest title above. Keep the original EPUBCheck, KDP, or Kindle Previewer wording if it differs.
Use the Affected area, Source file, Target file, or Problem type rows before editing OPF, nav, XHTML, CSS, or image paths.
Repairable means one clear structural change. Needs review or Not supported means use the named file, source project, or platform step.
Copy these fields from the report instead of rebuilding the fix from memory.
1. Example report output
The report should prove whether the container path is wrong and whether one replacement OPF is clearly correct.
EPUBCheck message
ERROR(OPF-002): META-INF/container.xml: The OPF file "OEBPS/content.opf" was not found.
KDP / Previewer wording
The EPUB package file is missing or the container points to an invalid package path.
EPUB Fixer report
container.xml points to OEBPS/content.opf. The EPUB contains OPS/package.opf and no OEBPS/content.opf.
Do this next
Change the rootfile path only if OPS/package.opf is the single valid OPF package file.
Do not do this
Do not point container.xml to a random .opf when multiple package files exist.
Safe repair means correcting the container map to the one real package file, not guessing which OPF should represent the book.
2. Next step
The next step depends on how many OPF files the package contains.
Scan first
List the exact full-path from container.xml and every .opf file found in the EPUB.
Safe repair
Update the rootfile full-path to that package file only if its metadata, manifest, and spine are valid.
Manual review
Stop when the OPF is missing, duplicated, nested in an export folder, or part of a multiple-rendition package.
3. Concrete path example
The folder name or export level is often the whole problem.
EPUBCheck: ERROR(OPF-002): META-INF/container.xml: The OPF file "OEBPS/content.opf" was not found. Report: container.xml full-path: OEBPS/content.opf Found OPF files: OPS/package.opf Fix decision: safe repair only if OPS/package.opf is the single valid package After: update rootfile full-path, then validate again
If the scan finds both OEBPS/content.opf and OPS/package.opf, do not choose one automatically.
Quick decision
Changing container.xml is simple; choosing the wrong OPF can make the EPUB validate against the wrong package.
Scan first
Check folder names, capitalization, and whether the EPUB was zipped from the correct directory level.
Safe fix
Update container.xml to that path, then validate the OPF manifest, metadata, and spine.
Stop
Do not guess when there are multiple OPF files, no OPF file, nested parent folders, or multiple rendition packages.
Start here
This error does not mean the whole EPUB is empty. It means META-INF/container.xml points to an OPF path that the package does not contain exactly.
The EPUB has META-INF/container.xml, but the path inside that file points to an OPF package file that is not actually there.
The rootfile pointer can be repaired when the correct OPF target is clear and the package has a single safe match.
Open META-INF/container.xml and copy the rootfile full-path value.
It is unsafe when multiple OPF files exist, when the OPF is missing, or when multiple renditions require an editorial choice.
Common situations
Most missing OPF errors come from container.xml pointing to a stale or wrong package location.
container.xml points to OEBPS/content.opf, but the package now uses OPS/package.opf.
Update only if OPS/package.opf is the single valid package file.
All files sit under an extra parent folder, so the rootfile path no longer resolves.
Repackage from the correct directory level rather than patching random paths.
content.opf became package.opf during export or cleanup.
Change the rootfile path if there is one valid renamed package.
An old OPF and a new OPF both exist, or the package contains multiple renditions.
Manual review is required before choosing the root package.
OPF_002: The OPF file was not found.
container.xml exists, but the rootfile path points to an OPF file that is not inside the EPUB package.
What it means
The EPUB has META-INF/container.xml, but the path inside that file points to an OPF package file that is not actually there.
The OPF may have been moved, renamed, zipped from the wrong folder, or referenced with the wrong case or relative path.
Before you edit
The repair is safe only when there is one clear package file. Multiple OPF files, nested exports, or missing package files should stop for manual review.
Why KDP checks it
The EPUB ZIP wrapper must point readers to the OPF file through META-INF/container.xml and keep packaged resources at the paths the book references.
The OPF file is the EPUB's map: metadata, file list, reading order, and navigation wiring. KDP and EPUBCheck use it to decide whether the book package is coherent.
Can this be fixed safely?
The rootfile pointer can be repaired when the correct OPF target is clear and the package has a single safe match.
It is unsafe when multiple OPF files exist, when the OPF is missing, or when multiple renditions require an editorial choice.
Before: container.xml points to OEBPS/content.opf, but the EPUB contains OPS/package.opf. After: the rootfile path is aligned only if that is the single valid package file.
Ready to retry?
A scan should show the full-path value from container.xml and every .opf file found in the EPUB, including folder and capitalization.
Upload EPUB to scanFAQ
Usually META-INF/container.xml points to an OPF path that does not exist exactly inside the EPUB ZIP package. The path may have changed folder, name, or letter case.
It can be safe to fix when there is one valid OPF file and the container rootfile pointer clearly points to the wrong path. Multiple OPF files or missing OPF files need manual review.
In this error, container.xml exists but points to the wrong OPF path. In a container.xml missing error, the map file itself is absent from META-INF.
Do not pick one automatically. Multiple OPF files can mean multiple renditions, an old export leftover, or a damaged package, so the intended package file needs manual confirmation.