Informix Error -11074: Invalid parameter number.
Cause and resolution
Invalid parameter number.
This Informix CLI error code is the same as SQLSTATE value S1093. The following function can return this error code: SQLBindParameter().
The value specified for the argument ipar is less than one or is greater than the maximum number of parameters that the data source supports. To verify that the value is in the correct range for the statement, check the SQL statement.
Either the ipar value was less than 1, or the ipar value exceeded the maximum number of parameters that the data source supports. Set ipar to a valid value.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11074 fires when SQLBindParameter()'s ipar argument is less than one or greater than
the data source's maximum parameter count — per the official guidance, this is the same as
SQLSTATE value S1093.
iparless than one, or greater than the number of parameters the statement supports, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the SQL statement to confirm the value is in the correct range, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an out-of-range ipar value.
Diagnostic Checks
- Count the parameter markers in the SQL statement, and confirm
iparfalls within1..count.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11074 in this set yet.
SQLBindParameter()'s ipar argument was out of range for the statement's parameter count —
check the statement's actual parameter count.