Informix Error -6016: No view has been set.
Cause and resolution
No view has been set.
Before the program calls dbfind(), it must call dbsetview() to establish a view (that is, a specification of the columns to be returned and the buffer to receive them). Review the program logic to see that this action is performed.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-6016 fires when dbfind() is called before dbsetview() has established a view — per the
archived catalogue, a view specifies which columns are returned and the buffer that receives
them.
dbfind()called beforedbsetview()established a view, per the archived catalogue — the direct, only cause.
Solutions / Resolution
- Call
dbsetview()to establish a view before callingdbfind(), per the archived catalogue.
Examples
N/A
No specific triggering statement is documented beyond the function-level condition described above.
Diagnostic Checks
- Confirm
dbsetview()precedes thedbfind()call.
Related Errors / Related Topics
- -6019 — "No view has been set."
- -6029 — "No view has been set."
- -6045 — "No column or index has been selected."
Call dbsetview() to establish a view before calling dbfind().