X394: Input host variable PositionNumber is incompatible with the current query.

The XDB Server is not able to execute the requested SELECT statement because it contains a host variable whose data type is not correct. (For example, the WHERE clause may be using a numeric host variable to select from a DATE field in the database.) The host variable causing the problem is located at PositionNumber in the input SQLDA.
Restriction: This topic applies to Windows environments only.

Check your source code to ensure that your SELECT statement specifies the correct host variable and that this variable's data type is compatible with database field with it is being used.