Can anyone help me with the below problem, basically at the moment I'm having to run the statements every month and end up doing it in about 20-30 'batches' because of the seemingly random crashes.
I get the following error at seemingly random intervals when attempting to email statements (External->Customer account Statement) using a batch and print management.
For testing purposes, I have set the email address to my own email address in print management but the same thing happens when I use @Business@ as the purpose field for the email when trying to send to customers (I usually add our debtors manager into the CC field as well but leave this out for testing).
By picking up the last customer sent to from the emails, I then 'select' >Customers->Csutomer Account for the next run which then continues from where it seemingly left off until it crashes again.
I cannot see why it crashes when it does but it always has the same error as shown below.
Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.
at Dynamics.Ax.Application.SrsPrintMgmtController.Outputreports() in SrsPrintMgmtController.outputReports.xpp:line 96
at Dynamics.Ax.Application.CustAccountStatementExtController.Outputreports() in CustAccountStatementExtController.outputReports.xpp:line 3
at Dynamics.Ax.Application.CustAccountStatementExtController.Runprintmgmt() in CustAccountStatementExtController.runPrintMgmt.xpp:line 116
at Dynamics.Ax.Application.SrsPrintMgmtController.Run() in SrsPrintMgmtController.run.xpp:line 14
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54
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)