I'm getting the following error when trying to generate invoice from a sales order. It appears to be failing when calculating sales tax.
Error: Order SO-###### (6012): Only in progress transactions can be updated.
[s] \Classes\STOTaxCalc\processMessages 54[s] \Classes\STOTaxCalc_Sales\calculateTax 177[s] \Classes\STOTaxCalc\calcTax 9[s] \Classes\STOTaxCalc\RunTaxCalc 10[s] \Classes\TaxSales\calc 45[s] \Classes\SalesCalcTax_Sales\calcTax 32[s] \Classes\TradeTotals\jsCalculateTax 10[s] \Classes\SalesTotals_Sales\jsCalculateTax 17[s] \Classes\TradeTotals\calc 120[s] \Classes\TradeTotals\calculateTotalAmount 6[s] \Classes\TradeTotals\tax 5[s] \Classes\SalesInvoiceJournalCreate\calcLineAmountExclTax 9[s] \Classes\SalesInvoiceJournalCreateBase\createJournalLine 44[s] \Classes\SalesInvoiceJournalCreate\createJournalLine 9[s] \Classes\FormletterJournalCreate\createJournalLines 24[s] \Classes\SalesInvoiceJournalCreate\createJournalLines 7[s] \Classes\FormletterJournalCreate\createJournal 19[s] \Classes\FormletterJournalCreate\run 6[s] \Classes\SalesInvoiceJournalCreate\run 12[s] \Classes\FormletterService\createJournal 29[s] \Classes\FormletterService\run 91[s] \Classes\FormletterService\postSalesOrderInvoice 14[s] \Classes\DictClass\callObject [s] \Classes\SysOperationServiceController\runOperation 93[s] \Classes\SysOperationServiceController\run 27[s] \Classes\FormLetterServiceController\run 3[s] \Classes\SalesFormLetter\run 90[s] \Classes\SalesFormLetter_Invoice\run 6[c] \Classes\SalesFormLetter\main 100[c] \Classes\FormFunctionButtonControl\Clicked [c] \Forms\SalesTable\Designs\DesignList\buttonUpdateInvoice\Methods\Clicked 9
Have any customisations been made to any of these object, can you recompile the application and complete a full CIL generation, see if these steps fix the issue first.
Christopher Paul Ironmonger, MSc (Dist.), BSc (Hons.)Microsoft Dynamics AX Developer
This post is my own opinion and does not necessarily reflect the opinion(s) or view(s) of my current employer(s), nor Microsoft and it's employees.
There are some customizations which have been introduced long time ago. Application was compiled and full CIL was generated since. This error is affecting only one sales order at the moment. Other sales orders are fine.
Ok could I ask then has any data been imported into your environment?
Not for this sales order. It was entered manually in AX.
STOTaxCalc does not appear to be a standard AX class. Do you by chance use an add-on called Sales Tax Office? You may find you need to contact the author of that product for assistance.
Yes, you are right. I've noticed this error again when modifying submitted invoices and resubmitting them. At least I can replicate the problem to see what's causing it. Thanks.