Informix Error -6012: Beginning of file.
Cause and resolution
Beginning of file.
This call to dbfind() for the PRIOR row produced no data. The beginning of the table has been reached.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-6012 fires when a dbfind() call for the PRIOR row has reached the start of the table — per
the archived catalogue, this is the expected signal that backward iteration is complete.
- Iteration via
dbfind(..., PRIOR)reaching the first row, per the archived catalogue — the direct, only cause.
Solutions / Resolution
- Treat this as the normal beginning-of-iteration signal, per the archived catalogue.
Examples
N/A
No specific triggering statement is documented beyond the function-level condition described above.
Diagnostic Checks
- Confirm this occurs at the point in backward iteration where the table is actually exhausted.
Related Errors / Related Topics
- -6011 — "End of file."
- -6009 — "There is no data in the table."
The normal beginning-of-table signal when iterating backward with dbfind(..., PRIOR).