Tag Archives: ERRORCODE=-4220

ERRORCODE=-4220, SQLSTATE=null [How to Solve]

When I was running the program, I got the data from the DB2 database, and then created the index through Solr. I found that the program was interrupted and the error log was

Report error as

Caught java.io.CharConversionException. See attached Throwable for details. ERRORCODE=-4220, SQLSTATE=null

There is no accurate sqlstate. After some investigation, we found a piece of data

When the program reads this data, it will report an error. It’s OK to get any field that is not this random code field. Delete. The problem is solved