Informix Error -41002
-41002 The INFORMIX.INI file does not have a username or has a format error.
Check the INFORMIX.INI file. If you did not define a user name variable in the InetLogin structure, the [INET_CONNECTION] section must have a user name. You must define the user name in the [INET_CONNECTION] section with the following format:
user=username
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-41002 fires when INFORMIX.INI's [INET_CONNECTION] section is missing a user name, or
the InetLogin structure didn't define one in code — per the official guidance.
- No user name variable defined in the
InetLoginstructure, and none in[INET_CONNECTION]either, per the official guidance — the direct, only cause.
Solutions / Resolution
- Define the user name in
[INET_CONNECTION]using the formatuser=username, per the official guidance.
Examples
The required user-name format
[INET_CONNECTION]
user=myuser
Diagnostic Checks
- Check
[INET_CONNECTION]for auser=usernameline, 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 user-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.
- -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 user name — add user=username.