Troubleshooting
Fixes for the problems people run into most.
Exit codes
| Code | What to do |
|---|---|
65 | The file cannot be read: it is damaged, protected, an old format, or not an Office file. See below |
66 | The input cannot be opened. Check the path and permissions |
74 | The output cannot be written. Check the -o path and that the folder exists and is writable |
75 | The file is over a safety limit, or it took longer than --timeout |
3 | A feature is not supported (for example a template with macros) |
All codes: Exit codes.
"Not a valid Office file"
fetlar: bad.docx: Not a valid Office file (bad zip)The file is not an Office file, or it is damaged. Check that it opens in Word, Excel or PowerPoint. A file renamed from another format, or a download that stopped early, gives this message.
A password-protected file
Fetlar refuses protected files. Ask for an unprotected copy, or remove the password in Word, Excel or PowerPoint and save a new copy.
An old .doc or .ppt file
Old .doc and .ppt files are not supported yet. Open the file in Word or PowerPoint and save it as .docx or .pptx, then read that. Old .xls files do work.
"command not found" or the wrong version
Run fetlar --version. The latest version is 0.5.0. If yours is older, another copy is earlier on your PATH. Run which fetlar to see which, and remove the old one or use the full path.
macOS says it cannot open fetlar
See Install. Open System Settings, then Privacy & Security, and choose Open Anyway.
A big workbook is slow or cut off
- If the output says cells were cut off, the workbook has more than 2,000,000 non-empty cells. Raise the limit with
--max-cells, or read part of it through the MCP tool withpages. - To use less memory, set
FETLAR_THREADS=1. - To stop a runaway file, add
--timeout 60.
Excel cells are empty
Fetlar shows the values Excel saved. A formula that was never calculated has no saved value. Open the file in Excel, save it, and read it again.
A sheet, row or slide is missing
Hidden sheets, rows, columns and slides are left out. Add --hidden to include them.
Search finds nothing
- Run
fetlar index statusto see that the folder is indexed. - Run
fetlar index updateto pick up new files. - Run
fetlar index skippedto see files that could not be read. - Hidden sheets and text are not indexed unless you added
--hidden. - All words must be in the same sheet, slide or section. Try fewer words.
A "no value for" error when filling
The template has a placeholder that the data does not. Run fetlar fill template.docx --names to see what it reads, and add those names to your data.
Arabic looks wrong in Excel
CSV files need a byte order mark for Excel to read Arabic. fetlar write adds one by default. For anything important, write .xlsx instead.
The compare says the files cannot be compared
Only these pairs compare: Word with Word, Excel (.xlsx or .xls) with Excel, CSV or TSV with CSV or TSV. PowerPoint and HTML cannot be compared yet. See Comparing files.