posted 12 years ago
Did you try to have a look at the stack trace? I'd expect it to contain an exception describing what has caused the exception (database constraint, wrong numeric format, etc.). Even if you don't know the exact row which caused the problem, his information might help you find it.
You could also keep all the values you used in one batch in a list, for example, and in an error occurs, dump them out to the log. You wouldn't know which of them has failed, but you could at least inspect the full contents of the batch that failed. (If the batch is written successfully, throw the contents of the list away, of course.)