Batch Jobs Are Five Times Slower After the AX 2012 Upgrade and You No Longer Trust the Upgrade Partner

The usual causes in order of likelihood, the evidence to collect before the next change request, and what an independent Finance and Operations audit delivers.

When batch jobs run several times slower after an AX 2012 upgrade, check the causes in this order: batch groups, priorities and thread settings that were never redesigned for the new batch framework; row-by-row X++ carried over from AX where set-based operations belong; indexes missing for the queries the customisations run; number sequences set to continuous where they do not need to be; and years of data the upgrade copied without cleanup. Before paying for another change request, collect batch job history, the slowest queries and the custom code involved. An independent audit turns that evidence into findings, owners and a stabilisation plan. Solzet audits live Finance and Operations projects.

Why do batch jobs get slower after an upgrade from AX 2012?

Because the upgrade moves the code and the data, but not the assumptions they were tuned for. In AX 2012 the batch servers, the SQL Server and the batch schedule were sized and adjusted over years by people who knew the system. On finance and operations apps the batch framework, the database platform and the way batch capacity is shared are different, and an upgrade that only made the code compile and the data load carries the old design into a place where it behaves differently.

That is why the slowdown often appears as a pattern rather than a single failure: the nightly window no longer finishes, a job that ran in minutes now runs for hours, and interactive users notice it during the day because heavy batch work now overlaps their working hours.

What are the usual causes, in order of likelihood?

Work down this list in order. The first causes are cheap to check and often explain most of the problem; the later ones take more evidence. Each one can be confirmed or ruled out with data from the environment, so nobody has to guess.

CauseWhat it looks likeHow to check
Batch groups, priorities and threadsAll jobs in one group, heavy jobs competing with integrations and short jobs, the window no longer fitsReview batch groups, the jobs assigned to each, scheduling priorities and the batch thread settings against what actually runs at night
Row-by-row X++ carried over from AXA custom job that loops over records with a select inside a while loop and updates them one at a timeRead the custom batch classes: look for nested selects, single-record inserts and updates, and work not split into parallel batch tasks
Missing or wrong indexesOne query dominates the database time; the same job is fast on small companies and slow on the big oneCompare the slowest queries with the indexes on the tables they read, including tables the customisations added
Number sequencesPosting jobs that serialise on one sequence; waits that disappear when a single job runs aloneCheck which sequences are continuous and whether they need to be, and whether preallocation is set for high-volume sequences
Data volume never cleaned upJobs that read history the business no longer uses; large batch history, staging, log and notification tablesMeasure the largest tables and run the standard cleanup routines for them, after agreeing retention with finance and audit

How do batch groups and priorities cause slow nightly runs?

In many upgraded estates every job sits in the default batch group, so a heavy costing or settlement job, a stream of integration jobs and a short alert job all compete for the same threads. When the heavy job starts, the short ones queue behind it, and the integrations the business relies on in the morning finish late. Batch priorities and groups exist to keep those apart: heavy jobs in their own group and window, time-sensitive jobs at a higher priority, and recurring jobs that poll every minute reviewed for whether they need to.

The same contention between batch work and warehouse scanning is covered on warehouse scanning slow during master planning, so this page does not repeat the warehouse side. The current options for batch priority-based scheduling and thread settings are described in Microsoft Learn; check them for your version, because Microsoft has changed how batch capacity is scheduled in recent releases.

Why does row-by-row X++ from AX hurt so much more now?

Because a loop that reads and writes one record at a time pays the round trip to the database for every record, and on a cloud platform that round trip costs more than it did when the AOS and SQL Server sat next to each other in your own server room. A job that touched a few hundred thousand records one by one in AX can become the job that never finishes.

The fix is a code change, not a configuration change: set-based statements such as insert_recordset, update_recordset and delete_from where the logic allows, RecordInsertList for bulk inserts, and splitting large jobs into batch tasks that run in parallel through the SysOperation framework. That is X++ work, and it needs a regression test for each job rewritten, because the result must stay the same while the runtime falls.

What evidence should you collect before paying for another change request?

Collect the facts first, so that the next change request, from the upgrade partner or anyone else, fixes a proven cause rather than a guess. Most of this evidence comes from the environment itself and from your own records. With it, a second opinion can confirm or rule out each cause in days rather than weeks.

  • Batch job history for the slow jobs: start and end times, duration per run, the batch group, and what else ran at the same time, for the weeks before and after go-live.
  • The same runtimes from AX 2012, if anyone kept them, or at least the old batch schedule.
  • The slowest queries and the waits behind them, from the monitoring and diagnostics tools available for your environment.
  • The list of custom batch classes and who wrote them, with access to the source code repository.
  • Number sequence setup for the documents the slow jobs post.
  • The size of the largest tables, and which cleanup jobs are scheduled.
  • Every change request already raised about performance, with what it promised and what changed.

What does an independent performance audit deliver?

A written set of findings, each with its evidence, its business impact and a named owner, and a stabilisation plan that puts them in order: the quick changes to batch groups, priorities and schedules that can go in first, the X++ rewrites with their tests, the index and number sequence changes, and the data cleanup agreed with finance and audit. It also says plainly which findings belong to the original upgrade scope, so the commercial conversation with the upgrade partner rests on facts.

The audit covers Finance and Operations performance as part of our Dynamics 365 health check and technical audit, which describes the full scope and format; this page only covers the batch symptom after an upgrade. If the upgrade is still to come, the route itself is on Dynamics AX to Finance and Operations upgrade.

What does Solzet do after the audit?

Solzet audits live Finance and Operations projects and, if you want, carries out the stabilisation plan with its own consultants and X++ developers: redesigns batch groups and schedules, rewrites the slow custom jobs as set-based or parallel batch tasks with regression tests, adjusts indexes and number sequences, and sets up the cleanup routines. You decide whether that work goes to us, to your current partner or to your own team; the findings are written so any of them can act on them.

The Finance and Operations service line is on Dynamics 365 Finance and Operations implementation. For the CRM side, buyers who would rather not carry Microsoft licensing can choose a custom CRM. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.

What do people ask us?

Why are batch jobs slower in Dynamics 365 Finance and Operations after an AX 2012 upgrade?

Usually because the batch design and custom code were carried over without being redesigned: jobs crowded into one batch group, row-by-row X++ loops, indexes missing for custom queries, continuous number sequences on high-volume documents, and history that was copied without cleanup.

What should we check first when batch performance drops after go-live?

Batch groups, priorities and thread settings, because they are cheap to check and often explain much of the problem. Then the custom batch classes for row-by-row processing, then indexes, number sequences and table sizes.

How do we know whether custom X++ code is the cause?

Read the custom batch classes for selects inside while loops, single-record inserts and updates, and large jobs not split into batch tasks, and compare them with the slowest queries in the environment. If the slow queries come from custom code, a set-based or parallel rewrite with a regression test is the fix.

What evidence should we collect before paying for another change request?

Batch job history before and after go-live, the old AX runtimes if available, the slowest queries, the list of custom batch classes with source access, number sequence setup, the largest tables and scheduled cleanup jobs, and every performance change request already raised.

What does an independent Finance and Operations performance audit deliver?

Findings with evidence, business impact and a named owner for each, and a stabilisation plan in order of work: batch scheduling changes, X++ rewrites with tests, index and number sequence changes, and data cleanup. It also states which findings fall inside the original upgrade scope.

Does Solzet audit Finance and Operations projects built by another partner?

Yes. Solzet audits live Finance and Operations projects whoever built them, and can carry out the stabilisation plan with its own consultants and X++ developers if you choose.

Which solution is right for your business?

Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.