Informix Error -26004: The encryption hint data type is not supported.
Cause and resolution
The encryption hint data type is not supported.
Use a string type (such as CHAR(20) or VARCHAR(40)) for the encryption hint.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26004 fires when the encryption hint's data type isn't supported — per the official guidance.
- The specified hint's data type not being a supported string type, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use a string type such as
CHAR(20)orVARCHAR(40)for the encryption hint, per the official guidance.
Examples
An unsupported hint type
SELECT ENCRYPT_AES(secret_col, 'my password', 12345) FROM accounts;
-- -26004: 12345 is INTEGER, not a string type
Corrected
SELECT ENCRYPT_AES(secret_col, 'my password', 'account secrets') FROM accounts;
Diagnostic Checks
- Check the data type of the value passed as the encryption hint, and confirm it's a
string type such as
CHAR/VARCHAR.
Related Errors / Related Topics
- -26002 — "Invalid encryption password data type." The same class of data-type restriction, applied to the password argument rather than the hint.
The encryption hint's data type isn't a supported string type — use CHAR/VARCHAR.