Update email approval with report attachment and workflow comment entry - hotfix KB2954087 doesn't work!

Dear experts,

I configure and test the workflow attachment notification for Purchase Requisition via email as the Microsoft White Paper “Window approval via email” pdf document ( https://download.microsoft.com/download/7/5/4/754A05AB-0BA7-4289-8BB2-54A92399EFBF/Workflow%20approval%20via%20email.pdf ).

My Ax test environment is Ax 2012 R3, RTM. I’ve applied the hotfix KB2954087 as stated on the document & config Mobile service and all needed configurations which the Microsoft White Paper guided.

  1. If I un-check the Add attachment checkbox @System Administration >> Setup >> Workflow >> Workflow Parameters

I can receive email notification, can approve (without comment) for Purchase Requisition workflow.

  1. If I check the Add Attachment checkbox at Workflow Parameters, no email notification come out & sure no attachment.

Which means the hot-fix KB2954087 doesn’t work.

Here is the error of the email attachment distributor batch job:

Microsoft.Dynamics.AX.Framework.Reporting.Shared.ReportException: This report requires a default or user-defined value for the report parameter ‘VersioningTimeStamp’. To run or subscribe to this report, you must provide a parameter value.

at Microsoft.Dynamics.AX.Framework.Reporting.Shared.Proxy.HandleSoapException(SoapException exception)

at Microsoft.Dynamics.AX.Framework.Reporting.Shared.Proxy.RenderReportToFile(String reportPath, ParameterValue[] parameters, String fileName, ReportFileFormat fileFormat, String deviceInfo, String execId)

at Dynamics.Ax.Application.SRSProxy.Renderreporttofile(String _reportPath, ParameterValue[] _parameterValueArray, String _fileName, SRSReportFileFormat _fileFormat, String _deviceInfo, String _executionID, Boolean ) in SRSProxy.renderReportToFile.xpp:line 77

at Dynamics.Ax.Application.SRSProxy.Renderreporttofile(String _reportPath, ParameterValue[] _parameterValueArray, String _fileName, SRSReportFileFormat _fileFormat, String _deviceInfo, String _executionID)

at Dynamics.Ax.Application.SrsReportRunPrinter.Toarchive() in SrsReportRunPrinter.toArchive.xpp:line 9

at Dynamics.Ax.Application.SrsReportRunPrinter.Printreport() in SrsReportRunPrinter.printReport.xpp:line 21

at Dynamics.Ax.Application.SrsReportRunService.Runreport(SrsReportDataContract _reportContract) in SrsReportRunService.runReport.xpp:line 43

at Dynamics.Ax.Application.SrsReportRunImpl.Runreport() in SrsReportRunImpl.runReport.xpp:line 11

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

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 30

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)

Thanks for your help

Kind Regards,

Tran