When exception is thrown in batch import, show the query.