Messages with severity level 12 indicate a problem with datatypes. For example, the user may have tried to enter a value of the wrong datatype in a column or to compare columns of different and incompatible datatypes.
To correct comparison problems, use the convert function with select. See the Reference Manual: Building Blocks or the Transact-SQL Users Guide.