Rollback the transaction if it fails with duplicate items