Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

NAV 2016 Approval Notification Emails not sending

Posted on by 625

Hi All,

We are having an issue with Approval Notification Emails in NAV 2016.

If we manually start the Job Queue that runs the Notification Entry Dispatcher (Codeunit 1509), instead of starting it automatically from the NAS, then the approval emails are sent successfully.

However, if we start the Job Queue automatically from the NAS instead, then no approval emails are sent and the associated Notification Entries display an Error Message of "The email address "" is not valid."

Has anyone experienced this issue before?

We are using NAV build version 9.0.43402.0.

Thanks in advance for your help.

Regards,

Blair

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2016 Approval Notification Emails not sending

    Hi All,

    experienced this recently when checking why there are no notifications sent out. The notification entries all show this "The email address "" is not valid."

    If you run CU1509 manually, it will process them fine.

    The reason is that account that JobQ is started with on NAS does not have email setup.

    So for the service account that you are starting your middle tier with, go to Approval User Setup create entry for the service account there and fill in the email address this account should use when sending mails form/to as part of NAV workflows.

  • santhanak Profile Picture
    santhanak 360 on at
    RE: NAV 2016 Approval Notification Emails not sending

    Hi All,

    we are facing similar issue in NAV 2016. Approval Notification Email will not be sent using Domain Service Account , but the same runs with other NAV Super User. 

    Job Queue works fine with this Service Account and the entries will go sit in Departments/Administration/Application Setup/Notifications/Notification Entries.

    Tried the Job Queue with Domain Service Account in all possible scenarios like 

    1) Start with NAS

    2) Run Manually

    3) without and with filling of "Start on this NAS Instance" and "Start on this NAS Computer"

    but only works with start Job Manually with normal Domain NAV super user.

    am i missing anything important step or configuration for this Domain Service Account? please suggest.

    Note: Domain Service Account also has be set as NAV User with Super Permission but still Sent Notification Entry alone fails for the user.

  • Suggested answer
    RE: NAV 2016 Approval Notification Emails not sending

    Hi,

    The user credentials that are used to run the NAS services must be created as a NAV user, and that user must be assigned the necessary permissions in order to execute the C/AL code in the NAS Services.

    There is a high chance that your local user is a NAV user, but not the network service account. That's why I suggested this solution. You may try creating the Network Service user in NAV with necessary permission and try to recreate your scenario.

    Here is a good read: blogs.msdn.microsoft.com/.../microsoft-dynamics-nav-2013-nas-services-user-credentials

    Hope it helps.

  • Blairstid Profile Picture
    Blairstid 625 on at
    RE: NAV 2016 Approval Notification Emails not sending

    Hi,

    Thank you for your response. My Job queue doesn't actually error, only the notification entries show an error message.

    I have changed the NAS Service to run under a Local Account and approval email notifications are now working successfully.

    Out of curiosity, is there any reason why this does not work under a Network Account?

    Regards,

    Blair

  • TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: NAV 2016 Approval Notification Emails not sending

    If you set it manually does the email sent and if it start automatically it does not send to the same e-mail account?

    If that the case you need to check the service account access. As Nareshwar said in his reply it is worth a try. I will check this more and will get back to you.

  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 17,965 Super User 2024 Season 2 on at
    RE: NAV 2016 Approval Notification Emails not sending

    Hi,

    It does not seems a problem with job queue. It seems incomplete approval setup where Email Id is not specified for all users.

    To Check this -

    1. You can set the job queue to run automatically from NAS and stop the NAS Service.

    2. Make the same approval request which you have issues.

    3. The Notification entry will be created, Check for Recipient User ID in the Notification Entry Page and check it have value or not.

    ** Replicate the same scenario that you have issues when you run the batch automatically from NAS.

  • Verified answer
    RE: NAV 2016 Approval Notification Emails not sending

    Hi,

    So your Job Queue runs and throws an error message? Since the function works fine when you are trying manually, I assume that's something to do with configuration. Check the NAS instance's Service Account. I changed to Local Account from Network Account, and it worked. Worth a try.

    Hope it helps. 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans