If the server returns an error while processing a record, the error is recorded in the batch output and the batch job is terminated.
The Long Running Execution Environment will indicate that the batch job failed and it will change the batch job's state to restartable. At this point, you can inspect the job logs to determine the reason for the failure. Once problem corrected, you can restart the batch job, continuing execution from the last committed checkpoint.