Skip to content
Free Business Central assessment
Written, scoped proposal after the assessment
Dynamics GP support ends December 31, 2029
Independent, not affiliated with Microsoft
A division of Sataware Technologies
Weekday support on Mountain Standard Time
Free Business Central assessment
Written, scoped proposal after the assessment
Dynamics GP support ends December 31, 2029
Independent, not affiliated with Microsoft
A division of Sataware Technologies
Weekday support on Mountain Standard Time
Free assessment →

A job queue in Business Central you can rely on overnight

The Business Central job queue runs codeunits and reports in the background on a schedule. So work such as cost adjustment, order posting, email sending and integration syncs happens with no one pressing a button. We design the schedule and set retry rules. We also add monitoring, so someone picks up a failed entry the same morning.

Last updated

⏱What it does

What the Business Central job queue is for

A job queue entry names a codeunit or report, the parameters to use and when to run it. Entries run once, or repeat on chosen weekdays, between a start and end time, at a set interval. They run in a background session. So users keep working while the task finishes.

Standard Business Central already relies on it. Examples are background posting of sales and purchase documents, the email outbox, workflow steps, Shopify sync and Power BI refresh tasks. Custom extensions and integrations add their own entries. That is where an unplanned schedule starts to collide.

Talk about your schedule →
Coiled mainspring and gears inside a clock mechanism
Commonly scheduled
  • ✓Adjust cost item entries
  • ✓Post inventory cost to G/L
  • ✓Background document posting
  • ✓Shopify order import
  • ✓Scheduled report delivery
🗓Schedule design

Designing a Business Central job queue schedule that does not collide

Two heavy tasks that touch the same tables at once will block each other. They may even fail with lock errors. Job queue categories solve this, because entries in one category run one after another. So we group tasks by the data they touch. Then we give each group its own category.

Timing matters as much. Cost adjustment belongs outside working hours. Integration syncs need an interval that matches how fresh the data must be. Also, nothing heavy should start during the environment update window. We write the schedule as a simple table that the system owner can read.

Plan your overnight run →
Design rules
  • ✓Categories for shared tables
  • ✓Heavy jobs outside working hours
  • ✓Intervals matched to need
  • ✓Clear of the update window
  • ✓Documented schedule table
🧯When jobs fail

Errors, retries and entries left on hold

An entry moves through statuses: ready, in process, error, on hold and finished. When a run fails, the entry can retry a set number of times with a delay between tries. Without retries, one brief lock at night leaves a recurring task stopped until someone notices.

We set the maximum attempts and rerun delay on each recurring entry. Then we look at why failures happen. The job queue log holds the error text and call stack. Common causes are a posting date outside the allowed range, a blocked record or an expired link to an outside service.

Fix a failing entry →
Usual causes
  • ✓Record locked by another task
  • ✓Posting date not allowed
  • ✓Missing permission on a table
  • ✓Expired integration credentials
  • ✓Owner account disabled
👤Who runs it

The user behind each job queue entry

Every entry runs with the permissions of a user. If that person leaves and the account is disabled, the entries stop. So we move recurring entries to a dedicated licensed account for background work. We give it a permission set that covers exactly what those tasks need.

There is a known trap for partners. A delegated administrator can create an entry but cannot run it, because background sessions need a licensed user in the tenant. We check the owner of every entry after go-live. We also check after each environment copy, because sandbox copies start with entries on hold.

Check who owns your jobs →
Ownership checklist
  • ✓Dedicated background account
  • ✓Licensed user, not delegated admin
  • ✓Narrow permission set
  • ✓Entries restarted after copy
  • ✓Owner recorded per entry
🔔Daily monitoring

Monitoring the Business Central job queue for failures

The Job Queue Entries page shows status, but only to someone who opens it. So we add a role center cue for entries in error. We turn on the built-in notice to the entry owner. For larger setups, we also send job queue signals to Application Insights, with an alert rule.

We tidy up as well. A cleanup policy removes old log entries on a schedule. We clear finished one-off entries and delete duplicates from testing. A short list of well-named entries is far easier to watch than a long one nobody knows. Each description says what the entry does.

Set up failure alerts →
Monitoring pieces
  • ✓Role center error cue
  • ✓Owner notification enabled
  • ✓Alert rule in Azure Monitor
  • ✓Cleanup policy on the log
  • ✓Duplicate entries removed
Questions

Business Central job queue questions

Why did our Business Central job queue entries stop after a sandbox copy?

When you copy an environment, scheduled tasks go on hold on purpose. That way, the copy does not send emails or sync with live services. First, check which entries are safe in that environment. Then set the ones you need back to ready. We keep a short list of these steps for your team.

How often can a job queue entry run?

You set the gap between runs in minutes on the entry. It works inside the recurrence days and time window you choose. Very short gaps on heavy tasks cause blocking. So we match the interval to how current the data really needs to be. A nightly run is often enough for cost adjustment.

Can a report be scheduled and emailed automatically?

You can schedule a report from its request page. The output then lands in the report inbox on the role center. Sending it by email on a schedule usually needs a Power Automate flow or a small extension. We can set up either one. We also test it, so the right people get the report.

What is a job queue category?

It is a label that groups entries. Entries that share a category run in sequence, not in parallel. That stops tasks that update the same tables from locking each other. Entries with no category may run at the same time. As your Business Central job queue consultant, we set categories for every heavy task.

Should cost adjustment run in the Business Central job queue?

In most companies, yes. Running the adjust cost batch job each night keeps item costs and margins current. It also avoids slowing posting during the day. Automatic cost adjustment on posting suits low volumes, but it adds time to every transaction. We check your volume and recommend one approach, then set it up.

Book a discovery call

Let's talk through your move to Business Central.

A focused call with a senior consultant. We learn how your business runs today, give you an honest view on whether Business Central fits, and outline scope and next steps before you commit to anything.

What happens after you send the form

1
We read your request
A consultant reads your details before the call. There is no long questionnaire to fill in.
2
Discovery call
We go through your processes, your current systems and the problems you want solved.
3
Written plan and proposal
You receive a written proposal covering scope, phases and licensing.
✓A consultant replies by email
✓NDA available on request
✓No cost, no obligation
✓Senior BC consultants

Request your discovery call

Takes under a minute. A consultant replies by email.

Free

Your details stay with our consulting team. We never share or sell them.

▦ IndependentDynamics 365Business Central consultants
C Clutch5.0 from 1 reviewSataware on Clutch
G GoodFirmsParent company profileSataware on GoodFirms
S SatawareOur parent company14+ years, 1000+ projects listed
▦ IndependentDynamics 365Business Central consultants
C Clutch5.0 from 1 reviewSataware on Clutch
G GoodFirmsParent company profileSataware on GoodFirms
S SatawareOur parent company14+ years, 1000+ projects listed
Book a free call