Try Microsoft Edge
A fast and secure browser that's designed for Windows 10
It looks like AX tries to pop up a dialog, and client calls are not allowed in batch. I have seen issues when a Query object unpack resulted in a Query form shown. After I reset usage data, the window stopped popping up.
yes, deleting usage data fixed this but now I get a different one:
Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 42
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)
Any ideas? I have several batch classes and they work...but this not. Why?
I suggest you to perform incremental CIL compile for you Dynamics AX
You van do it from development workspace, under build menu.
ensure that you dont have any compilation error.
Hi I already did that...without success. The error still exists
What code do you have at line 42 in BatchRun.runJobStaticCode()? What if you actually use debugger to debug it?
code is the following:
isRunBaseBatch = SysDictClass::isEgualOrSuperclass(classIdGet(batchClass), classNum(RunBaseBatch));
Debugging...how can you debug a batchjob?
Please consult the section about batch jobs in Debugging in Microsoft Dynamics AX 2012.
Check your pack and unpack method, if they seems alright than look for any client side code calling , eg. WINAPI class. Once that is not an issue then see if you have made run on property of class on client. After fixing everything try to generate CIL, restart aos and try it.