Seems like the column C_POL contains some characters data and in the case statement where you are casting the column to DECIMAL is causing the error because of the character data.
Why don't you use the udf_isnumeric() to check whether the column contains the numerics or not before casting it in decimal.
↧
Case statement returning "Bad character in format or data...." - response (1) by Qaisar Aftab Kiani
↧