Catch exceptions with duplicated columns