---
title: "Understanding AQL and Inspection Levels in Quality Inspector"
app: "Quality Inspector"
section: "Set up"
last_updated: "2026-10-13"
url: "https://insight-works.com/kb/quality-inspector/understanding-aql-and-inspection-levels-in-quality-inspector/"
---

# Understanding AQL and Inspection Levels in Quality Inspector

AQL sampling helps you assess a batch by inspecting a representative sample instead of every unit. Quality Inspector uses configurable tables to determine how many samples to inspect and how many failed samples trigger rejection.

You may already be using AQL without realizing it. If you always produce batches of 1,000 units or receive consistent lot sizes, an AQL plan can repeatedly produce the same sample quantity, making it appear to be a fixed quantity or percentage. During implementation, confirm how that sample size was established and configure the Quality Inspection Template accordingly. If it comes from an AQL plan, use **AQL Configuration** so sampling can reflect changes in lot size, inspection level, or AQL requirements, including any changes required by your quality procedure when production or receiving lots repeatedly fail inspection.

## Key terms

| Term | Meaning in Quality Inspector |
| --- | --- |
| **Lot size** | The quantity represented by the inspection. AQL sizing uses the test’s **Quantity (Base)**, rounded up to a whole unit for the lot-size lookup. This is a quantity, not the Business Central lot number. |
| **Inspection level** | The sample-coverage setting, selected by name: **General Level I**, **General Level II**, **General Level III**, or **Special Level S1–S4**. For example, **General Level II** is an inspection level. Use this setting with the lot size to select a sampling code. Pair it with a separate numeric **AQL**, such as **2.5**, to select the plan. |
| **Sampling Plan Code** | A letter such as J or L that connects the lot-size configuration to a sampling plan. The letter is a lookup code, not a grade. |
| **Sample Size** | The number of units to sample, rather than the total quantity in the lot. |
| **AQL** | **Acceptance Quality Limit**, also called **Acceptance Quality Level** in some industries, and labelled **Acceptable Quality Limit** on the sampling-plan page. This is the numeric quality setting: examples include **0.65**, **1.0**, **1.5**, **2.5**, and **4.0**. For example, **2.5** is an AQL value; **General Level II** is the separate inspection-level setting. |
| **Acceptance Point (Ac)** | The maximum failed-sample count permitted by the plan. For example, **Ac = 3** allows **0, 1, 2, or 3** failed samples within the completed sample to meet the acceptance limit. **Ac = 0** requires every sample to conform. |
| **Rejection Point (Re)** | The failed-sample count at which rejection is triggered. For example, **Re = 4** triggers the configured Reject Grade as soon as the **fourth** failed sample is recorded, even if other samples remain. **Re = 1** triggers rejection on the first failed sample. |
| **Reject Grade** | The Quality Inspection Grade applied when the AQL failure threshold is reached. Select a grade representing failure.  The grade is configurable for different permutations to allow for complex scenarios such as different failing grades for different sizes of batches, which can help dictate or influence different dispositions. **Important**: If you do not define a Reject Grade, then the Rejection Point being reached will not fail the Quality Inspection Test Line and consequently not immediately fail the Quality Inspection Test. If you want a Quality Inspection Test Line (and correspondingly the Quality Inspection Test) to fail immediately as soon as the Rejection Point (Re) has been reached when recording samples then you must define the Reject Grade. |
| **AQL Grouping Code** | Keeps separate sets of sampling configurations, for example for different customer requirements. Leave it blank when using one set. The default/example configuration from the Quality Inspector Setup will leave this blank, and the fields for AQL grouping code are typically hidden by default since most companies most of the time use one standard. However, this capability exists if you do encounter a situation where there are multiple different standards within the same Business Central company, for example if a customer typically follows an ISO standard for most of their production or receiving, but perhaps there is smaller subset of items, or special vendors, or special customers where it might require a ‘Zero defects’ policy that differs from their normal sampling policy, then it is possible to support both standards simultaneously (it will require different Quality Inspection Templates, so that each template can configure the different AQL Grouping code). |

AQL expresses the process quality used as the reference for an acceptance-sampling plan. For sampling based on nonconforming units, **AQL 2.5** represents a reference process quality of **2.5 nonconforming units per 100 units** over a continuing series of lots. The sampling plan translates that quality setting into a sample size and whole-number acceptance and rejection limits for each inspection.

For example, with the supplied configuration, **500 units**, **General Level II**, and **AQL 2.5** mean **inspect 50 units, with Ac = 3 and Re = 4**. At the same lot size and inspection level, **AQL 1.0** uses **50 units, with Ac = 1 and Re = 2**. The lower AQL permits fewer failed samples in this example.

When a customer says “we use AQL 2.5,” enter **2.5** as the AQL and establish the separate **Inspection Level**, such as **General Level II**. Together, these settings define the plan.

Quality Inspector counts failed samples **for each inspection line** using that line’s sample grades. It does not simply total every defect across all measurements.

## General and special inspection levels

| Level | Purpose and tradeoff |
| --- | --- |
| **General Level I** | Smaller samples than Level II for many lot sizes. Reduces inspection effort, with less information about the lot. |
| **General Level II** | The commonly used general inspection level and the level supplied in Quality Inspector’s example sampling-plan data. |
| **General Level III** | Larger samples than Level II for many lot sizes. Provides broader coverage and requires more inspection effort. |
| **Special Levels S1–S4** | Smaller samples, often used for destructive, expensive, or time-consuming checks where limited sampling is appropriate. Sample coverage generally increases from S1 to S4. |

**If the inspection level is uncertain:** General Level II is the usual starting point. If your customer only quotes an AQL number, such as 2.5, they are probably assuming General Level II. Use **General Level II** for demonstrations or as the starting assumption when the customer does not know their level, and confirm it against their inspection requirements before putting the process into use.

Choose the level and AQL required by your agreed inspection procedure. Inspection level and AQL are separate choices: the level affects sample coverage; the AQL selects acceptance and rejection limits. General Level I/II/III should also not be confused with normal, tightened, or reduced inspection regimes.

## Where the lot quantity comes from

The test’s **Quantity (Base)** is populated through **Source Configuration**, which maps fields from Business Central records to the Quality Inspection Test when the Quality Inspection Test document is being created. Depending on the source and applicable mappings, the quantity can come from fields such as:

- A purchase line’s **Qty. to Receive (Base)**.
- An item-tracking record’s **Quantity (Base)** or **Qty. to Handle (Base)**.
- An item journal line’s **Quantity (Base)** or a production order line’s **Quantity (Base)**.

Source Configuration can also retrieve information from related records, so the quantity can come from a different record than the one that initially triggered the inspection. For example, [this warehouse receiving configuration](/kb/quality-inspector/advanced-configuration-create-one-quality-inspection-test-for-each-posted-warehouse-receipt-of-a-tracked-item-instead-of-per-item-tracking/) uses the quantity for an individual posted warehouse receipt rather than an individual tracking quantity.

**Check that Quantity (Base) represents the batch you intend to inspect.** AQL uses the quantity on the test, so a partial receipt or a different source mapping can select a different sampling code and sample size. See [Understanding Test Generation Rules and Source Configuration](/kb/quality-inspector/understanding-test-generation-rules-and-source-configuration-in-quality-inspector/) for how these mappings work.

## Lot size and sampling codes

Open **Quality Inspector Setup,**then click the **Sample Size Configurations**action**.**

The **Quality Inspector Sample Size Configurations** page stores the lot-size ranges and inspection levels that select a **Sampling Plan Code**. Minimum and maximum lot sizes are inclusive.

The supplied example configurations are:

| Minimum Lot Size | Maximum Lot Size | General Level I | General Level II | General Level III | Special Level S1 | Special Level S2 | Special Level S3 | Special Level S4 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 2 | 8 | A | A | B | A | A | A | A |
| 9 | 15 | A | B | C | A | A | A | A |
| 16 | 25 | B | C | D | A | A | B | B |
| 26 | 50 | C | D | E | A | B | B | C |
| 51 | 90 | C | E | F | B | B | C | C |
| 91 | 150 | D | F | G | B | B | C | D |
| 151 | 280 | E | G | H | B | C | D | E |
| 281 | 500 | F | H | J | B | C | D | E |
| 501 | 1,200 | G | J | K | C | C | E | F |
| 1,201 | 3,200 | H | K | L | C | D | E | G |
| 3,201 | 10,000 | J | L | M | C | D | F | G |
| 10,001 | 35,000 | K | M | N | C | D | F | H |
| 35,001 | 150,000 | L | N | P | D | E | G | J |
| 150,001 | 500,000 | M | P | Q | D | E | G | J |
| 500,001 | 999,999,999 | N | Q | R | D | E | H | K |

For example, **500 units at General Level II** select code **H**. **5,000 units at General Level II** select code **L**.

These records are editable. Your company’s configured values take precedence over this reference table.  Your reseller might also include different scenarios in their typical setup.

## Sampling plans and acceptance limits

Open **Quality Inspector Setup → AQL Sample Plan Configurations**.

On the **Quality Inspector AQL Sampling Plan** page, each row specifies:

- **AQL Grouping Code**, **Code**, **Inspection Level**, and **Acceptable Quality Limit** to identify the plan.
- **Sample Size**, **Acceptance Point**, and **Rejection Point** to define the sampling requirements.
- **Reject Grade** to define the grade applied when the failure threshold is reached.

Quality Inspector matches the grouping code, sampling code, inspection level, and AQL to the plan.

The following is an example extract of the supplied plans at **General Level II, AQL 2.5**, with a blank grouping code to give an example of how the mapping applies:

| Code | Sample size | Acceptance Point | Rejection Point |
| --- | --- | --- | --- |
| A | 2 | 0 | 1 |
| B | 3 | 0 | 1 |
| C | 5 | 0 | 1 |
| D | 8 | 0 | 1 |
| E | 13 | 0 | 1 |
| F | 20 | 1 | 2 |
| G | 32 | 2 | 3 |
| H | 50 | 3 | 4 |
| J | 80 | 5 | 6 |
| K | 125 | 7 | 8 |
| L | 200 | 10 | 11 |
| M | 315 | 14 | 15 |
| N | 500 | 21 | 22 |
| P | 800 | 21 | 22 |
| Q | 1,250 | 21 | 22 |
| R | 2,000 | 21 | 22 |

**The supplied example sampling-plan data contains General Level II rows only.** The table “Lot size and sampling codes”  includes all seven inspection levels, but using another level also requires matching sampling-plan rows for that level. Selecting General Level I, III, or S1–S4 does not automatically reuse Level II plans.

**The supplied plan rows leave Reject Grade blank.** Set it to a failure grade, such as **FAIL** when using the default grades, for AQL failures to apply that grade.

Both configuration pages provide **Import AQL Sample Data** to apply the supplied example configurations. Review the resulting plans against your required sampling procedure. External AQL charts can use different sample sizes or limits; Quality Inspector uses the values configured in these pages.

### Reading an AQL sampling plan table

An AQL sampling plan can be displayed as a reference table with **Sampling Plan Code** and **Sample Size** down the left, and **Acceptable Quality Limit** values across the top. Each AQL value has two columns: **Acceptance Point (Ac)** and **Rejection Point (Re)**. This layout makes it easier to compare the limits for different AQL values at the same sample size. Quality Inspector’s supplied example plans use **General Level II**, a blank **AQL Grouping Code**, and AQL values from **0.065 to 15**.

First, use the lot-size configuration to determine the **Sampling Plan Code** for your quantity and inspection level. Then find that code in the sampling-plan table and read across to the required AQL. For example, a lot of **400 units** at **General Level II** selects code **H**. At **AQL 2.5**, the supplied plan requires **50 samples**, with **Ac = 3** and **Re = 4**. Up to three failed samples within the completed sample meet the acceptance limit; the fourth failed sample triggers the configured **Reject Grade**.

Reading across the same row shows how the AQL changes the acceptance requirements. For code **H**, **AQL 1.0** has **Ac = 1 / Re = 2**, **AQL 2.5** has **Ac = 3 / Re = 4**, and **AQL 4.0** has **Ac = 5 / Re = 6**. The supplied sample size remains **50** for these plans, while the permitted failed-sample count increases.

To view or configure these values, open **Quality Inspector Setup → AQL Sample Plan Configurations**. Quality Inspector stores each combination of **AQL Grouping Code**, **Code**, **Inspection Level**, and **Acceptable Quality Limit** as a separate row, with its own **Sample Size**, **Acceptance Point**, **Rejection Point**, and **Reject Grade**. It uses those configured values directly. If you want failures that reach the rejection point to immediately fail, then you must set **Reject Grade** to a failure grade, such as **FAIL**, so reaching the failure threshold applies that grade.

**Quality Inspector Example AQL Sampling Plans — General Level II** AQL Grouping Code: blank. Ac = Acceptance Point; Re = Rejection Point.

| Sampling Plan Code | Sample Size | AQL 0.065 | AQL 0.1 | AQL 0.15 | AQL 0.25 | AQL 0.4 | AQL 0.65 | AQL 1.0 | AQL 1.5 | AQL 2.5 | AQL 4.0 | AQL 6.5 | AQL 10 | AQL 15 |  |  |  |  |  |  |  |  |  |  |  |  |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Ac | Re | Ac | Re | Ac | Re | Ac | Re | Ac | Re | Ac | Re | Ac | Re | Ac | Re | Ac | Re | Ac | Re | Ac | Re | Ac | Re | Ac | Re |  |  |
| A | 2 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 |
| B | 3 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 |
| C | 5 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 |
| D | 8 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 |
| E | 13 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 |
| F | 20 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 |
| G | 32 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 |
| H | 50 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 14 | 15 |
| J | 80 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 14 | 15 | 21 | 22 |
| K | 125 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 14 | 15 | 21 | 22 | 21 | 22 |
| L | 200 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 14 | 15 | 21 | 22 | 21 | 22 | 21 | 22 |
| M | 315 | 0 | 1 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 14 | 15 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 |
| N | 500 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 14 | 15 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 |
| P | 800 | 1 | 2 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 14 | 15 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 |
| Q | 1,250 | 2 | 3 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 14 | 15 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 |
| R | 2,000 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 14 | 15 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 | 21 | 22 |

## Example Inspecting a lot of 500 units

Assume the template uses **AQL Configuration**, a blank grouping code, **General Level II**, and **AQL 2.5**, with sampling enabled for the inspection field.

1. The test’s **Quantity (Base)** is **500**.
2. The table “Lot size and sampling codes” selects **H** from the **281–500** range.
3. The table “Sampling plans and acceptance limits” then selects a sample size of **50**, an Acceptance Point of **3**, and a Rejection Point of **4**.
4. Record measurements from a representative sample of the lot.

For an inspection line, **three or fewer failed samples within the completed sample** meet the plan’s acceptance limit. **Four failed samples** trigger the configured Reject Grade, even if samples remain unrecorded.

Meeting the acceptance limit does not independently assign a passing grade. The line’s **Sample Summary** and grade conditions still determine its result, and other inspection lines can affect the overall test grade.

## Applying AQL to a template

On the **Quality Inspection Template**, set **Sample Source** to **AQL Configuration** and specify **Default Inspection Level**, **Default AQL**, and, when needed, **Default AQL Grouping Code**.

Company defaults are available on **Quality Inspector Setup**; templates can specify their own defaults that override the company defaults. Configure the inspection fields for sampling and define their sample grading and summary behaviour.

To maintain separate customer or process plans, show **AQL Grouping Code** through personalization on both configuration pages. Use the same grouping code in the lot-size configurations, sampling plans, and applicable template.

Before using a plan, confirm that the lot-size ranges cover your quantities and that matching plan rows have the required limits and a failure **Reject Grade**.

## Related articles

- [Quality Inspector Setup](/kb/quality-inspector/iwxqisetup-page-al/)
- [Use the Sample Source feature on the Quality Inspector Template](/kb/quality-inspector/use-the-sample-source-feature-on-the-quality-inspector-template/)
- [Understanding Test Generation Rules and Source Configuration in Quality Inspector](/kb/quality-inspector/understanding-test-generation-rules-and-source-configuration-in-quality-inspector/)
- [Quality Inspection Sample Worksheet](/kb/quality-inspector/iwxqisampleeditor-page-al/)
- [Implementing ANSI Z1.4 C=0 Sampling with Quality Inspector](/kb/quality-inspector/implementing-ansi-z1-4-c0-sampling-with-quality-inspector/)
