pymysql.err.DataError:(1265, "Data truncated for column 'active' at row 2")

can anyone explain what this error is about? and how to resolve this

You could be passing a wrong data type value for the active field… if it is happening in migrate, the existing data in active column may have some incompatible value…
check datatype of active column
Make sure you are passing correct value
Check existing values in db

Adding @vijaywm answer, if you are saving changes to doctype then an error appear or create a field and then face issue then follow the below reference:

Yeah, I have checked db it was a datatype error.
Thanks for the response.