Do non-ASCII characters in file names break document indexing over a Unity Catalog volume?

suranga
Databricks Partner

I spent a few days on a document retrieval problem that turned out to have nothing to do with the retrieval setup, and I want to check whether anyone else has hit the same thing.

Setup: around 40 internal PDF documents in a managed Unity Catalog volume, indexed for question answering. Ordinary text PDFs, not scans. I confirmed that by pulling text out of one of them and getting roughly 77,000 characters.

Symptom: the index reported every file processed with zero errors. Every question came back with nothing retrieved. Not a wrong answer, not a partial one. Empty, and no error anywhere in the chain.

Two things came out of this and I think they are worth separating.

1. "Every file processed, 0 errors" was true and useless

That count measures files enumerated, not text landed. It cannot tell a real extraction apart from a silent empty one. So for several days I had a green status and no working retrieval, with nothing in between to tell me which I had.

What I would want instead is a per-document character or chunk count, and an explicit count of files that indexed to zero retrievable content. If your only health signal cannot distinguish success from silence, it is not a health signal. That holds for any parse-then-index pipeline over a volume, so if you are building one, add the output-side count before you need it rather than after.

2. File names, and this is the part I am actually asking about

The catalog, schema and volume names were all lowercase letters, digits and underscores. Clean ASCII. The file names were not. Six of the documents had Swedish characters in the name, and every file name contained spaces. Names along these lines:

Lönepolicy 1995.pdf

Jämställdhetspolicy 3054.pdf

Policy för hybridarbete 57.pdf

ASCII is 95 printable characters: the Latin letters, the digits, the space and common punctuation. Everything carrying a mark, so every Swedish, German, French, Polish or Czech letter, sits outside it. Most of a pipeline is character agnostic right up to the one hop where a file name becomes part of a path, a URL, a JSON key or a shell argument, and that is where I would expect this class of bug to live.

So I copied the volume, kept only the documents whose names were plain ASCII, and deliberately kept the spaces, so that non-ASCII characters were the only variable that changed. Same compute, same documents, same configuration.

Being straight about the limits of that: in the run where answers came back correctly, I still had the original volume and the ASCII copy attached at the same time, so an answer could have come from either one. I am rerunning it against the ASCII copy alone before I claim the file names are the cause. I will post the result in this thread either way.

What I am hoping someone can tell me:

  • Has anyone seen non-ASCII characters in file names break document parsing or indexing over a UC volume, silently or otherwise?
  • If you work with Nordic, German or Polish documents, do you normalise file names to ASCII on the way in as a matter of course?
  • Once a file name has been flattened, where do you keep the readable original title? A metadata column alongside the parsed text, or something else?