---
title: "Preventing Lower-Ranked Orders from Filling Schedule Gaps"
app: "MxAPS"
section: "How-to guides"
last_updated: "2026-09-24"
url: "https://insight-works.com/kb/mxaps/preventing-lower-ranked-orders-from-filling-schedule-gaps/"
---

# Preventing Lower-Ranked Orders from Filling Schedule Gaps

MxAPS allows lower-ranked operations to fill idle time before a higher-ranked operation by default. To prevent lower-ranked operations from filling these gaps, configure MxAPS on how the Hole Algorithm is activated and used.

### How hole scheduling works

Hole scheduling depends on three areas:

1. The scheduling rule must define a _Hole On_ parameter.
2. The work center or machine center must define allowed hole durations.
3. The routing operation must allow or disallow hole behavior.

You must configure all three areas to adjust when these lower-ranked operations are scheduled; otherwise, the areas continue to be scheduled for the first time available.

### Step 1: Configure the scheduling rule

1. Search for “MxAPS Scheduling Rules” in Business Central.
2. Open the scheduling rule used by the production cell.
3. Set_ Hole On Parameter Code_.

_Hole On Parameter Code_defines the scheduling rule parameter for a point of indifference for the hole algorithm. Meaning at which point in the scheduling rule list of parameters should this algorithm consider orders equal. For example, use the parameter that determines whether a lower-ranked operation is allowed to schedule before a higher-ranked operation.

### Step 2: Configure Hole values on the Work Center and/or Machine Center

Configure the hole durations on the capacity that is being scheduled.

For either a Work Center or a Machine Center

1. Search for _Work Centers_ or _Machine Centers_in Business Central.
2. Open the relevant card.
3. Set the following in the _MxAPS_ FastTab:

   - Hole Total Duration: Specifies the idle time that must remain prior to a scheduled operation for a lower priority operation to be placed ahead of it on the selected machine. This includes holidays or weekends.
   - Hole Idle Duration: Specifies the idle time that must remain prior to a scheduled operation for a lower priority operation to be placed ahead of it on the selected machine. This does not include holidays or weekends.

 Note: Use higher values to make hole filling more restrictive. This value in hours by default which you can adjust on the _MxAPS Setup_ page. Blank values deactivate any adjustment to the default behavior.

### Step 3: Configure the operation

Configure _Allow Holes _on the operation.

1. Locate the corresponding operation(s) on either _Routing_ or the _Production Order Routing_ and set the _Allow Holes_value:

   - Allowed: The operation may schedule into available idle time before a higher-ranked operation, subject to the hole rule and work/machine center hole values.
   - Disallowed: The operation must obey the hole restriction and should not use the hole compromise.

#### Example

Order ONE: Priority, 5; Due Date, 03/15/1999

Order TWO: Priority, 5; Due Date, 03/30/1999

##### Scenario A

HoleCutoff = PRIORITY: This indicates the algorithm only considers the Class parameter in determining priorities. As a result, the two orders are again considered as having equal priority. The default behavior of MxAPS is not affected.

##### Scenario B

HoleCutoff = DUEDATE: This indicates that the algorithm considers both Priority and DueDate in determining priorities. Order TWO is considered of lower priority and is only placed prior to Order ONE if conditions and the various Hole Algorithm settings allow.
