View Single Post
Old 11-12-2022, 01:48 AM   #1
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,615
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Error: Failed to gather data

Hello,

When running the Reports tool, I occasionally encounter the "Error: Failed to gather data" error as shown in the image.

It is not a recent error, and has been around even in QT5 releases.
It affects EPUB v3.0 only
I am using Windows 10

To replicate...
Open the "Edit Table of Contents" tool
Delete all the entries
Run "Generate ToC from major headings"
I normally add a couple of extra items, like Cover page and Title page
OK.

When you run the Report tool, the error occurs.

To fix...
Delete the nav.xhtml and toc.ncx files
Recreate the table of contents.
This seems to fix whatever the problem is.

When I run "Check Book" or "EpubCheck" before the fix, no errors are flagged.

Why do I delete the existing TOC? Because I have recreated the chapters and most likely changed them from a <p> tag to the usual <h> tags. Or I have added additional pages like Character Summary.
Attached Thumbnails
Click image for larger version

Name:	toc_error.jpg
Views:	102
Size:	142.1 KB
ID:	197670  
Karellen is offline   Reply With Quote