Scan first
You only have the duplicate id value.
Find every occurrence and every href, nav, toc, footnote, or backlink that points to the same id.
EPUB error guide
What duplicate ID and RSC_005 EPUB parsing errors mean, and why many require careful review.
1. Example report output
A useful duplicate id report should show the repeated value and whether links make automatic repair risky.
EPUBCheck message
ERROR(RSC-005): OEBPS/Text/chapter2.xhtml(88,12): Error while parsing file: duplicate ID "note-4".
KDP / Previewer wording
The EPUB contains invalid XHTML or a duplicate anchor that prevents reliable conversion.
EPUB Fixer report
chapter2.xhtml has two id="note-4" values. nav.xhtml and footnote backlinks may target one of them.
Do this next
Rename and update links only when the intended target for each duplicate is clear.
Do not do this
Do not delete one id before checking TOC links, footnotes, endnotes, backlinks, and internal anchors.
Safe repair is possible only when the duplicate can be separated without changing where readers land.
2. Next step
RSC_005 can be a small XHTML cleanup or a navigation-risk problem.
Scan first
Find every occurrence and every href, nav, toc, footnote, or backlink that points to the same id.
Safe repair
Rename the accidental duplicate and update affected links only when the intended targets remain clear.
Manual review
Stop when footnotes, endnotes, repeated headings, MathML, semantic markup, or reading order are involved.
3. Concrete path example
The report should connect the repeated id to the links that might break.
EPUBCheck: ERROR(RSC-005): OEBPS/Text/chapter2.xhtml(88,12): Error while parsing file: duplicate ID "note-4". Report: File: OEBPS/Text/chapter2.xhtml Duplicate id: note-4 References: chapter2.xhtml#note-4, nav.xhtml#note-4 Fix decision: manual review if footnote backlinks use the same id After: validate XHTML and EPUBCheck again
If both copies are footnote targets or reader navigation anchors, passing EPUBCheck is not enough; the links still need to land in the right place.
Quick decision
The more links that point to the id, the less safe an automatic rename becomes.
Scan first
Use the file path and id value from EPUBCheck, then search nav, toc, XHTML links, footnotes, and backlinks.
Safe fix
Rename or remove only the accidental duplicate, update any affected links, and validate the EPUB again.
Stop
Do not auto-rewrite footnotes, endnotes, semantic markup, repeated headings, MathML, or reading-order anchors.
Start here
RSC_005 can look like a simple rename, but duplicate ids are often tied to TOC anchors, footnotes, backlinks, or repeated headings. Find every reference before changing one.
IDs are supposed to be unique within a document. Duplicate IDs can break links, footnotes, TOC anchors, and reading system behavior.
EPUB Fixer can help with simple duplicate attributes or clearly isolated duplicate IDs when the affected links can be updated and the file passes EPUBCheck again.
Find the XHTML file named in the validator message before editing any other file.
Do not rewrite complex XHTML structure, MathML-heavy content, semantic footnotes, or cases where changing an id would break intended reading links.
Common situations
Duplicate ids often appear after editing or conversion, but the safe action depends on what points to the id.
A converter created id="chapter-title" more than once in the same XHTML file.
Rename only if TOC and internal links can be updated cleanly.
The same note id appears twice and backlinks may return to different paragraphs.
Manual review is safer unless every footnote link target is obvious.
Copy-paste preserved old anchors inside a repeated block.
Check whether the duplicate block is intended content before editing ids.
The parser may stop at the id while the real issue is broken surrounding markup.
Inspect the local XHTML before making id-only changes.
RSC_005: Error while parsing file. Duplicate ID.
EPUBCheck cannot parse an XHTML file cleanly because the same id appears more than once, or markup is malformed.
What it means
IDs are supposed to be unique within a document. Duplicate IDs can break links, footnotes, TOC anchors, and reading system behavior.
Duplicate IDs often appear after copy-paste editing, automatic export bugs, or manual XHTML edits.
Before you edit
The safe question is not just whether the id is repeated. It is whether renaming one copy can preserve the intended reading target and all backlinks.
Why KDP checks it
EPUBCheck checks EPUB 2 and EPUB 3 files against the official rules and reports package, markup, link, and file-reference problems.
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?
EPUB Fixer can help with simple duplicate attributes or clearly isolated duplicate IDs when the affected links can be updated and the file passes EPUBCheck again.
Do not rewrite complex XHTML structure, MathML-heavy content, semantic footnotes, or cases where changing an id would break intended reading links.
Before: two headings use id="subhead-1". After: a safe repair is only possible if references can be updated without changing reading order or meaning.
Ready to retry?
A scan should show the file path, line number, repeated id value, and any TOC, nav, footnote, endnote, or internal link that points to that id.
Upload EPUB to scanFAQ
It means an XHTML document contains repeated id values or malformed markup that prevents EPUBCheck from parsing the file safely. Duplicate ids can break TOC links, footnotes, and internal anchors.
Only in simple cases where one duplicate can be renamed and all affected links can be updated safely. If the duplicate affects footnotes, semantic markup, or reading order, the report should stop for manual review.
Some readers ignore repeated ids or choose the first match. KDP, Kindle Previewer, and EPUBCheck need valid XHTML structure so links and navigation targets resolve consistently.
Only if no link, TOC entry, footnote, or backlink depends on it. Deleting the wrong id can pass validation while breaking reader navigation.