X393: Output host variable PositionNumber is incompatible with the query result.
Check your source code to ensure that it is writing its results to the correct output variable and that the data type of that variable is compatible with the expected result.