Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Workflow Approval via Email WITH ATTACHMENT issue

$
0
0

We have a client running AX 2012 R2 CU7 and I have already configured the Dynamics Mobile connector correctly and am able to send out workflow approval via email (with the accept / reject buttons).  The client also want's to attach a report to each of these approval emails.  Part of the instructions in the "Workflow approval via email.pdf", says that if you are running AX 2012 R3 CU8 or higher, a hotfix is included, if not, to download the KB2954087 hotfix.  I have attempted to install this hotfix in my TEST environment.  It added SOME of the new functionality.  Everything was great until we get to the end of page 4 of the PDF where it says to go to System Administration / Periodic / Email Attachments.  This was not visible but it WAS in the AOT and I just added it manually.  Then the labels were not showing up but that was fixed by deleting the label files and restarting the AOS.  NOW the issue is that when I click the Email Attachment link, it creates the Email Attachment Distributor batch job but it is ERRORING.  Any help would be appreciated.

Here is the InfoLog

Function PurchTableAllVersions.initFromProformaPurchTableVersion has been incorrectly called.

Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.

   at Dynamics.Ax.Application.PurchTableAllVersions.Initfromproformapurchtableversion(PurchTableVersion _purchTableVersion) in PurchTableAllVersions.initFromProformaPurchTableVersion.xpp:line 18

   at Dynamics.Ax.Application.PurchPurchaseOrderDP.Initproformapurchtableallversions(Int64 _purchTableVersionRecId) in PurchPurchaseOrderDP.initProformaPurchTableAllVersions.xpp:line 9

   at Dynamics.Ax.Application.PurchPurchaseOrderDP.Retrievejournalandversion(Int64 _recId) in PurchPurchaseOrderDP.retrieveJournalAndVersion.xpp:line 23

   at Dynamics.Ax.Application.PurchPurchaseOrderDP.Createdata(PurchPurchaseOrderContract _contract) in PurchPurchaseOrderDP.createData.xpp:line 30

   at Dynamics.Ax.Application.PurchPurchaseOrderDP.Processreport() in PurchPurchaseOrderDP.processReport.xpp:line 52

   at Dynamics.Ax.Application.SrsReportRunRdpPreProcessStrategy.Execute(Boolean _isPreview, Boolean ) in SrsReportRunRdpPreProcessStrategy.execute.xpp:line 27

   at Dynamics.Ax.Application.SrsReportRunRdpPreProcessStrategy.Execute(Boolean _isPreview)

   at Dynamics.Ax.Application.SrsReportRunRdpPreProcessService.Executewithcontract(SrsReportDataContract _reportContract, Int64 _preProcessedRecId, SrsReportDataProviderPreProcessInterface _rdpInstance, Boolean _isPreviewData, Boolean , Boolean , Boolean ) in SrsReportRunRdpPreProcessService.executeWithContract.xpp:line 82

   at Dynamics.Ax.Application.SrsReportRunRdpPreProcessService.@Executewithcontract(SrsReportDataContract _reportContract, Int64 _preProcessedRecId, SrsReportDataProviderPreProcessInterface _rdpInstance, Boolean , Boolean )

   at Dynamics.Ax.Application.SrsReportRunRdpPreProcessService.@Executewithcontract(SrsReportDataContract _reportContract, Int64 _preProcessedRecId, Boolean )

   at Dynamics.Ax.Application.SrsReportRunRdpPreProcessService.Executewithcontract(SrsReportDataContract _reportContract, Int64 _preProcessedRecId)

   at Dynamics.Ax.Application.SrsReportRunService.Prerunreport(SrsReportDataContract _reportContract) in SrsReportRunService.preRunReport.xpp:line 21

   at Dynamics.Ax.Application.SrsReportRunImpl.Prerunreport() in SrsReportRunImpl.preRunReport.xpp:line 12

   at Dynamics.Ax.Application.SrsReportRunController.Runreport() in SrsReportRunController.runReport.xpp:line 52

   at Dynamics.Ax.Application.SrsReportRunController.Run() in SrsReportRunController.run.xpp:line 6

   at Dynamics.Ax.Application.SysOperationController.Startoperation() in SysOperationController.startOperation.xpp:line 10

   at Dynamics.Ax.Application.SrsReportRunController.Startoperation() in SrsReportRunController.startOperation.xpp:line 12

   at Dynamics.Ax.Application.SysWorkflowApprovalWorkitemService.Generatereport(Int64 _configReportRecId, Int32 _contextTableId, Int64 _contextRecId) in SysWorkflowApprovalWorkitemService.generateReport.xpp:line 50

   at Dynamics.Ax.Application.SysWorkflowApprovalWorkitemService.Getattachmentcontent(Int64 _docuRefRecId, Int64 _configReportRecId, Int32 _contextTableId, Int64 _contextRecId) in SysWorkflowApprovalWorkitemService.getAttachmentContent.xpp:line 36

   at Dynamics.Ax.Application.SysEmailAttachment.generateAndSaveFileToDisk(Int64 _appConfigReportsRecId, Int32 _contextTableId, Int64 _contextRecId) in SysEmailAttachment.generateAndSaveFileToDisk.xpp:line 38

   at Dynamics.Ax.Application.SysEmailAttachment.generateAttachment(String _workflowElementName, Int32 _contextTableId, Int64 _contextRecId) in SysEmailAttachment.generateAttachment.xpp:line 29

   at Dynamics.Ax.Application.EventNotificationWorkflow.Sendmail(Boolean _isGlobalEmailTemplate, Boolean ) in EventNotificationWorkflow.sendMail.xpp:line 29

   at Dynamics.Ax.Application.EventNotificationWorkflow.Sendmail(Boolean _isGlobalEmailTemplate)

   at Dynamics.Ax.Application.EventNotificationWorkflow.Create(Boolean _isGlobal, Boolean ) in EventNotificationWorkflow.create.xpp:line 23

   at Dynamics.Ax.Application.EventNotificationWorkflow.Create(Boolean _isGlobal)

   at Dynamics.Ax.Application.SysEmailAttachment.Createeventnotification() in SysEmailAttachment.createEventNotification.xpp:line 31

   at Dynamics.Ax.Application.SysEmailAttachment.Run() in SysEmailAttachment.run.xpp:line 10

   at Dynamics.Ax.Application.SysEmailAttachmentNotificationBatch.Run() in SysEmailAttachmentNotificationBatch.run.xpp:line 18

   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)


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>