zoukankan      html  css  js  c++  java
  • Error:Microsoft.Dynamics.Ax.Xpp.InfoException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.InfoException

    I had the same issue with AX 2012 R2 and SQL Server 2012. When I try to call the "calc" method in SalesQuotationTotals calss by business connectors ,the operation  failed with the following message on the infolog:

    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.DimensionEnabledType.constructForSystemDefinedByTableId(Int32 _viewId, String _viewLabel, Boolean ) in DimensionEnabledType.constructForSystemDefinedByTableId.xpp:line 200

       at Dynamics.Ax.Application.DimensionEnabledType.constructForSystemDefinedByTableId(Int32 _viewId)

       at Dynamics.Ax.Application.DimensionAttribute.getAttributeByHierarchyType(DimensionHierarchyType _hierarchyType) in DimensionAttribute.getAttributeByHierarchyType.xpp:line 116

       at Dynamics.Ax.Application.DimensionHierarchy.getHierarchyIdByHierarchyType(DimensionHierarchyType _hierarchyType) in DimensionHierarchy.getHierarchyIdByHierarchyType.xpp:line 88

       at Dynamics.Ax.Application.DimensionHierarchy.getSystemGeneratedHierarchyIds() in DimensionHierarchy.getSystemGeneratedHierarchyIds.xpp:line 21

       at Dynamics.Ax.Application.DimensionMetadataSetup.Loaddata() in DimensionMetadataSetup.loadData.xpp:line 9

       at Dynamics.Ax.Application.SysSetupInstaller.Writealldata() in SysSetupInstaller.writeAllData.xpp:line 19

       at Dynamics.Ax.Application.SysSetupInstaller.Run() in SysSetupInstaller.run.xpp:line 7

       at Dynamics.Ax.Application.SysSetupInstaller.loadPartitionData(Object[] _c) in SysSetupInstaller.loadPartitionData.xpp:line 3

       at SysSetupInstaller::loadPartitionData(Object[] )

       at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

       at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)


    The problem was caused by the debug settings enabled on the AOS and client configuration utilities (enable breakpoints). At this point partitions
    are not initialized, so there may be some debug asserts being hit due to debugging being enabled. You should be able to alter your AOS and client
    configurations, disabling all the breakpoint options. After doing so, restart the AOS and then perform the operation. It runs successfully!

     

    To disable the debugger on Business Connector:

    1.Click Control Panel, click Administrative Tools, and then double-click Microsoft Dynamics AX 2012 Configuration.

    2. On the Developer tab, select the check boxes in the Settings area, to disable the functionality you want.

    ◦ To disable breakpoints for user code, unselect Enable user breakpoints to debug code in the Business Connector.

    ◦ To disable global breakpoints in the Business Connector or client, unselect Enable global breakpoints to debug code running in the Business Connector or client.

    To disable the debugger on the AOS:

    1. Click Control Panel, click Administrative Tools, and then double-click Microsoft Dynamics AX 2012 Server Configuration.

    2. On the Application Object Server tab, unselect the check box labeled Enable breakpoints to debug X++ code running on this server.

     

  • 相关阅读:
    memcache内存估算整理
    yii2-更改默认显示的通用主页
    微信小程序开发工具中快捷键
    微信个人公众号推广
    [微信小程序]编译.wxss出错,2 not found
    [转载]SSH框架搭建详细图文教程
    网址收集
    在IIS上新发布的网站,样式与js资源文件加载不到(资源文件和网页同一个域名下)
    css与html基础收集
    js与jq基础记录
  • 原文地址:https://www.cnblogs.com/HlxDo/p/4582829.html
Copyright © 2011-2022 走看看