Oracle Solution for Error ora-40212

Solution for Oracle Error ORA-40212

ORA-40212: invalid target data type in input data for string function

What triggered the Error:

Target data type was invalid.

What should we do to fix it:

Classification function accepts CHAR,VARCHAR2, and NUMBER targets. Regression function accepts NUMBER targets only.