Informix Error -12805: Improper return value from access_method routine.
Cause and resolution
Improper return value from access_method routine.
An access_method routine returned a value that is not valid. Possibly a bug exists in the access_method routine.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-12805 fires when an access-method routine returns a value that isn't valid — per the official guidance.
- A bug in the access-method routine's implementation, per the official guidance — the named, possible cause.
Solutions / Resolution
- Review and fix the access-method routine's implementation, per the official guidance's implication, if a bug is confirmed.
Examples
N/A
No specific triggering statement is documented beyond an invalid return value.
Diagnostic Checks
- Identify which access-method routine returned the invalid value, and review its implementation for a bug in the return-value handling.
Related Errors / Related Topics
- -12804 — "Error indicated by an access_method routine." A related return-value
error, about the routine explicitly signaling
MI_ERRORrather than returning an improper value.
An access-method routine returned an invalid value, possibly indicating a bug in the routine — review its implementation.