The reason this message gets thrown is the STO transaction ID that we send from the plug-in is either already “Final” in STO, or the transaction is stuck in “Processing”. We can resolve this by deleting the associated STO4TransTable record in AX.
To resolve, complete the following:
- Retrieve the RecId for the header table of the transaction in question. (E.g. For sales orders it is SalesTable).
- Query the STO4TransTable on the STORecordcolumn using the value retrieved in Step 1.
- Take the value in the STOTransId column, and look up the transaction in the STO Calculation module.
- If this transaction is already final, something went wrong with the posting.
- If this transaction is in “Processing”, please update STO as this was an issue with STO.
- Delete the record in the STO4TransTable that was queried in Step 2.
- Recalculate tax in AX.