Symptom
You are receiving the below error when trying to publish an invoice.
Line items (ledger account) is invalid.
Cause
This is generally an error message directly from Sage that occurs when you are trying to post purchase invoices to an account type that Sage does not allow.
Resolution
To clear this error, you will need to either change the account type in Sage, or choose a different category code for the invoice.
Please note: we cannot advise what account type/category code you should be choosing to resolve this.