Skip to main content
Avalara Help Center

Why am I getting a "Doc Status is invalid" error when trying to invoice from Microsoft Dynamics AX?

Overview

You want to know how to resolve the error "DocStatus is invalid" when posting transactions in Microsoft Dynamics AX.

Environment

Microsoft Dynamics AX

Resolution

  • This error is caused by duplicate Invoice Numbers in the Admin Console

  • Verify the last posted DocCode in the Admin Console

    • If the Document Code is a duplicate, edit the invoice in the Admin Console, and save it as uncommitted to overwrite the transaction

    • Then post again in Microsoft Dynamics AX

  • Check the Microsoft Dynamics AX number sequence
    • If the next sequence number is already present in the Admin Console, change the number in Microsoft Dynamics AX and post the transaction

Next steps

For more information, review the Microsoft Dynamics AX user guide.