Informix Error -12052: Smart Large Objects: Smart large object was not opened for write.
Cause and resolution
Smart Large Objects: Smart large object was not opened for write.
You attempted to write to a smart large object that was not open for writing. Change the smart-large-object application program so that it opens the smart large object for writing.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-12052 fires when a write is attempted on a smart large object not opened for writing — per the official guidance.
- The object opened without write mode, per the official guidance — the direct, only cause.
Solutions / Resolution
- Change the smart-large-object application program so it opens the object for writing, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a write on a non-write-mode object.
Diagnostic Checks
- Check the mode the smart large object was opened with, and confirm write mode is included before attempting a write.
Related Errors / Related Topics
- -12051 — "Smart Large Objects: Smart large object was not opened for read." The mirror-image error — a read attempted without read mode.
A write was attempted on a smart large object not opened for writing — open it for writing.