Informix Error -1003: Invalid ACCEPTKEY set in the environment.
Cause and resolution
Invalid ACCEPTKEY set in the environment.
The key that the ACCEPTKEY environment variable specifies is not decipherable; either it does not start with F, or it has an invalid number. Specify a different key.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1003 fires when the ACCEPTKEY environment variable is set to a value the program can't
interpret as a key definition — per the official guidance, a valid ACCEPTKEY value must begin
with F and be followed by a valid number.
ACCEPTKEYmissing the required leadingF, per the official guidance — the direct, named cause.ACCEPTKEYset to a value with an invalid number following theF, per the official guidance — syntactically close but not a recognized key.- A stray or leftover
ACCEPTKEYsetting inherited from a shell profile or wrapper script, left over from an unrelated purpose.
Solutions / Resolution
- Set
ACCEPTKEYto a valid value, per the official guidance — anFfollowed by a valid function-key number. - If
ACCEPTKEYisn't actually needed, unset it rather than leaving an invalid value in place.
Examples
Checking and fixing the environment variable
$ echo "$ACCEPTKEY"
F999
$ export ACCEPTKEY=F1
Diagnostic Checks
- Check the current value of
ACCEPTKEYin the environment, and confirm it begins withFfollowed by a valid number.
Related Errors / Related Topics
- -1004 — "The selected ACCEPTKEY has been preassigned for ISQL." A related
ACCEPTKEYerror, about an otherwise-valid key that's reserved rather than one that's malformed.
ACCEPTKEY must be an F followed by a valid number — check the environment variable and
correct or unset it.