Trying to configure batch emailing of Sales orders - need inputs

Hello,

   At this time our users are sending Sales orders to customers via email manually. The wanted it to be automated and send the SO pdfs via email by scheduling a job. 

I am researching on this and I have tried to configure. I see that under the AR/All Sales orders, under the Sell tab there is a confirmation button. I have tried to schedule a batch job by changing the customer's email  in the SO header to our internal test email for now for testing purposes. When I schedule a job I could see it run in the batch job history with an error. When I looked at the Batch jobs/select the job and View tasks/Log I see the below error. I am further looking at it. But would like some inputs if any one of you had configured and automated the SO email batching then please provide some inputs. I am not sure if I need to customize the SalesFormLetter_Confirm and any other related classes or may be just I am missing something while configuring it correct. Is there a link and or article ?

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)

Thank you!

Related
Recommended