Informix Error -25789: The file name in SET EXPLAIN FILE or SET DEBUG FILE must be a non-null string.
Cause and resolution
The file name in SET EXPLAIN FILE or SET DEBUG FILE must be a non-null string.
The argument specified for the file name in the SET EXPLAIN FILE or SET DEBUG FILE statement must be a non-null character data type (CHAR or VARCHAR).
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25789 fires when SET EXPLAIN FILE or SET DEBUG FILE is given a non-character or null
file name — per the official guidance, the argument must be a non-null CHAR/VARCHAR
value.
- A
SET EXPLAIN FILE/SET DEBUG FILEfile-name argument that isn't a non-nullCHAR/VARCHAR, per the official guidance — the direct, only cause.
Solutions / Resolution
- Supply a non-null
CHAR/VARCHARfile name, per the official guidance.
Examples
A null file name
SET EXPLAIN FILE TO NULL;
-- -25789: the file name must be a non-null string
Corrected
SET EXPLAIN FILE TO '/tmp/explain.out';
Diagnostic Checks
- Check the file-name argument's value and type, and supply a non-null
CHAR/VARCHARstring.
Related Errors / Related Topics
- -25790 — "File name in SET EXPLAIN FILE or SET DEBUG FILE statement is too long." A
related
SET EXPLAIN/SET DEBUG FILEerror, on an oversized file name rather than a null/wrong-type one.
SET EXPLAIN FILE/SET DEBUG FILE was given a null or non-character file name — supply a
non-null CHAR/VARCHAR value.