Hi all,
I'm working on a AX2012 R2. I had a error when tried to insert a record in a Purchtable. I Investigated and the problem is related to a SourceDocumentHeader and SourceDocumentLIne because actual combination of these states in SOURCEDOCUMENTHEADER.accountingStatus and SOURCEDOCUMENTLine.accountingStatus give me the error posted.
If I modify this two state with the same values or update with other values I solve the problem.
Anyone explaines me how does the framework work?
Does anyone help me ?
TThis is the error :
Microsoft.Dynamics.Ax.Xpp.UpdateConflictException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.UpdateConflictException' was thrown.
at Dynamics.Ax.Application.SourceDocumentStateBase.Transition() in SourceDocumentStateBase.transition.xpp:line 49
at Dynamics.Ax.Application.SourceDocumentStateBase.Performtransitionormaintenance() in SourceDocumentStateBase.performTransitionOrMaintenance.xpp:line 7
at Dynamics.Ax.Application.SourceDocumentLineState.Performtransitionormaintenance() in SourceDocumentLineState.performTransitionOrMaintenance.xpp:line 35
at Dynamics.Ax.Application.SourceDocumentStateBase.Transitionto() in SourceDocumentStateBase.transitionTo.xpp:line 15
at Dynamics.Ax.Application.SourceDocumentProcessorBase.Submit() in SourceDocumentProcessorBase.submit.xpp:line 11
at Dynamics.Ax.Application.SourceDocumentLineProcessor.submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, SourceDocumentProcessorCaller _caller, String _user, Boolean _isStatusPropagating, Boolean _maintenanceOnly, RecordInsertList _accountingDistributionInsertList, AccountingDistributionList _parentAccountingDistributionList, systemSequence _systemSequence, Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean ) in SourceDocumentLineProcessor.submitSourceDocumentLineImplementation.xpp:line 118
at Dynamics.Ax.Application.SourceDocumentLineProcessor.@submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, SourceDocumentProcessorCaller _caller, String _user, Boolean _isStatusPropagating, Boolean _maintenanceOnly, RecordInsertList _accountingDistributionInsertList, AccountingDistributionList _parentAccountingDistributionList, Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean )
at Dynamics.Ax.Application.SourceDocumentLineProcessor.@submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, SourceDocumentProcessorCaller _caller, String _user, Boolean _isStatusPropagating, Boolean _maintenanceOnly, RecordInsertList _accountingDistributionInsertList, Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean )
at Dynamics.Ax.Application.SourceDocumentLineProcessor.@submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, SourceDocumentProcessorCaller _caller, String _user, Boolean _isStatusPropagating, Boolean _maintenanceOnly, Boolean , Boolean , Boolean , Boolean , Boolean , Boolean )
at Dynamics.Ax.Application.SourceDocumentLineProcessor.@submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, SourceDocumentProcessorCaller _caller, String _user, Boolean _isStatusPropagating, Boolean , Boolean , Boolean , Boolean , Boolean )
at Dynamics.Ax.Application.SourceDocumentLineProcessor.@submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, SourceDocumentProcessorCaller _caller, String _user, Boolean , Boolean , Boolean , Boolean )
at Dynamics.Ax.Application.SourceDocumentLineProcessor.submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, SourceDocumentProcessorCaller _caller, String _user)
at Dynamics.Ax.Application.SourceDocumentProcessorFacade.submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, SourceDocumentProcessorCaller _caller, String _user, Boolean , Boolean , Boolean , Boolean ) in SourceDocumentProcessorFacade.submitSourceDocumentLineImplementation.xpp:line 26
at Dynamics.Ax.Application.SourceDocumentProcessorFacade.@submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, SourceDocumentProcessorCaller _caller, Boolean , Boolean , Boolean )
at Dynamics.Ax.Application.SourceDocumentProcessorFacade.@submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus, Boolean , Boolean )
at Dynamics.Ax.Application.SourceDocumentProcessorFacade.submitSourceDocumentLineImplementation(SourceDocumentLineImplementation _sourceDocumentLineImplementation, Boolean _updateImplementation, SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus)
at Dynamics.Ax.Application.TaxUncommitted.Submitsourcedocumentline() in TaxUncommitted.submitSourceDocumentLine.xpp:line 32
at Dynamics.Ax.Application.TaxUncommitted.createTaxUncommitted(Tax _taxCalculation, Boolean _skipNotExistsCheck, Boolean ) in TaxUncommitted.createTaxUncommitted.xpp:line 53
at Dynamics.Ax.Application.TaxUncommitted.createTaxUncommitted(Tax _taxCalculation, Boolean _skipNotExistsCheck)
at Dynamics.Ax.Application.TaxUncommitted.updateTaxUncommitted(TaxCalculation _taxCalculation) in TaxUncommitted.updateTaxUncommitted.xpp:line 25
at Dynamics.Ax.Application.Tax.Updatetaxuncommitted() in Tax.updateTaxUncommitted.xpp:line 8
at Dynamics.Ax.Application.TaxCalculation.Finalizecalculation(Boolean _calculateTaxDifferenceAmount, Boolean ) in TaxCalculation.finalizeCalculation.xpp:line 100
at Dynamics.Ax.Application.TaxCalculation.Finalizecalculation(Boolean _calculateTaxDifferenceAmount)
at Dynamics.Ax.Application.TaxPurch.Calculatetax() in TaxPurch.calculateTax.xpp:line 158
at Dynamics.Ax.Application.PurchCalcTax_Purch.Calctax(TradeTotalsBase _purchTotals) in PurchCalcTax_Purch.calcTax.xpp:line 62
at Dynamics.Ax.Application.PurchTotals.Calctax(PurchCalcTax _purchCalcTax) in PurchTotals.calcTax.xpp:line 4
at Dynamics.Ax.Application.PurchTotals.Calc(Boolean _excludePendingInvoices, Boolean _delayTaxCalc, Boolean _taxesOnly, Boolean , Boolean , Boolean ) in PurchTotals.calc.xpp:line 62
at Dynamics.Ax.Application.PurchTotals.@Calc(Boolean _excludePendingInvoices, Boolean _delayTaxCalc, Boolean , Boolean )
at Dynamics.Ax.Application.PurchTotals.@Calc(Boolean _excludePendingInvoices, Boolean )
at Dynamics.Ax.Application.PurchTotals.Calc()
at Dynamics.Ax.Application.EanlogBonusTable.Getrestitutionopenorders() in EanlogBonusTable.getRestitutionOpenOrders.xpp:line 24
at Dynamics.Ax.Application.EanlogBonusCreateOrder.new(EanlogBonusTable _bonusTable, NoYes _creditNote) in EanlogBonusCreateOrder.new.xpp:line 38
at Dynamics.Ax.Application.EanlogBonusCreateOrder..ctor(EanlogBonusTable _bonusTable, NoYes _creditNote)
at Dynamics.Ax.Application.EanlogBonusCreateOrder_Sales..ctor(EanlogBonusTable , NoYes )
at Dynamics.Ax.Application.EanlogBonusCalculateVend.Run() in EanlogBonusCalculateVend.run.xpp:line 62
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54
at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13
at BatchRun::runJobStatic(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.taskThreadEntry(Object threadArg)
Thank you for your time.
Best regards,
Gildo