Why did AutoInvoice reject the invoice?

In most cases this is due to an invalid tax rate code.

If an invoice contains invalid lines, AutoInvoice creates an invoice from valid lines and rejects only the invalid lines. However, if an invoice contains an invoice line with an invalid tax rate code, the entire invoice is rejected.