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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Job Queue Error Notification

(1) ShareShare
ReportReport
Posted on by 450
Is there a way to get some kind of notification, like an email, when a job queue tries to run and errors?
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,681 Super User 2025 Season 2 on at
    Hi, as far as I know, it can't be done in the standard.
    You can use AL to customize an extension to let the system automatically send emails.
    Or you can use Power Automate to send a message when an error detail is created.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • Suggested answer
    Sabina Sasu Profile Picture
    19 on at
    Hi Brett,
    Unfortunately there are no out-of-the-box features that allow those actions.
    However, you can navigate to the Extensions Marketplace and download a free extension called LIDD Job Queue Alerts.
     
    We developed this extension for customers that had the same requirements as you. 
    It allows you to send email notifications when a job queue fails, and to restart it automatically.
     
    Let me know if you have any questions!
     
     
    Sabina
    Software Developer
    LIDD Consultants Inc.
     
     
  • Leslie C Profile Picture
    26 on at
    I was able to set this up with Power BI. I created a Power BI report with a card that monitors the errors. I then set an alert on this card that if an error occurs, I get an email. No code needed, just Power BI.
  • Suggested answer
    Manish Sharma Profile Picture
    52 on at
    We did this for a customer in NAV & then carried it in Business Central, you can try below by creating a codeunit, hope this helps,
     
    Codeunit 50000 "Send Job Queue Staus Email"
    {
        TableNo = "Job Queue Entry";
        trigger OnRun()
        begin
            case Rec.Status of
                Rec.Status::Error:
                    begin                   
                            Clear(EmailMessage);
                            Clear(Email);
                            ToRecipients := 'xyz@abcmail.com';
                            EmailSubject := 'Error in Job Queue - ' + format(Rec."Object ID to Run");
                            EmailBody := GetErrorDescp(Rec.ID);
                            EmailMessage.Create(ToRecipients, EmailSubject, EmailBody, true, CCRecipients, BCCRecipients);
                            Email.send(EmailMessage);                   
                    end;
            end;
        end;
     
        var
            EmailSubject: Text;
            EmailBody: Text;
            EmailMessage: Codeunit "Email Message";
            CCRecipients: List of [Text];
            ToRecipients: List of [Text];
            BCCRecipients: List of [Text];
            Email: Codeunit Email;
     
    local procedure GetErrorDescp(JobId: Code[250]): Text
        var
            JobQueueLogEntry: Record "Job Queue Log Entry";
        begin
            JobQueueLogEntry.Reset;
            JobQueueLogEntry.SetRange(JobQueueLogEntry.ID, JobId);
            if JobQueueLogEntry.FindLast then
                exit(JobQueueLogEntry."Error Message");
        end;
    }
  • Suggested answer
    Valentin Castravet Profile Picture
    31,452 Super User 2025 Season 2 on at
    As the other users mentioned its not possible to do out of the box, you will need to customize the system to do it, or use other tools to do it. 
     
  • Brett F Profile Picture
    450 on at
    Thanks all!  We were lucky enough to find that an extension we had purchased for different features includes a job queue error email alert feature and it has been great!
  • Suggested answer
    Valentin Castravet Profile Picture
    31,452 Super User 2025 Season 2 on at
    That's good. As an aside, looks like this feature will be available out of the box in the new fall 2024 update - https://learn.microsoft.com/en-us/dynamics365/release-plan/2024wave2/smb/dynamics365-business-central/get-notified-about-issues-job-queue-background-processing
     
  • Gerardo Rentería García Profile Picture
    25,225 Most Valuable Professional on at
    Hi
    You could rely on telemetry and when you analyze these signals, you can send emails.
    BR
    GR

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans