We are running customer account statements to pdf and sending via email. The program works correctly in all our test environments but in production, a random number of statements are sent then the program throws the following error.
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.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)
Most of the time the program will send anywhere between 1 and 20 before throwing this message. Prior to the error message, the program responds with "The report has been successfully sent as attachment to email. for each successful customer statement. I can restart the program at the same customer and run a few more before the error returns.
We have checked the SMTP server, (the same server is used on all boxes), verified the relay, recompiled the program and contacted Microsoft for help. Microsoft wants to install an SMTP tool or network activity tool on our test box but I don't get the error on the test boxes and I can't install those programs on our production box.