0

My epub files pass epubcheck, but Kindlegen refuses to generate mobi files. It seems that issue is caused by adding references ("colophon", "dedication", etc.) to pages.

I'm really hitting a wall here. I would really appreciate some EPUB

FILE + ERROR LOGS: https://we.tl/UtGqtAxbir

  • 2
    Hi and welcome on this site; I've read your question and it is not clear what your problem is or what you are asking here; and, linking to a downloadable file without even explaining what it is supposed to be is not a good practice. You should try to improve your question. – Sekhemty Feb 16 '17 at 20:34
1

I had the same problem, was caused by repeated chapters.

  • Do you mean: "by including two versions of the same chapter." – idiotprogrammer Apr 15 '17 at 14:44
  • yes, by mistake I was repeating the same chapter twice in the TOC. – guerrerocarlos Apr 17 '17 at 18:27
  • This was my issue as well, although I didn't grok your answer at first -- it would have been more clear to say 'it was caused by duplicate chapter names'. – Ben Feb 20 '18 at 3:41
1

I hit the same problem today. The problem appeared to be that the links in the nested (or

  • for EPUB3, no difference) pointed to locations other than the parent element.

    So this code caused the same error you got: enter image description here The key is that, because of a quirk in InDesign export, the section head was created as a separate file. I went in and put the items into pessoa_book_of_disquiet_text-8.xhtml, like so

    enter image description here Voila, no more error. It looks like for Kindle, nested content has to be in the same file as the parent. To be clear, I had to move all the content into the file, not just change the names.

    Does this fix your problem?

    0

    The key error is here:

    Error(prcgen):E24011: TOC section scope is not 
    included in the parent chapter:Table of Contents
    

    I'm not 100% sure what this means. Perhaps 5824-Section.xhtml seems to be causing the issue. (I'm assuming).

    It's very strange that the epub file validates. This is probably an issue with Kindlegen, but there are times when Calibre is incompatible with kindle.

    Probably the strangest thing to me when I examine your epub file is that toc.xhtml (on line 24) lists itself as an item in the TOC. Why is it linking to itself? That is definitely something which might confuse Kindlegen.

    Kindle requires a virtual table of contents at the front of the ebook, and your toc.xhtml would normally contain links to all the chapters. This one does not do that.

    Unfortunately while it is relatively easy to figure out epub issues, Kindlegen sometimes produces strange errors, and the best solution is to keep removing chapters until you get a version that works. Then try to figure out why.

    Remember that with epubs you can rename them to zip files and then unzip the files to examine everything.

    0

    It seems that kindlegen does not like duplicated names in the TOC. I ran across this issue and was only able to resolve when I renamed one of my headers. For reference, I am using Pandoc to generate the ePub file, with a TOC depth of 3. In this particular case, I had an H2 and an H3 with the same name. I renamed the H3 to be unique and the problem disappeared.

    -2

    some chapters are linking same name or same id that's called an error.

    for example:

  • Chapter 1
  • Chatper 2

    Your Answer

    By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

    Not the answer you're looking for? Browse other questions tagged or ask your own question.