bluca wrote:
I don't want to find the record that cause the error,
I want to find the way to write a error log that exactly identify the records that are wrong.
In this way, my user read the log, find exactly information about the wrong record.
Open the ascii file with an editor.
Correct the problem and then try to import again.
(..sorry for my poor english...)
I don't think you'll find too many people here that think having database exceptions thrown and the users looking through logs for errors is a good practice.
What are the possible reasons for exceptions that you can correct ? My assumption is that it has to do with bad data and, in my opinion, data should be validated PRIOR to passing it on to the database.