Skip to main content

Notifications

Microsoft Dynamics AX forum

No email notification sent out when batch job end up with an error

Posted on by 420

Hi everyone,

In AX 2012 we have a batch job which processes Sales invoices. This batch job executes just fine everyday however, in some instance it ends up with an error. This batch job executes over night and I stay away from my office at that time. So in case the batch job fails I wants an email notification so that I can address this first thing in the morning.

We are confused because of the behavior of batch job. If I understand correctly on the alert tab of batch job form AX is configured to send out an email notification at execution of every instance of batch job.

however, when error occurs in batch job no email notification is sent out. email functionality works fine across the environment. Are we understanding this behavior correctly?

Any input is appreciated.

*This post is locked for comments

  • Cezarini Profile Picture
    Cezarini 15 on at
    RE: No email notification sent out when batch job end up with an error

    Thank you, Chris!

  • Suggested answer
    Chris R Tilley Profile Picture
    Chris R Tilley 339 on at
    RE: No email notification sent out when batch job end up with an error

    Hello,

    Please check the following bug in Lifecycle services:

    KB 3029183 Batch Completion email notifications cannot be sent due to a new email architecture (System.Net.Mail)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: No email notification sent out when batch job end up with an error

    Do you have a solution for this? I am experiencing the same issue...

  • Cezarini Profile Picture
    Cezarini 15 on at
    RE: No email notification sent out when batch job end up with an error

    Hey Akhtar, can you please tell us the KB number? Thank you.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: No email notification sent out when batch job end up with an error

    Do you know the hotfix KB number for this issue in R3 CU8?

  • John Smith Sr. Profile Picture
    John Smith Sr. 420 on at
    RE: No email notification sent out when batch job end up with an error

    It's a bug in Ax. Ask Microsoft to give u a hotfix. Let me know if you have any further questions.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: No email notification sent out when batch job end up with an error

    Hi John,

    Were you ever able to get clarity or solution on this? I'm running into the exact same issue in an AX 2012 R3 deployment. All other email functionality is working with the exceptions of batch job status emails. I've tried everything I can think of but no resolution as of yet. Thanks in advance

  • Suggested answer
    fatihgork Profile Picture
    fatihgork 3,815 on at
    RE: No email notification sent out when batch job end up with an error

    Hello John,

    Can this user get e-mails for alert rules already?

    If not:

    There is an option for receiving alerts as e-mail in user settings, this should be checked.

    In addition,

    Are you using AX2012 R3?

    I have faced an issue:

    1. When the checkbox I mentioned above was set,
    2. E-mail address was written in user options
    3. In notifications tab of user settings, sending e-mails for alerts was set to "all alerts"

    and still could not get any e-mail from any alert rules.

    I changed the setting written in bullet numbered 3  above, to "define on each alert rule" then trigger the alert again and then was able to receive an e-mail.

    Hope that helps.

  • Shafeeque P. Profile Picture
    Shafeeque P. 6,458 Super User 2024 Season 2 on at
    RE: No email notification sent out when batch job end up with an error

    I recall a customer saying his email alerts work only  if an email address is entered in Cc field. Could you please enter an email in Cc field and try ?

  • John Smith Sr. Profile Picture
    John Smith Sr. 420 on at
    RE: No email notification sent out when batch job end up with an error

    Tim, i appreciate your response. Your answer makes complete sense to me. the job itsel never sent out an email however, if posting invoice didn't work and then AX shoots an email. thanks alot for your assistance.

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

News and Announcements

Give Back to the Community this Month

Quick Links

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,807 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,135 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans