For additional informations:
I'm using microsoft Dynamics AX 2012 R3 CU 9
what i have done before to try solving this issue :
- Compile (there is no error)
- Full CIL (there is no error)
- when i run the job manually it works properly (uploading file.csv to the AP invoice journal)
sometimes when i restarting the AOS service it's stuck on stopping status and i must to kill the task to make the AOS service stopped but i must start the AOS service manually
this is the screenshoot of my issue (stuck in executing) ,in the real the batch job didn't work (didn't inserting the file.csv to AP invoice journal) but the status "executing" without working in anything
when i go to the event viewer, this is the error log :
Object Server 01: Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.
at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue)
at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.InsertInto(IntPtr targetTable, List`1 fields, List`1 ops, IntPtr sourceTable)
at Microsoft.Dynamics.Ax.Xpp.Common.InsertInto(FieldList fieldList, Common sourceCursor)
at Dynamics.Ax.Application.BatchRun.serverProcessFinishedJobs(Boolean forceProcessing, Boolean ) in BatchRun.serverProcessFinishedJobs.xpp:line 322
at Dynamics.Ax.Application.BatchRun.serverProcessFinishedJobs(Boolean forceProcessing)
at BatchRun::serverProcessFinishedJobs(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.checkFinishedJobs(Boolean forceProcessing)
at BatchIL.threadFunc(Object threadArg)