View Single Post
Old 11-17-2021, 04:46 AM   #2316
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
That error suggests that a there is a duplicate ToC in the book. The ToC is stored in a table called "content". The primary key on this is the column "ContentID". That has to be unique. For the ToC entries, the ContentID is made up of the path to the book plus the path of the file inside the book plus a fragment if it is used. And some other stuff depending. In this case, it seems there are two ToC entries "Start" and "Cover", both pointing to the same file "titlepage.xhtml". That is a little bit weird and I haven't seen it before. Most times I have seen a "Start" entry in the ToC, it is the only entry. It's probably put in by some tool when it can't generate a better ToC.

I just tried this. And the device only adds one of these ToC entries when the book is imported. The ToC check sees both of these entries in the book but doesn't compensate. I'll fix that, but, it might be a few days.

Personally, I would remove the extra entry in the book. It's not really doing anything. If it actually pointed to the the start of the actual text, it would make more sense. It makes me think was a book like I mentioned above that only had "Start" and then someone created a full ToC for but didn't remove the existing entry.

You should be able to work out which books are suffering from this in the debug log. In this case, the book is "City of Bones" by Martha Wells. This should be the first book that failed in the list. All the earlier books should be fixed. And I'll look at a bit better error handling as well.
davidfor is offline