Use the Job Queue Entries page to schedule and run specific reports and codeunits. You can set jobs to run one time, or on a recurring basis. For example, you might want to run the Salesperson * Sales Statistics report weekly to track sales by salesperson each week, or run the Delegate Approval Requests codeunit daily to prevent documents from piling up.
The Job Queue Entries page lists all existing jobs. If you add a new job queue entry that will run on a schedule, you must provide some information. For example:
After job queues are set up and running, the status can change as follows within each recurring period:
After a job finishes successfully it’s removed from the list of job queue entries, unless it’s a recurring job. For recurring jobs, the Earliest Start Time field is adjusted to show the next time that the job will run.
Data that the job queue generates is stored, so that you can troubleshoot errors.
For each job queue entry, you can view and change the status. When you create a job queue entry, its status is set to On Hold. You can set the status to Ready and back to On Hold, for example. Otherwise, status information is updated automatically.
The following table describes the values of the Status field.
The job queue entry is ready to be run.
The job queue entry is in process. This field updates while the job queue is running.
The default status of the job queue entry when it's created. Choose the Set Status to Ready action to change the status to Ready. Choose the Set On Hold action to revert the status to On Hold.
Something went wrong. Choose Show Error to show the error message.
The job queue entry is complete.
The Scheduled Tasks page in Business Central shows which tasks are ready to run in the job queue. The page also shows information about the company that each task is set up to run in. However, only tasks that are marked as belonging to the current environment can run.
For example, all scheduled tasks stop if the company is in an environment that’s a copy of another environment. Use the Scheduled Tasks page to set tasks as ready to run in the job queue.
The My Job Queue part on your Role Center shows the job queues entries that you’ve started but aren’t finished. By default the part isn’t displayed, but you can add it to your Role Center. To learn more about personlization, go to Personalize Your Workspace.
The part shows the following information:
The My Job Queue part also lets you cancel a document posting.
You can schedule a report or batch job to run at a specific date and time. Scheduled reports and batch jobs are entered in the job queue and processed at the scheduled time, similar to other jobs. You choose the Schedule option after you choose the Send to action, and then you enter information such as printer, time and date, recurrence.
To learn more about scheduling, go to Scheduling a Report to Run
If you’ve integrated Business Central with Dataverse, the job queue lets you schedule when to synchronize data. Depending on the direction and rules you’ve defined, the job queue entry can create records in one app to match records in the other. A good example is when you register a contact in Dynamics 365 Sales, the job queue entry can set up that contact for you in Business Central. To learn more about scheduling, go to Scheduling a Synchronization between Business Central and Dynamics 365 Sales.
You can use job queue entries to schedule business processes to run in the background. For example, background tasks are useful when multiple users post sales orders at the same time, but only one order can be processed at a time. To learn more about background posting, go to To set up background posting with job queues.
If a job queue entry shows an error, your first option to resolve the issue is to restart the job queue entry. You can set the status of the job queue entry to On Hold and then to Ready, or just restart it.
If a restart doesn’t help, the issue might be in the code. You can find the owner (also called the publisher) of the code in the AL stack trace in the Job Queue log. If the error comes from an app/extension, contact your Microsoft partner. If the error comes from a Microsoft application, open a support request with Microsoft.
If you contact your Microsoft partner or Microsoft for support, please provide the following information:
Administrators can use Azure Application Insights to gather and analyze telemetry that helps identify problems. To learn more about telemetry, go to Monitoring and Analyzing Telemetry and Analyzing Job Queue Lifecycle Trace Telemetry.
Telemetry lets administrators set up alerts on job queue issues that send a text message, email, or a message in Teams if something isn’t right. To learn more about these alerts, go to Alert on Telemetry.
FOR A CALL BACK
Provide discussion information and we’ll get back to you as soon as possible