Informix Error -852
-852 Write failed. count rows unloaded (check ulimit or disk space).
After writing count lines of output to the unload file, an error occurred trying to write the next line. Look for operating-system messages that might give more information. Possible causes include a full disk or a disk quota limit.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-852 fires when an UNLOAD operation, after successfully writing a number of lines, fails to
write the next one — per the official guidance, a full disk or a disk quota limit are the
possible causes named directly in the message itself.
- A full disk at the unload destination, per the official guidance.
- A disk quota limit reached (
ulimitor filesystem quota) for the account running the operation, per the official guidance — distinct from the disk being physically full.
Solutions / Resolution
- Look for OS-level error messages that might give more information, per the official guidance.
- Check disk space at the destination:
df -h /path/to/output/directory - Check
ulimitsettings for the account, per the official guidance's specific mention:
(file-size limit) and any filesystem-level quota for the account.ulimit -f - Note the
countreported — per the official guidance, this tells you how many rows were successfully written before the failure, useful for resuming or verifying partial output.
Examples
Checking disk space and ulimit
$ df -h /path/to/output/directory
$ ulimit -f
Diagnostic Checks
- Check disk space and the account's
ulimit/quota settings — the two specific causes named in the message itself. - Note the reported
countto understand how much output was successfully written before the failure.
Related Errors / Related Topics
- -806 — "Cannot open file for unload." A related
UNLOADerror, about failing to open the output file at all, rather than a write failure partway through.
Check disk space and ulimit/quota — the two specific causes the message itself names.