Skip to main content
Avalara Help Center

How do I resolve the Doc Status error DocStatus Is Invalid for This Operation Expected Saved/Posted?


You want to know how to resolve the error: "DocStatus Is Invalid for This Operation. Expected Saved/Posted."




  • This error message indicates that the DocCode used to calculate on or import transactions already exists within your Admin Console
    • Each document requires a unique identifier for the DocCode
  • Confirm the duplicate DocCode: Go to the Transactions tab in the Admin Console and search for the particular DocCode
    • Try adjusting the beginning date range to a date a few months or years in the past, then search for the specific DocCode
  • Once you find the transaction with the matching DocCode, determine if this is an exact copy of the transaction you are trying to import or calculate
    • If the two transactions are duplicates, you can:
      • Not add the transaction again
      • Change the DocCode by adding a number or letter and add the transaction in a different period
      • For imports: Use a ProcessCode of 2 or 4 and adjust the current transaction upon import
      • Change the original transaction to Uncommitted and recalculate the current transaction
        • Open the transaction in the Admin Console > click Edit > choose Adjustment Reason > click Save as Uncommitted in orange
          • Void will not avoid the error, it must be Uncommitted.
    • If the two transactions aren't duplicates, change the new transaction's DocCode/invoice number

Next steps

For more information, learn how to add or import transactions.

  • Was this article helpful?