Common errors¶
Invalid CSV headers or rows¶
For FileReadingException, verify unique non-empty headers and exactly one cell per header on every row. The message identifies inconsistent lines. Quote commas or embedded newlines using CSV rules.
An identifier was lost after a failed test¶
Changing table[0].folio modifies memory only. Saving CSV requires DataTableSaver.into_csv or Save Data Table To Csv. If a case may fail before saving, record generated identifiers in result storage immediately and export CSV separately.
Unsupported extension¶
Resolvers choose adapters by extension. Use csv, json or xlsx matching the actual format.
Missing sheet_name¶
XLSX reading requires the sheet name:
Missing XLSX sheet¶
Check the exact sheet name in the workbook and provide it to sheet_name.
Non-rectangular records¶
Every record must match the first record's columns.
Normalize records before constructing the table, or add columns through controlled updates afterwards.
Missing path¶
Check absolute/relative paths, working directory and process permissions. A supported format does not make a missing file readable.
CSV type differences¶
CSV reading returns strings. Use JSON, XLSX or from_records when assertions depend on native types.
Missing column¶
Reading a nonexistent column by key or attribute fails. Add it through a valid update:
Adding a column in one row propagates it to other rows with None. This is the supported way to enrich an existing table.
[{"name": "English", "lang": "en", "link": "/pytabify/troubleshooting/common-errors/", "fragments": {"common-errors": "common-errors", "invalid-csv-headers-or-rows": "invalid-csv-headers-or-rows", "an-identifier-was-lost-after-a-failed-test": "an-identifier-was-lost-after-a-failed-test", "unsupported-extension": "unsupported-extension", "missing-sheet_name": "missing-sheet_name", "missing-xlsx-sheet": "missing-xlsx-sheet", "non-rectangular-records": "non-rectangular-records", "missing-path": "missing-path", "csv-type-differences": "csv-type-differences", "missing-column": "missing-column"}, "current": true}, {"name": "Espa\u00f1ol", "lang": "es", "link": "/pytabify/es/troubleshooting/common-errors/", "fragments": {"common-errors": "errores-comunes", "invalid-csv-headers-or-rows": "csv-con-encabezados-o-filas-invalidas", "an-identifier-was-lost-after-a-failed-test": "se-perdio-un-folio-despues-de-fallar-una-prueba", "unsupported-extension": "extension-no-soportada", "missing-sheet_name": "sheet_name-faltante-en-xlsx", "missing-xlsx-sheet": "hoja-inexistente-en-xlsx", "non-rectangular-records": "datos-no-rectangulares-en-from_records", "missing-path": "ruta-inexistente", "csv-type-differences": "diferencia-de-tipos-al-leer-csv", "missing-column": "acceso-a-columna-inexistente"}, "current": false}]