Support for BulkInsert and better error message