Handle ORM data-type error