Line count does not match header:

Indicates that the number of line items (invoice line item records) for the selected invoice does not match the number of lines which is stored in the Invoice Header record for the invoice.  To correct this error, make sure that all invoice line items are present in the line item file and that the line item activity (prices * qty shipped) agrees with the header subtotal.  Then edit the Lines field in the Offline Editor for the Invoices File field if necessary to correct the error.