Announcements
getting error as below when ran the inventory recalculation.
Period is open and other setups are verified also. The same is working on other environment.
Help appreciated.
Error details as:
Microsoft.Dynamics.Ax.Xpp.InfoException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.InfoException' was thrown.
at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue)
at Microsoft.Dynamics.Ax.MSIL.cqlClassIL.callReturn(Int32 rc, interpret* ip)
at Microsoft.Dynamics.Ax.MSIL.cqlClassIL.CallStatic(String className, String methodName, Object[] parameters, Type[] types, Object[] varargs, Type[] varargsTypes)
at Microsoft.Dynamics.Ax.Xpp.XppObjectBase.StaticCall(String className, String methodName, Object[] parameters, Type[] types, Object[] varargs)
at Dynamics.Ax.Application.Debug.assert(Boolean expression)
at Dynamics.Ax.Application.DimensionStorageSegment.construct(String _displayValue, Int64 _dimensionAttributeValueId, Guid _hashKey) in DimensionStorageSegment.construct.xpp:line 29
at Dynamics.Ax.Application.DimensionStorageSegment.constructFromValue(String _displayValue, DimensionAttributeValue _dimensionAttributeValue) in DimensionStorageSegment.constructFromValue.xpp:line 16
at Dynamics.Ax.Application.DimensionDefaultingEngine.Addrulehierarchies(Map _dimensionValues, Boolean _addValues, LedgerDimensionType _ledgerDimensionType, Boolean ) in DimensionDefaultingEngine.addRuleHierarchies.xpp:line 40
at Dynamics.Ax.Application.DimensionDefaultingEngine.Addrulehierarchies(Map _dimensionValues, Boolean _addValues)
at Dynamics.Ax.Application.DimensionDefaultingEngine.Applydimensionsourcesprivate(List _dimensionSources, Int32 _mainAccountDefaultingPosition) in DimensionDefaultingEngine.applyDimensionSourcesPrivate.xpp:line 49
at Dynamics.Ax.Application.DimensionDefaultingEngine.applyDimensionSourcesServer(DimensionDefaultingEngine _defaultingEngine, Object[] _dimensionSourcesPack, Int32 _mainAccountDefaultingPosition) in DimensionDefaultingEngine.applyDimensionSourcesServer.xpp:line 25
at Dynamics.Ax.Application.DimensionDefaultingEngine.Applydimensionsources(List _dimensionSources, Int32 _mainAccountDefaultingPosition, Boolean ) in DimensionDefaultingEngine.applyDimensionSources.xpp:line 23
at Dynamics.Ax.Application.DimensionDefaultingEngine.Applydimensionsources(List _dimensionSources)
at Dynamics.Ax.Application.DimensionDefaultingService.createLedgerDimension(Object[] _parms) in DimensionDefaultingService.createLedgerDimension.xpp:line 52
at DimensionDefaultingService::createLedgerDimension(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26
at Dynamics.Ax.Application.SysDictClass.invokeStaticMethodIL(String _className, String _methodName, Object[] _params, Boolean _ignoreTtsLevel, Boolean ) in SysDictClass.invokeStaticMethodIL.xpp:line 39
at Dynamics.Ax.Application.SysDictClass.invokeStaticMethodIL(String _className, String _methodName, Object[] _params, Boolean _ignoreTtsLevel)
at Dynamics.Ax.Application.Global.runClassMethodIL(String _className, String _methodName, Object[] _params, Boolean _ignoreTtsLevel, Boolean ) in Global.runClassMethodIL.xpp:line 30
at Dynamics.Ax.Application.Global.runClassMethodIL(String _className, String _methodName, Object[] _params)
at Dynamics.Ax.Application.DimensionDefaultingService.serverCreateLedgerDimension(Int64 _ledgerDimensionId, Int64 _dimensionDefault1, Int64 _dimensionDefault2, Int64 _dimensionDefault3, Boolean , Boolean , Boolean ) in DimensionDefaultingService.serverCreateLedgerDimension.xpp:line 51
at Dynamics.Ax.Application.DimensionDefaultingService.serverCreateLedgerDimension(Int64 _ledgerDimensionId, Int64 _dimensionDefault1, Int64 _dimensionDefault2, Int64 _dimensionDefault3)
at Dynamics.Ax.Application.DimensionDefaultingService.serviceCreateLedgerDimension(Int64 _ledgerDimensionId, Int64 _dimensionDefault1, Int64 _dimensionDefault2, Int64 _dimensionDefault3, Boolean , Boolean , Boolean ) in DimensionDefaultingService.serviceCreateLedgerDimension.xpp:line 49
at Dynamics.Ax.Application.DimensionDefaultingService.@serviceCreateLedgerDimension(Int64 _ledgerDimensionId, Int64 _dimensionDefault1, Int64 _dimensionDefault2, Boolean , Boolean )
at Dynamics.Ax.Application.DimensionDefaultingService.@serviceCreateLedgerDimension(Int64 _ledgerDimensionId, Int64 _dimensionDefault1, Boolean )
at Dynamics.Ax.Application.DimensionDefaultingService.serviceCreateLedgerDimension(Int64 _ledgerDimensionId, Int64 _dimensionDefault1)
at Dynamics.Ax.Application.InventAdjustPost.Addledger(LedgerVoucher _ledgerVoucher, LedgerPostingType _ledgerPostingType, Int64 _ledgerAccount, Int64 _dimension, Decimal _costAmountAdjustmentCur, ProjLedger _projLedger, Int64 _recId, Decimal _costAmountAdjustmentMST_RU, NoYes _correct, Boolean , Boolean , Boolean , Boolean ) in InventAdjustPost.addLedger.xpp:line 58
at Dynamics.Ax.Application.InventAdjustPost.Addledger(LedgerVoucher _ledgerVoucher, LedgerPostingType _ledgerPostingType, Int64 _ledgerAccount, Int64 _dimension, Decimal _costAmountAdjustmentCur, ProjLedger _projLedger, Int64 _recId, Decimal _costAmountAdjustmentMST_RU, NoYes _correct)
at Dynamics.Ax.Application.InventAdjustPost.Updatetrans(InventSettlement _inventSettlement, LedgerVoucher _ledgerVoucher, ProjLedger _projLedger, InventTrans _inventTrans) in InventAdjustPost.updateTrans.xpp:line 152
at Dynamics.Ax.Application.InventAdjustPost.Processinventsettlement(InventTrans _inventTrans, InventSettlement _inventSettlement) in InventAdjustPost.processInventSettlement.xpp:line 47
at Dynamics.Ax.Application.InventAdjustPostClosing.Updateitem() in InventAdjustPostClosing.updateItem.xpp:line 84
at Dynamics.Ax.Application.InventAdjustPost.Updatenow(LedgerVoucher _ledgerVoucher, Boolean _initLedger, Boolean , Boolean ) in InventAdjustPost.updateNow.xpp:line 55
at Dynamics.Ax.Application.InventAdjustPost.Updatenow(LedgerVoucher _ledgerVoucher, Boolean _initLedger)
at Dynamics.Ax.Application.InventCostHelp.Updateledgerposting() in InventCostHelp.updateLedgerPosting.xpp:line 96
at Dynamics.Ax.Application.InventCostLedgerPostingTask.Dorun() in InventCostLedgerPostingTask.doRun.xpp:line 12
at Dynamics.Ax.Application.InventCostHelpTaskBase.Run(Int64 _batchJobId, Boolean ) in InventCostHelpTaskBase.run.xpp:line 37
at Dynamics.Ax.Application.InventCostHelpTaskBase.Run()
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)
Hi,
I have same error in Inventory Closing
@Nabeel Faruqui
Have you found a solution for this?
Thanks in advance
Dear Nabeel,
Does other environment have same data? This is more like data issue in DimensionAttribute table and DimensionAttributeValue table.
Try to restore DB back to Dev or UAT and debug this.
I suppose DimensionAttributeValue is empty, but it is very strange in DimensionAttributeValue::findByDimensionAttributeAndValue(), it has a check to prevent this happen.
You can add break point at DimensionDefaltingEngine::addRuleHierarchy() line 36 to troubleshoot this
Hi Nabeel,
If the same process is running in your test environment but not in live for the same data then there must be a difference between both systems. Can you get in touch with your system admins/developers and clarify whether some code differences exists between prod and test?
Best regards,
Ludwig
André Arnaud de Cal...
294,135
Super User 2025 Season 1
Martin Dráb
232,871
Most Valuable Professional
nmaenpaa
101,158
Moderator