Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Error in Inventory Recalculation - Resume Operation

Posted on by Microsoft Employee

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)

 

pastedimage1589512281988v1.png

  • RE: Error in Inventory Recalculation - Resume Operation

    Hi,

    I have same error in Inventory Closing

    @Nabeel Faruqui

    Have you found a solution for this?

    Thanks in advance

  • Suggested answer
    Tony Yang Profile Picture
    Tony Yang on at
    RE: Error in Inventory Recalculation - Resume Operation

    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

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Error in Inventory Recalculation - Resume Operation

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans