3

The front end gives the following error.


 "Error executing code: Wrong argument type for function."


 



public void init()
{
  if (this.args() && this.args().record())
  {
    //do something before


    next init();


    //do something after
  }
}


 


Event viewer (Folder: AX-XppRuntime) gave me a little more info. 


 













exceptionMessage Error executing code: Wrong argument type for function.










    stackTrace at [aoskernel.dll]Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue, interpret* ip) at [aoskernel.dll]Microsoft.Dynamics.Ax.MSIL.cqlClassIL.Call(IntPtr c, String methodName, Object[] parameters, Type[] types, Object[] varargs, Type[] varargsTypes) at [Microsoft.Dynamics.AX.Server.Core.dll]Microsoft.Dynamics.Ax.Xpp.XppObjectBase.Call(String methodName, Object[] parameters, Type[] types, Object[] varargs) at [Microsoft.Dynamics.AX.FormsEngine.dll]Dynamics.AX.Application.xFormRun.run() at [Dynamics.AX.ApplicationPlatform.dll]Dynamics.AX.Application.FormRun.`run() in xppSource://Source/ApplicationPlatform\AxClass_FormRun.xpp:line 531 at [Dynamics.AX.ApplicationPlatform.dll]Dynamics.AX.Application.FormRun.FormRunCoCHelper.`run(FormRun instance) at [Dynamics.AX.ApplicationPlatform.dll]Dynamics.AX.Application.FormRun.run() at PurchReqCreate::run(Object , Object[] , Boolean& ) at [Microsoft.Dynamics.AX.Xpp.Support.dll]Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(Object instance, String MethodName, Object[] parameters) at callILClassMethod(interpret* ip, Char* method, UInt32 chdl, cqlClass* c)


 

Category: Development
STATUS DETAILS
Needs Votes