Warehouse Scanning Stalls While Master Planning Runs: Batch Contention in Supply Chain Management

Why the warehouse mobile app slows down when planning, waves and a custom report run together, the checks in order, and the usual remedies.

When warehouse scanning in Dynamics 365 Supply Chain Management slows down only while master planning runs, the cause is rarely the devices or the network. Planning, wave processing and often a custom report compete with scanning for the same database resources and the same locks on on-hand and reservation data. Check in this order: the batch schedule, batch groups and priorities, the custom report and its queries, then the planning configuration. The usual remedies are moving heavy jobs out of shift peaks, isolating them on their own batch capacity, rewriting the report queries and narrowing what planning recalculates. Solzet reviews the custom X++ and batch design behind it.

Why does the warehouse mobile app slow down while master planning runs?

Because scanning is a stream of small transactions that all touch the same hot data: on-hand inventory, reservations, work lines and license plates. Master planning, wave processing and a heavy report read and write much of the same data in large volumes. When they run at the same moment, the scanner's short transaction waits behind a long one, and the warehouse sees a spinner after every scan.

The pattern is recognisable: scanning is fast early in the shift, slows when a scheduled job starts, and recovers when it finishes. If the slowness follows the schedule rather than a location in the building, look at the batch work and the database before the devices or the Wi-Fi.

Competing workWhat it touchesHow it hurts scanning
Master planning runDemand, supply, on-hand and planned orders across many itemsHeavy reads and writes on the same inventory data; with the deprecated built-in engine the calculation also runs on your batch capacity
Wave processing at peakReservations, work creation and replenishment for many orders at onceLocks on reservation and on-hand data that pickers need for each scan
A custom report or exportOften on-hand, transactions and warehouse work tables, unfilteredLong-running queries that hold resources and block or slow interactive work
Other batch jobs in the same windowCost calculation, inventory close preparation, integrationsMore pressure on the same database at the worst moment

What should you check first, and in what order?

Work from the cheapest evidence to the deepest. Each step either finds the cause or rules it out, and the order avoids spending a week tuning planning when a report scheduled at the start of the morning shift is the real problem.

  • Match the slow window to the batch schedule: List every batch job running while scanning is slow, including master planning, wave processing, reports, exports and integrations, and compare their start and end times with the complaints.
  • Review batch groups, priorities and threads: Check which batch group each heavy job uses, the priorities set for scheduling, and how many batch threads run on each batch server.
  • Trace the custom report and its queries: Use SQL insights to find blocking and expensive queries in the slow window, and review the X++ behind any custom report, data provider or export that appears.
  • Review the planning configuration with planners: Check the planning engine, run type, horizons, scope, action messages and run frequency against what the planners actually need.
  • Apply remedies one at a time and measure: Reschedule, isolate, then fix code, measuring scanning response in the same window after each change so the effect of each fix is clear.

How do batch groups and batch priorities affect warehouse performance?

Batch groups decide which batch server capacity a job runs on, and in current versions priority-based scheduling decides which jobs go first when capacity is short. If planning, the custom report, integrations and wave processing all sit in the empty default group, they compete for the same threads with no rule for what matters during a shift.

Give heavy jobs their own batch groups so they can be steered to their own capacity, set priorities so warehouse-critical work such as wave processing and replenishment wins over reports, and check how many batch threads each server runs. Isolating batch work does not remove database contention on its own, but it stops a report or a planning run from starving the jobs the warehouse depends on, and it makes the remaining contention visible.

How do you find out whether a custom report is the problem?

Look at what is running in the database while scanning is slow. SQL insights in the environment monitoring tools show blocking, long-running and expensive queries; trace the slow window and see which statements hold or wait for locks. If the top query belongs to a custom report class, a custom data provider or an export, you have your answer.

The usual findings in custom X++ are queries over on-hand or inventory transactions without a selective range, missing or wrong indexes for the filter actually used, row-by-row loops that issue one query per record, temporary tables filled with far more data than the report prints, and updates inside what should be a read-only report. The fix is in the code: selective ranges, an index that matches the query, set-based operations, and no writes in reporting logic. Where the report is an analytical view rather than an operational document, move it to an export or the data lake and report from there instead of the live transactional database.

Which planning settings make a master planning run heavier than it needs to be?

A run that recalculates everything, every time, across a long horizon is the most expensive version of planning. Check these with the planners before changing anything, because each one is also a planning decision.

  • Engine: if you still run the deprecated built-in master planning engine, the calculation runs as batch tasks against your database. Planning Optimization runs the calculation as a separate service and writes the result back, which takes most of the load off your batch capacity.
  • Run type: a full regeneration every run where a net change run would do. Schedule full runs outside shift hours and net change during the day only if planners really need it.
  • Horizons: coverage, explosion and action message horizons much longer than the business plans for.
  • Scope: every item and every site planned in one run, where separate plans or item filters for different planning rhythms would be lighter.
  • Action messages and futures dates: calculated for all items even where nobody reads them.
  • Frequency: several runs a day scheduled from habit rather than from when demand actually changes.

What changes for wave processing in peak season?

Peak season turns wave creation from a background task into the busiest work in the warehouse. Wave templates can process waves in batch, and the warehouse parameters let wave processing run on its own batch group, so a large wave does not run inside the interactive session of the person who released it. Smaller, more frequent waves hold locks for shorter periods than one very large wave at the start of the shift.

The same applies to replenishment: run it ahead of picking rather than at the same moment, and keep planning and heavy reports out of the hours when waves are released. If peak volume still overwhelms the setup, that is a capacity and design review, not a device problem.

What are the usual remedies once the cause is found?

Most fixes are scheduling, isolation and code, in that order of effort.

Cause foundRemedy
Heavy jobs scheduled inside shift peaksMove full planning runs, cost calculations and heavy exports to the night or between shifts
Everything in the default batch groupOwn batch groups and priorities for planning, waves, reports and integrations
Custom report with unselective queriesRewrite the X++ queries, add the index the query needs, remove writes from the report, or move analytical reporting off the transactional database
Deprecated built-in planning enginePlan the move to Planning Optimization, validating results with planners before switching
Planning recalculates too muchNet change during the day, shorter horizons, separate plans by planning rhythm
Very large waves at shift startWaves processed in batch on their own group, smaller and more frequent waves, replenishment ahead of picking

Who fixes this, and what does Solzet do?

This is Finance and Operations batch design and X++ work, not a job for a hardware supplier or a generic database tuning service. It needs someone who can read the batch configuration, the custom code and the planning setup together, and the warehouse and planning owners who decide what must run when.

Solzet reviews the batch schedule, batch groups and priorities, traces the slow window, reviews the custom X++ behind reports, exports and extensions, and agrees a planning and wave rhythm with your planners and warehouse leads. The wider implementation is on Dynamics 365 Supply Chain Management and Finance and Operations; if the slowness is one symptom among several, an independent health check and technical audit gives the full picture with a stabilisation plan. For organisations that would rather not carry Microsoft licensing on the CRM side, we also build custom CRM connected to the ERP. 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 is the Dynamics 365 warehouse mobile app slow only at certain times?

Usually because a scheduled job runs at those times. Master planning, wave processing, a custom report or an export competes with scanning for the same database resources and locks on on-hand and reservation data. Compare the slow window with the batch schedule first.

Does master planning slow down warehouse scanning in Supply Chain Management?

It can, especially with the deprecated built-in engine, where the calculation runs as batch tasks against your database. Planning Optimization runs the calculation as a separate service. Either way, schedule full runs outside shift peaks and keep daytime runs to net change where planners need it.

How do batch groups help warehouse performance?

They let you steer heavy jobs such as planning, reports and integrations to their own batch capacity, and with priorities decide what runs first when capacity is short, so warehouse-critical jobs are not starved. They do not remove database contention on their own.

How can a custom report slow down scanners?

A report that queries on-hand, inventory transactions or warehouse work without selective ranges or matching indexes, loops row by row or writes data can hold resources and block the short transactions each scan needs. SQL insights shows such queries in the slow window.

Why does wave creation slow down in peak season?

Large waves reserve inventory and create work for many orders at once, holding locks that pickers need. Process waves in batch on their own batch group, release smaller and more frequent waves, run replenishment ahead of picking and keep planning and heavy reports out of wave release hours.

Is slow scanning a device or network problem?

Sometimes, but if the slowness follows the batch schedule rather than a place in the building, it is almost always contention in the system. Check devices and Wi-Fi when slowness is local to an area or constant across the day.

Can Solzet review our batch design and custom X++?

Yes. Solzet reviews the batch schedule, batch groups and priorities, traces the slow window, reviews the custom X++ behind reports, exports and extensions, and agrees a planning and wave rhythm with your planners and warehouse leads.

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.