Informix Error -26186: File name is too long: file_name.
Cause and resolution
File name is too long: file_name.
The name of the file in the external table is too long (after expanding all the file macros). Check to see that the full path name of the file is less than 257 characters long.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26186 fires when an external table's filename, after macro expansion, exceeds the maximum length — per the official guidance.
- The full path name (after expanding all file macros) is 257 characters or longer, per the official guidance — the direct, only cause.
Solutions / Resolution
- Shorten the file's full path name to fewer than 257 characters, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an over-length expanded filename.
Diagnostic Checks
- Manually expand the
DATAFILESfilename's macros, and confirm the result is under 257 characters.
Related Errors / Related Topics
- -26185 — "None of the DATAFILES strings name valid data files." A related
DATAFILES-expansion error, on no valid filenames resulting rather than one being too long.
An external table's expanded filename was 257 characters or longer — shorten the path.