Skip to main content
Participating Frequently
December 12, 2025
Question

Another 'Fragment identifier is not defined' epub error

  • December 12, 2025
  • 1 reply
  • 225 views
Hi team,
 
I've had this error come up in my EPUB file. 
I've gone to line 262 in the file but there's nothing notable here, or am I missing the point?
 
Fragment identifier is not defined.
OEBPS/Inspiring-Independence-ePub.xhtml, line: 262
 

1 reply

Community Expert
December 12, 2025

I think that error means there’s a link in your EPUB pointing to an anchor (the bit after the # in a hyperlink) that doesn’t actually exist. It’s not the text on line 262 itself, but a hyperlink near that line trying to jump to an ID that isn’t in the file anymore often caused by a missing heading ID, a broken cross-reference, or an outdated TOC link. Check any links around that line for #something and make sure the matching id="something" exists elsewhere in the XHTML. Re-exporting or updating cross-references in InDesign often fixes it too.

Participating Frequently
December 12, 2025

Thanks for your answer. When I export the file to epub I also get this message: Text anchor not found: 15.

I've run a script to find all text anchors and deleted them. But I still get the same error message. I've also saved as an IDML file and resaved as ID to no avail. If there are no text anchors in teh document how can one be missing? 😕😕

Community Expert
December 13, 2025

There's a hangup somewhere.

 

Try exporting the pages in ranges and see where the problem lies.

 

Or try moving the pages to a new document see if it persists.