You are trying to create %(invoice_number)s invoice on date %(invoice_date)s. There are %(invoice_count)d invoices after this date:\n\n%(invoices)s. You are trying to validate an invoice where invoice date (%(invoice_date)s) and accounting date (%(accounting_date)s) are different. That is not permitted, because of invoice number and date correlation.