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.

 

posted @ 2015-06-17 11:52  Nemo_han  阅读(3360)  评论(0编辑  收藏  举报