We have a batch job configured to automatically invoice sales order lines those are in packing slip. Due to some reason(missing financial dimensions, payment not captured) the invoicing of specific lines fail. These are lines are again picked by the next recurrence of the batch job. Does sales order/line has any field where the number of retries attempted is recorded, so that we can use it to exclude it from batch job after a certain number of retries. Or are there any configuration to avoid spending system resources on orders that is meant to fail.