EPUBCheck Error RSC-005: What It Means and How to Fix It
RSC-005 is EPUBCheck's generic schema-validation failure — the XML is well-formed, but something isn't allowed where it appears. Here's how to read the message and fix the real cause.
By Magnus | Published 2026-11-13 | Category: Troubleshooting
RSC-005 means your EPUB's XML is well-formed but violates the EPUB schema somewhere specific — a missing required attribute, an incomplete element, or a duplicate ID. The fix is always in the message text itself: it names the exact file, line, and column.
What RSC-005 Actually Means
EPUBCheck validates a file in two separate stages. First it checks whether the XML is well-formed — every tag opened is closed, nothing is malformed at the character level. Then it checks the well-formed XML against the actual EPUB specification's schema: which elements are allowed to appear where, which attributes are required, and how things like the table of contents and spine have to be structured.
RSC-005 is what you get when a file passes the first stage but fails the second. The XML itself is fine. Something in it — usually one specific element — isn't allowed to look the way it looks, according to the EPUB spec.
The Most Common Causes
Across the exports that generate it most often — InDesign and Affinity Publisher's EPUB export, and hand-edited XHTML — a small number of root causes account for most RSC-005 reports:
- A missing required attribute. The most common single case is an <a> link with no href attribute — a cross-reference or table of contents entry that got exported without its target.
- An incomplete structural element. A list tag like <ol> or <ul> that ended up with no list items inside it, usually from an export step that generated the wrapper but not its contents.
- A duplicate ID. Two elements in the same XHTML file sharing the same id value. This one needs care to fix — check every link that targets that ID before renaming it, since the navigation or a cross-reference may depend on the exact value.
How to Read the Full Error Message
A complete EPUBCheck RSC-005 line looks something like this:
ERROR(RSC-005): chapter-03.xhtml(142,18): element "a" missing required attribute "href"
Read it left to right: the error code, the file (chapter-03.xhtml), the exact location (line 142, column 18), and the plain-text description of what's wrong. That last part — "element 'a' missing required attribute 'href'" — is the actual bug. The error code just tells you which category of problem it falls into.
How to Fix It
- Open the exact file and line the message names, not the file at a glance — RSC-005 reports are precise about location.
- Match the description against the element: add the missing attribute, add the missing child element, or resolve the duplicate ID.
- If the same RSC-005 message repeats across many chapters, look for one shared cause — an export template or a find-and-replace step that introduced the same mistake everywhere — rather than fixing each occurrence by hand.
- Re-run EPUBCheck after each fix. One structural error can sometimes mask a second one further down the same file.
If you'd rather not debug raw EPUBCheck output by hand, run a free check at MJ Convert Systems — no account required — and convert through the platform instead. Every file it produces is run through EPUBCheck as part of the pipeline before you ever see it, so a structural validation failure is caught and fixed automatically, not something you discover after KDP rejects the upload.
If RSC-005 showed up after a KDP upload specifically — rather than from running EPUBCheck yourself — the structural issue is probably only one of several things worth checking. See our guide on why KDP keeps rejecting your eBook for the other common causes.
Frequently Asked Questions
- What does EPUBCheck error RSC-005 mean?
- RSC-005 is EPUBCheck's generic schema-validation error. It means the file you gave it is well-formed XML — no broken tags — but something in it violates the EPUB specification at the exact location named in the message: a missing required attribute, an element used where it isn't allowed, or an incomplete structure.
- Is RSC-005 always the same problem?
- No — RSC-005 is a category, not a single bug. The real cause is always in the message text that follows it, which names the file, line, and column, plus a short description of what the schema expected instead. Two RSC-005 errors in the same book can have completely unrelated root causes.
- Why does my InDesign or Affinity Publisher export have dozens of RSC-005 errors?
- One structural mistake repeated by a template — a missing href on a cross-reference link, or a table of contents entry generated the same broken way for every chapter — shows up as one RSC-005 line per occurrence. Fixing the one underlying template issue and re-exporting is usually faster than fixing each line individually.
- Does MJ Convert Systems check for RSC-005 errors automatically?
- Every file MJ Convert Systems produces is run through EPUBCheck as part of the conversion pipeline, before it's released to you — so a structural validation failure is caught and reported, not something you discover for the first time after KDP rejects the upload.
See more guides on converting PDFs to Kindle
MJ Convert Systems PDF to EPUB converter
See pricing and plans — credits from $9.99, or Pro from $47.97/month
Start with a free PDF check — no subscription required