Hi!
We are running the batch job which includes 2 tasks, the second should be run after the first is completed. Consultant is getting the error for the first task:
Error in collecting infolog Microsoft.Dynamics.Ax.Xpp.BreakException at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue, interpret* ip) at Microsoft.Dynamics.Ax.MSIL.cqlClassIL.Call(IntPtr c, String methodName, Object[] parameters, Type[] types, Object[] varargs, Type[] varargsTypes) at Microsoft.Dynamics.Ax.Xpp.XppObjectBase.Call(String methodName, Object[] parameters, Type[] types, Object[] varargs) at Dynamics.AX.Application.xInfo.copy(Int32 _from, Int32 _to) at Dynamics.AX.Application.Info.copy(Int32 _from, Int32 _to) in xppSource://Source/ApplicationPlatform\AxClass_Info.xpp:line 860 at Dynamics.AX.Application.Info.copy(Int32 _from, Int32 _to) at Dynamics.AX.Application.BatchRun.
getInfoLog() in xppSource://Source/ApplicationPlatform\AxClass_BatchRun.xpp:line 1062 at Dynamics.AX.Application.BatchRun.getInfoLog() at Microsoft.Dynamics.AX.Batch.Batch.InvokeServerFinishTaskInNewSession(BatchTaskInfoWrapper taskInfo, Boolean isErrorCaught, Int32 exceptionval, Int64 elapsedMilliSeconds).
When I run it by myself - the execution ends successfully. What could be the source of error and where should I check?
When consultant tried to create the new batch from Batch jobs form he got a warning “The specified class is not fully designed for use in the Batch job form. Execution might provide unexpected results”. The class is of RunBaseBatch type and has canRunInNewSession = false. Could the first error be related to RunBaseBatch framework?