The user is receiving the below error message when attempting to publish an invoice.

Invalid Account Code - Department entered for Invoice and/orLine Item. Account Code xxxx

Applies To

  • Users publishing Purchase invoices.


This error is related to how the chosen account code is set up in the Chart of Accounts in your accounting software, preventing it from being used on the invoice.


To clear this error, please do the following:

  1. Unpublish the affected invoice.

  2. Go into your accounting software, and check the settings on the code you have attempted to allocate to the invoice.

  3. Ensure that this code is usable and can be used on your Purchase invoices.

  4. If not, either amend the setting that is preventing it from being used, or determine which of your other codes can be used.

  5. Once the code/a different code has been applied to the invoice on AutoEntry, republish it.

Additional Information

  • If you have completed the above steps and are still receiving the same error, please get in contact with our Support team via webchat.

Did this answer your question?