Informix Error -41004
-41004 The INFORMIX.INI file does not have a protocolname or has a format
error.Check the INFORMIX.INI file. If you did not define a protocol name variable in the InetLogin structure, the [INET_CONNECTION] section must have a protocol name. You must define the protocol name in the [INET_CONNECTION] section with the following format:
protocol=protocolname
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-41004 fires when INFORMIX.INI's [INET_CONNECTION] section is missing a protocol name,
or the InetLogin structure didn't define one in code — per the official guidance.
- No protocol name variable defined in the
InetLoginstructure, and none in[INET_CONNECTION]either, per the official guidance — the direct, only cause.
Solutions / Resolution
- Define the protocol name in
[INET_CONNECTION]using the formatprotocol=protocolname, per the official guidance.
Examples
The required protocol-name format
[INET_CONNECTION]
protocol=tcpip
Diagnostic Checks
- Check
[INET_CONNECTION]for aprotocol=protocolnameline, 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 protocol-name entry. - -41001 — "The INFORMIX.INI file does not have a hostname or has a format error." The equivalent error for the 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.
- -41006 — "Protocolname is not in the [INET_PROTOCOL] section of the INFORMIX.INI
file." A related protocol-configuration error, on the matching
[INET_PROTOCOL]entry rather than[INET_CONNECTION]'s protocol name.
INFORMIX.INI's [INET_CONNECTION] section is missing a protocol name — add
protocol=protocolname.