---
title: "Item Constraints in MxAPS"
app: "MxAPS"
section: "How-to guides"
last_updated: "2026-09-21"
url: "https://insight-works.com/kb/mxaps/item-constraints-in-mxaps/"
---

# Item Constraints in MxAPS

### Set up

You must set up the following to ensure the MxAPS schedule gets constrained by Items. These Items could be anything from Production BOM Components to Secondary Constraints like Labor or Tooling:

- Routing Configuration: Each of the applicable operations on the routing lines have the _Secondary Constraints_ field set to “Schedule”.
- Item Configuration: Set the _Constraint Type_ field set to “Constrain”.
- Use _Tracked_ when shortages should be recorded in MxAPS results but should not stop scheduling.
- Use _Ignored_ when the item should not be included in the schedule.

   - Set _Fence Type_ to “Global” or “Item” on the item card for each of the constraints (refers to a period from when the schedule starts to when the item is automatically replenished).
   - If _Fence Type_ is set to “Item”, MxAPS uses the item’s defined “Lead Time Calculation”.
   - If _Fence Type_ is set to “Global”, MxAPS uses the defined “Global Lead Time”, which is set when generating a schedule.
   - If you do not want auto replenishment, set one of the following:

      - The _Global Lead Time_ value to exceed the “Schedule Duration”.
      - The Item _Lead Time Calculation_ to be greater than the maximum schedule duration of 365 days.

-

### Setup best practices

1. Select Constraint Type:

   - Constrained: Only for materials that should stop or delay scheduling.
   - Tracked: For materials where shortage visibility is useful but scheduling should continue.
   - Ignored: For non-critical components.
2. Select Fence Type:

   - Global: For simple, consistent material checking through adjustment of this value when generating schedules.
   - Item: When materials have consistent specific item supply lead times (this field is used by Business Central for determining planning suggestions for purchase replenishment).
3. Schedule related parent and subassembly production orders together.
4. Run Business Central planning first when production orders and supply suggestions need to be created before scheduling.

### Use-case scenario examples

#### Purchase products

- Items with accurate and reliable lead time calculations set to a Fence Type of Item.
- Items that have frequent vendor adjustments or the opposite of above should be set to a Fence Type of Global.

   - When generating schedules, Global Lead Time is set to 365D, resulting in constraining the whole period to actual Purchase Receipt dates.

#### Semi-finished products or secondary constraint items

If setting to:

- Fence Type of Global: Adjusting the Global Lead Time under the Schedule Duration results in ignoring actual orders after that period. However, this does provide the ease of a quick adjustment and analysis.
- Fence Type of Item: Populate the individual Items Lead Time Calculation field with a value greater than 365 (e.g. 555 days). This does not affect Business Central planning suggestions, and regardless of Global Lead Time adjustments, these items are always constrained to current orders/supply. However, any adjustment or different scenarios may require individual Item Lead Time changes.

#### Planning and scheduling best practice

Before running MxAPS to generate a schedule, calculate your replenishment plan using Planning Worksheet / Calculate Regenerative Plan (MPS/MRP) in Business Central, or generate a plan using Enhanced Planning Worksheet. Once the planning engine has created the required supply orders, run MxAPS to produce a capacity-constrained production schedule that respects the planned material availability.

For more information, see Microsoft’s [_Run Full Planning, MPS, or MRP_](https://learn.microsoft.com/en-ca/dynamics365/business-central/production-how-to-run-mps-and-mrp) page.

#### Item (material, constraint, component) availability

MxAPS considers material availability when an item is configured as a scheduling constraint.

Material availability includes:

1. Current inventory.
2. Expected Purchase receipts.
3. Output from other Production Orders included in the schedule run.

If related production orders share material or produce components for each other, schedule them together so MxAPS can consider the full material picture.

If an operation cannot begin because required material is unavailable, MxAPS delays the operation until sufficient inventory becomes available. These delays appear as:

- Gaps before an operation begins
- Delayed operation start times
- Idle periods on resources waiting for material
