web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    RamK Profile Picture
    2,580 on at
    RE: No email notification sent out when batch job end up with an error

    While scheduling a batch job, users can choose the type of alerts they need.  I believe that in your case, you have not configured for "Errors only" option.  Refer technet.microsoft.com/.../gg213151.aspx

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

    Does the job status get set to error when it fails to post a sales order invoice? I can't remember the specific details, but I'm pretty sure that one or more sales order invoices can fail to post, but the job itself doesn't fail. Its status (if it's a recurring job) is set to Waiting. So no alert from the job itself. But you may be able to trigger an alert from the sales order or the sales order posting history. Go to Accounts receivable > Inquires > History > Invoice and see if there are any records there that don't have a Job status = Executed. Then you could set an alert on those records.

  • Suggested answer
    Jonathan  Halland Profile Picture
    11,310 on at
    RE: No email notification sent out when batch job end up with an error

    Hi John.

    Also check that you have an alert email template setup and selected for the company under which the batch job is running. Organisation Admin -> Setup -> Alerts -> Alert Parameters.

    I'm assuming that the rest of your email setups are complete if you receive other mails

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

    I appreciate your response,

    I have selected the option error on alert page however, still not getting any email when batch job ends. I also tested with selecting the all options i.e. error, cancel,ended but still same behaviour. any other thoughts?

  • John Smith Sr. Profile Picture
    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.

  • Shafeeque P. Profile Picture
    6,527 Moderator 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 ?

  • Suggested answer
    fatihgork Profile Picture
    3,817 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.

  • Community Member Profile Picture
    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

  • John Smith Sr. Profile Picture
    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
    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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans