Informix Error -19849: Error in unload due to invalid data : row number.
Cause and resolution
Error in unload due to invalid data : row number.
The column in a row that is being unloaded through an UNLOAD statement has invalid characters for the current locale settings. The output file that is specified in this UNLOAD statement has invalid data on the specified line.
Take corrective action before you can use the unload file for loading the data back into the database. Delete or repair the row under consideration.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-19849 fires when a row's column has characters invalid for the current locale during an
UNLOAD — per the official guidance. The output file has invalid data at the reported line.
(The live catalog gives -19849 the identical title/body text as -19834 — transcribed
faithfully here as its own code, per this project's precedent for distinct codes that share
official wording.)
- A column value with characters invalid for the current locale, per the official guidance — the direct, only cause.
Solutions / Resolution
- Delete or repair the row before reloading the unload file, per the official guidance — this must be corrected before the file can be used to load data back in.
Examples
Checking a specific row's data
SELECT * FROM mytab WHERE rowid = <row number from the error>;
Diagnostic Checks
- Locate the reported row, and check its column data against the current locale's valid character set.
Related Errors / Related Topics
- -19834 — "Error in unload due to invalid data : row number." The identical condition under a separate error code on the live catalog.
An UNLOADed row has characters invalid for the current locale — delete or repair the row
before reloading.