Hello,
I am trying to set up the out of the box batch job (<comapny>/Accounts receivable/Common/Sales orders/All Sales orders under the Sell tab clicking on the Confirmation button) to send out the SO confirmations. The batch should automatically pick up all the SOs based on the criteria provided in the Select (d) on the 'Confirm sales order' screen and shoud send the emails out to the primary email contact for that sales order. When it is not setup as a batch job it does send out the emails but failing when setup as a batch job. Below is the error I see in the System admin/batch jobs/select the batch job/and go to the View tasks under the log section I see the below errors.
Error:
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.Interop.ThrowCQLError(IL_CQL_ERR cqlErr)
at Microsoft.Dynamics.Ax.Xpp.CastHelper.ToBoolean(Object _value)
at Dynamics.Ax.Application.MAS_GlobalCacheEmailLogController.Setglobalcache(Int64 _jourRecId, Int32 _tableId, Int64 _masterTableRecId) in MAS_GlobalCacheEmailLogController.setGlobalCache.xpp:line 15
at Dynamics.Ax.Application.SalesConfirmController.main(Args _args) in SalesConfirmController.main.xpp:line 67
at SalesConfirmController::Main(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Dynamics.Ax.Application.MenuFunction.Run(xArgs _args, Boolean ) in MenuFunction.run.xpp:line 76
at Dynamics.Ax.Application.CustConfirmJour.Printjournal(FormletterJournalPrint formletterJournalPrint, RecordSortedList journalList, Boolean , Boolean ) in CustConfirmJour.printJournal.xpp:line 21
at Dynamics.Ax.Application.CustConfirmJour.Printjournal(FormletterJournalPrint formletterJournalPrint, RecordSortedList journalList)
at Dynamics.Ax.Application.SalesConfirmJournalPrint.Doprint() in SalesConfirmJournalPrint.doPrint.xpp:line 7
at Dynamics.Ax.Application.FormletterJournalPrint.Printjournal(Set _journalList) in FormletterJournalPrint.printJournal.xpp:line 37
at Dynamics.Ax.Application.FormletterService.Printjournal() in FormletterService.printJournal.xpp:line 34
at Dynamics.Ax.Application.FormletterService.Printout() in FormletterService.printOut.xpp:line 13
at Dynamics.Ax.Application.FormletterService.Endposting(Printout _printout) in FormletterService.endPosting.xpp:line 14
at Dynamics.Ax.Application.FormletterService.Endpostingmultithread() in FormletterService.endpostingMultithread.xpp:line 25
at Dynamics.Ax.Application.FormletterServiceEndBatchTask.Run() in FormletterServiceEndBatchTask.run.xpp:line 13
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)
I am not sure if I need to customize something to make this happen. Can any please shed some light here?
Our AX version:
AX 2012 R3 CU12
Thanks,
Dave