You are getting a DocStatusError : Expected Saved|Posted message when trying to post a transaction batch.
- This error occurs when you are trying to post a transaction that has the same DocCode as a transaction that already exists in your admin console in a Committed status.
- Go to the Transactions tab in the Avalara admin console > search for the DocCode (invoice number) to find the pre-existing transaction
- If the transaction details match > click the Doc Code > click Edit > choose Adjustment Reason > click Save as Uncommitted
- If the transaction details do not match or the transaction is locked (so it cannot be edited) you cannot post the batch in GP without receiving this error.