• Data Lab

A stuck document: what each status means and how to unblock it

Date:

What the Pending, Processing, Ready and Error statuses mean, how to tell whether the document is advancing, the causes behind most cases and what to do in each one.

Statuses of a stuck document in the Data Lab and how to unblock processing

A document that stays in Processing or moves to Error almost always has a concrete explanation and a way out. This page explains what each status means, how to tell whether the document is working or has stopped, what the causes behind most cases are and what to do in each one. None of them is a failure on your part: the status describes what has happened to the file, not what you have done wrong.

The four statuses and what they mean

The Status column in the Data Lab document list uses four values. Three of them are a transition and only one is the end.

  • Pending. The document is queued, waiting its turn. The detail says it more precisely: Queued, waiting to be processed… There is nothing to do here but wait.
  • Processing. Text is being extracted and the graph built. The document detail shows the processing phases and which one it is in: text extraction and vectorisation, topic classification and graph extraction, building the twin.
  • Ready. The document is now part of the twin. It is the only status in which its nodes can be queried.
  • Error. Processing did not reach the end. The document stays in the list, but it contributes nothing to the twin while it is in this state.

It stays in «Processing»: when to wait and when to look

How long a document takes depends on its size, on how many pages it has and on how many documents are ahead of it in the queue. That is why the clock alone tells you nothing: a long report with many documents waiting can take considerably longer than a shorter one uploaded at a quiet moment.

The signal that does work is not time, it is movement. Open the document detail and look at the processing phases. While the document advances, the phases change status and the Chunks column ends up showing a number. A document that has been in the same phase for a good while, with the chunk figure not moving, is the case that deserves attention.

Before acting, three quick checks, in this order:

  1. Check whether other documents are queued. If you have just uploaded ten files at once, the last ones are waiting their turn and their status is Pending for a while. That is the queue working.
  2. Look at the detail, not the list. The list gives the overall status; the detail says which phase it is in and what has happened in each one.
  3. Check the size. A document with many pages or an Excel file with dozens of sheets needs more time than a ten-page PDF, and there is nothing to fix.

If after those three checks the document is still in the same phase and with no chunks, the most productive move is to reprocess it: the action in the document menu launches processing again from the beginning and does not delete the document. If reprocessing leaves it stuck at the same point again, it is no longer a matter of waiting: move on to the causes section, because the problem is in the file.

It moves to «Error»: what has happened

The Error status means processing could not be completed. In practice it comes down to two things: the text could not be extracted from the document, or the graph could not be built from that text. It is almost always the first, and it almost always has to do with the format the file is saved in, not with its content.

It is worth saying clearly from the start: the error is not caused by what you wrote in the document or by how you uploaded it. Mimética accepts PDF, DOCX, XLSX and CSV, and processing fails when there is no text to read inside the file, when it is password-protected or when the file arrived incomplete.

Symptom, likely cause and fix

The table collects the cases that explain most errors. Every row is resolved on the same Data Lab screen, except converting the file, which is done on your own machine before uploading.

SymptomLikely causeWhat to do
Moves to Error almost instantly, with documents of many pagesA scanned PDF with no text layer. The pages are images and there are no characters to extract.Run the PDF through text recognition (OCR) or ask the area that generated it for the digital original. Then upload it again.
Moves to Error and the file will not open without a passwordA PDF protected with a password or with permissions that prevent copying the content.Save an unprotected copy from your PDF reader and upload that copy. The protected original stays out.
The file weighs less than it should or the reader warns that it is damagedAn incomplete download or a truncated file.Download it again from the source and check that it opens fully before uploading.
An Excel file that fails or takes a long time and comes out with little dataMany hidden sheets, formulas without calculated values, or cells that depend on another workbook.Save a copy with the values calculated and only the sheets that contribute. If the workbook is large, split it by area.
A very long document that stays in Processing and ends in ErrorThe volume exhausts the processing time.Split it into several documents by topic block and upload them separately.
Reprocessing changes nothing and the status returns to ErrorThe problem is in the file, not in processing.Fix the file at the source (text, password, integrity) and upload the corrected version.

How to check whether a PDF has selectable text

It is the check that resolves the case in under a minute, and it is done with the PDF reader you already have, with no additional tool.

  1. Open the PDF and search for a word you can see on screen using the reader’s search (Ctrl+F on Windows, Cmd+F on Mac). If it finds it, the text is there and the problem is something else.
  2. Try selecting a sentence with the mouse. If the cursor passes over the text and highlights it, there is a text layer. If nothing is highlighted, what you are looking at is an image.
  3. Select all and copy (Ctrl+A and Ctrl+C) and paste into a text editor. If the content appears, the PDF is suitable. If nothing appears, or gibberish appears, the file comes from a scan.

A useful detail so as not to be misled: the PDF being selectable does not guarantee the text is in good shape. If loose characters or broken words come out when you paste, the recognition was done badly and it is worth redoing it. When the PDF comes from a scanner, the recognition has to be applied before uploading: doing it afterwards is not possible, because extraction happens only once, at the moment of processing.

What changes nothing

Uploading the same file again, exactly as it is, without touching anything. If the document gave an Error because it has no text, because it is protected or because it is incomplete, the second upload reproduces the same result: the processing is the same and so is the file. You lose time and gain a duplicate row in the list.

There is one legitimate exception: uploading the same type of document with different content, for example the corrected version sent by the area that generated it. That is indeed a different document and worth doing. The difference is simple: if the file changes, upload it; if the file is the same, do not.

Changing the document’s category to try to get it to process does not help either. The category is assigned after reading the text, so if the text could not be extracted, there is nothing to classify. That route is explained in recategorizing or reprocessing, and it is for documents that did process.

When to write to support and what to attach

The cases on this page are resolved from the Data Lab. It is worth writing to support when any of these three conditions applies:

  • You have fixed the file as the table indicates and the document gives an Error again.
  • The document stays in Processing at the same phase after reprocessing it twice.
  • The status changes without you doing anything, or the document disappears from the list.

So that the answer arrives resolved in the first message, it is worth including four details: the exact file name as it appears in the list, the status it stays in, the approximate time you uploaded it and whether reprocessing changed anything. With that, the specific processing can be located without asking you for anything else.

What to do next

If the document did process but the nodes it generated are not the ones you expected, or if you want to launch processing again after changing the file, the detail is in recategorizing or reprocessing, which explains what is replaced and what is preserved.

If the document is fine and what you want is for it to stop weighing in the twin without deleting it, that is activating or deactivating a document. And if the problem is that the area has been left without sources, the reference is topic categories and coverage. For the formats the Data Lab accepts and what happens in each phase, uploading documents is the starting page.