Skip to main content
Participating Frequently
August 17, 2023
Question

E-pub file fails to conversion failure in Kindel Previewer - Error while parsing file: element "ol"

  • August 17, 2023
  • 1 reply
  • 1229 views

ERROR(RSC-005): ./books/Bo/databases/eBookIt/temp_uploads/1692281057.epub/OEBPS/toc.xhtml(9,9): Error while parsing file: element "ol" incomplete; missing required element "li"

 

Please help me with this.  

 

I exported my indesign file to e-pub in both options.  Fixed and reflowable it didn't mater I still got the error either way.

 

I tried using the Kindel Previewer and a different 3rd party converter that would convert my PDF to epub and it returned an error saying there was a conversion failure.  I couldn't get any information on the error.  

 

My conversion log says this: 
"Type","Description"
"Status","Book conversion successful."

 

This topic has been closed for replies.

1 reply

James Gifford—NitroPress
Legend
August 17, 2023

This is very odd. "ol" refers to the HTML bracket code for an Ordered List — that is, a numbered list. (An unordered or bullet list uses "ul".) What's odd is that InDesign pointedly does not export any definition for either ol or ul, so it must be a glitch in one of your text lists.

 

You can do two things here:

 

First, go through your ID document and make sure all ordered/numbered lists are completely 'clean' and use a fully defined style or styles. If there aren't many, it may be worth converting them to body text and re-applying the styles.

 

You can also "purge" the INDD file to clear up any corruption, which is common on files that are edited in many sessions. Save or export the file to IDML, then open that file and save it to INDD under a new name. That often purges corruption and fixes many structural faults.

 

And if neither of those fixes the problem, report back. 🙂

Participating Frequently
August 17, 2023

Thank you for your reply.  I tried the IDML to INDD trick but it didn't help.  Its also strange because my indesign file has no lists at all.  So right now my option is to remake the file unless there is something else that can be done.  

James Gifford—NitroPress
Legend
August 17, 2023

It very much sounds like some kind of file corruption that the IDML trick won't touch. (Rare, but it happens.)

 

It may be that there's a broken fragment of a list somewhere... can't think of any simple way to find it, though.

 

If you are up to opening the exported reflowable EPUB (it's just a ZIP file), and opening the content XHTML file, you can search for '<ol>' to find where ID and the file thinks an ordered list should be. Fixing that text, in style and so forth, would probably fix the problem. (You don't have to do anything further with the exported EPUB... it's just to search to find the ID doc problem.)