Informix Error -41001
-41001 The INFORMIX.INI file does not have a hostname or has a format error.
Check the INFORMIX.INI file. If you did not define a host name variable in the InetLogin structure, the [INET_CONNECTION] section must have a host name. The host name must be defined in the [INET_CONNECTION] section with the following format:
host=hostname
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-41001 fires when INFORMIX.INI's [INET_CONNECTION] section is missing a host name, or
the InetLogin structure didn't define one in code — per the official guidance.
- No host name variable defined in the
InetLoginstructure, and none in[INET_CONNECTION]either, per the official guidance — the direct, only cause.
Solutions / Resolution
- Define the host name in
[INET_CONNECTION]using the formathost=hostname, per the official guidance.
Examples
The required host-name format
[INET_CONNECTION]
host=myserver
Diagnostic Checks
- Check
[INET_CONNECTION]for ahost=hostnameline, and add or correct it if missing or malformed.
Related Errors / Related Topics
- -41000 — "Error in reading the [INET_CONNECTION] section of the INFORMIX.INI file."
A related
INFORMIX.INIconfiguration error, on the section heading itself rather than its host-name entry. - -41002 — "The INFORMIX.INI file does not have a username or has a format error." The equivalent error for the user-name entry.
- -41004 — "The INFORMIX.INI file does not have a protocolname or has a format error." The equivalent error for the protocol-name entry.
INFORMIX.INI's [INET_CONNECTION] section is missing a host name — add host=hostname.