Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Getting error while trying to send "Customer Statement of accounts" via email in batch

(0) ShareShare
ReportReport
Posted on by 22

Hello All,
I am trying to send "Customer Statement of accounts" via email. Whenever I try to send email to customers via batch I always get an error. Although it works fine when I send directly i.e. without any batch.
I have tried all the solutions I could find online. However, those solutions didn't work for me.
I have configured the SMTP and Email parameter as per the below link.
docs.microsoft.com/.../configure-email-functionality-in-microsoft-dynamics-ax

pastedimage1566788253334v1.png

The error message I got :

"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)

Also, I have generated full CIL successfully. Still, the error persists.  

Thanks in advance.

*This post is locked for comments

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Getting error while trying to send "Customer Statement of accounts" via email in batch

    Aha.

    So, the issue does not seem to be related to the batch framework or the report itself but the sending of the report via email.

    Can you have a look at the following website that shows the different setups that are necessary to send things via email in AX2012.

    docs.microsoft.com/.../configure-email-functionality-in-microsoft-dynamics-ax

    It might be the case that you overlook a setting.

    Best regards,

    Ludwig

  • Satyaprajna Das Profile Picture
    Satyaprajna Das 22 on at
    RE: Getting error while trying to send "Customer Statement of accounts" via email in batch

    Dear Ludwig,

    Thanks for your reply.

    I am not getting any error while printing the report in batch. Only when I am sending mail via batch, AX throws that error.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Getting error while trying to send "Customer Statement of accounts" via email in batch

    Hello Satyaprajna Das,

    If you just print the reports in batch mode on the screen do you also receive an error message that this is not possible or does it print all the reports fine?

    Another thing that you can check is whether one of those hotfixes listed on LCS (Please see: fix.lcs.dynamics.com/.../Results applies.

    Best regards,

    Ludwig

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans