Error:Microsoft.Dynamics.Ax.Xpp.InfoException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.InfoExce



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.


转自:http://www.cnblogs.com/HlxDo/p/4582829.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值