---
title: "Automate Block and Unblock Lot Transactions in Quality Inspector"
app: "Quality Inspector"
section: "How-to guides"
last_updated: "2026-10-19"
url: "https://insight-works.com/kb/quality-inspector/automate-block-and-unblock-lot-transactions-in-quality-inspector/"
---

# Automate Block and Unblock Lot Transactions in Quality Inspector

Quality Inspector supports blocking and unblocking a lot directly as a workflow response, and also by blocking and unblocking a lot automatically without workflows for very specific transactions depending on the grade.  License Plate quarantining can also be used as a means to block or unblock lots.

The workflow examples below also apply to serial numbers and package numbers. Select the corresponding **Block Serial in the Test** or **Block Package in the Test** response, and its matching unblock response, to control the **Blocked** field on the associated **Serial No. Information**, **Lot No. Information**, or **Package No. Information** record in Business Central. The Quality Inspection Test must identify the tracking number being controlled. This allows individual serialized units, lots, or complete packages to remain on quality hold while inspection is in progress and be released automatically when the inspection passes.

Using_Quality Inspection Grades_ in Quality Inspector allows you to block and unblock a lot for specific transactions. The example below guides you through restricting the use of a lot when the test has not passed. We will use _Quality Inspection Grades_ and go through receiving a lot, have a test created for the lot automatically, and prevent the lot from being sold until it is finished.

 Note: You require a minimum of Business Central 18 to complete the following. Although the settings below use “Lot” in their names, the same grade-based restrictions apply to serial-tracked and package-tracked inventory. Quality Inspector evaluates the applicable inspection using the lot, serial, or package number associated with the transaction. You can therefore restrict selected activities, such as picking, shipping, or consumption, for individual serialized units, lots, or complete packages while inspection is in progress or after a failure. To instead set the Blocked field on the corresponding Lot No. Information, Serial No. Information, or Package No. Information record, use the workflow responses described in [Block and Unblock Lot Transactions in Quality Inspector](/kb/quality-inspector/block-and-unblock-lot-transactions-in-quality-inspector/).

### Create an automatic test

1. Navigate to _Quality Inspection Grades_ in Business Central.
2. Set the _Lot Allow Sales_ fields to:

   - INPROGRESS: Block
   - FAIL: Block
   - PASS: Allow Finished Only

 Note: If you set the remaining fields to **Allow**, you disable this feature and allow the lot to be used for anything except selling.

1. Navigate to _Quality Inspector Setup_.
2. Locate the _Receiving_section and set _Create Test_ under _Automation_ to **When Receipt is Posted**.
3. Select the ![](/wp-content/uploads/kb-legacy/Back-Arrow.png) icon.
4. Navigate to _Quality Inspection Templates_.
5. Select RECEPTEXAMPLE’s ![](/wp-content/uploads/kb-legacy/Kebab-Icon.png) icon and select **Edit**.
6. Create lines with information such as the example below:

| Field Code | Description | Allowable values | Pass | Pass Desc. |
| --- | --- | --- | --- | --- |
| VISUALSTATE | Visual State | HEAVY MARKS,NO MARKS,SOME MARKS | NO MARKS | NO MARKS |
| WEGHT | Weight | 1..1000 | 20..60 | 20 to 60 |
| DATETEST | Date test | — | >1/1 | Not blank |
| SIMPLETEXT | Simple text | — | <>” | <>” |

1. Select **Test Generation Rules** and input the following:

   - Description: Simple Receipt Example (or required description)
   - Table: Purchase Line
   - Condition Filter: [blank] (generates test under any circumstances)
2. Navigate back to your Business Central main screen.

 Note: _Quality Inspection Grades_ allows you to block a lot for specific transactions but not for others.

### Receive the lot

The following uses the test information you created in _Create an automatic test_ above. In this example, we are going to receive a lot tracked item.

1. Navigate to _Purchase Orders_ in Business Central.
2. Select **+New** and input the following:

   - Vendor Name: Progressive Home Furnishings
   - Vendor Invoice No.: VENDORINVOICE123
   - : 80216-T
   - Location Code: GREEN
   - Quantity: 10
3. Select **Release** and select **Create Whse. Receipt** (warehouse receipt generates and opens).
4. Select **OK**.

 Note: At this point, the warehouse employee has this document and can scan the item in when the item arrives.

1. Select **Line** and select **Item Tracking Lines**.
2. Input the following:

   - Lot No.: L2304201237PM
   - Quantity (Base): 10
   - Quantity to Handle (Base): 10
3. Select **Close**.
4. Select **Post Receipt** and select **Yes** (receipt generates).
5. Select **OK**.

This creates a quality inspection for that lot number (L2304201237PM) with a test state of “In Progress”. You can now move the lot around, but you cannot sell it.

### Test selling the lot

1. Navigate to _Sales Order_ in Business Central.
2. Select **+New**.
3. Input the following:

   - Customer Name: Spotsmeyer’s Furnishings
   - : 80216-T
   - Location Code: GREEN
   - Quantity: 10
4. Select **Line** / **Related Information** / **Item Tracking Lines**.
5. Input “L2304201237PM” as the _Lot No._
6. Select **Close**.
7. Select **Create Pick** / **OK** / **OK**.
8. Select **Release** / **Create Whse. Receipt** / **OK**.
9. Navigate to _Warehouse Picks_.
10. Select the icon and select **Edit**.
11. Select **Register Pick** / **Yes** (only 8 out of 10 items are available for picking).
12. Navigate back to _Warehouse Shipment._
13. Select **Post Shipment** / **Ship and Invoice**/ **OK**.

You receive an error message stating that the transaction is blocked due to the lot number (L2304201237PM) having an open test.

### Complete the test

Before beginning, ensure you have completed _Create an automatic test_ above.

1. Navigate to _Quality Inspection Tests_ in Business Central.
2. Select the for the test you created in _Create an automatic test_.
3. Input a passing _Test Value_ for each line in the _Lines_ section.
4. Select **Finish** / **Yes**.
5. Navigate to _Warehouse Shipment_.
6. Select **Post Shipment** / **Ship and Invoice**/ **OK** / **OK**.

### Automate Block and Unblock Lot Transactions in Quality Inspector Video

[Video: Business Central and Quality Inspector App Mastering Automated Lot Blocking and Unblocking](https://www.youtube.com/watch?v=Ui6uK7ZIfp8)

Available lot blocking features:

| Setting | Description |
| --- | --- |
| **Lot Allow Sales** | Specifies whether a test for a lot/serial/package with this grade allows sales transactions. |
| **Lot Allow Sales Return** | Specifies whether a test for a lot/serial/package with this grade allows sales return transactions. |
| **Lot Allow Sales Credit Memo** | Specifies whether a test for a lot/serial/package with this grade allows sales credit memo transactions. |
| **Lot Allow Sales Release** | Specifies whether a test for a lot/serial/package with this grade allows the sales order to be released. |
| **Allow Out. Sales Item Tracking** | Specifies whether a test for a lot/serial/package with this grade allows selecting the tracking number in the Item Tracking Lines page for a sales line. If not allowed, the system will ask the user to confirm that they want to select the tracking number. |
| **Lot Allow Purchase** | Specifies whether a test for a lot/serial/package with this grade allows Purchase transactions. |
| **Lot Allow Transfer** | Specifies whether a test for a lot/serial/package with this grade allows Transfer transactions. |
| **Allow Out. Tran. Item Tracking** | Specifies whether a test for a lot/serial/package with this grade allows selecting the tracking number in the Item Tracking Lines page for a transfer line. If not allowed, the system will ask the user to confirm that they want to select the tracking number. |
| **Lot Allow Consumption** | Specifies whether a test for a lot/serial/package with this grade allows Consumption transactions. |
| **Lot Allow Output** | Specifies whether a test for a lot/serial/package with this grade allows Output transactions. |
| **Lot Allow Assembly Consumption** | Specifies whether a test for a lot/serial/package with this grade allows Assembly Consumption transactions. |
| **Lot Allow Assembly Output** | Specifies whether a test for a lot/serial/package with this grade allows Assembly Output transactions. |
| **Lot Allow Invt. Movement** | Specifies whether a test for a lot/serial/package with this grade allows Inventory Movement transactions. |
| **Lot Allow Invt. Pick** | Specifies whether a test for a lot/serial/package with this grade allows Inventory Pick transactions. |
| **Lot Allow Invt. Put-Away** | Specifies whether a test for a lot/serial/package with this grade allows Inventory Put-Away transactions. |
| **Lot Allow Movement** | Specifies whether a test for a lot/serial/package with this grade allows Warehouse Movement transactions. |
| **Lot Allow Pick** | Specifies whether a test for a lot/serial/package with this grade allows Pick transactions. |
| **Lot Allow Put-Away** | Specifies whether a test for a lot/serial/package with this grade allows Put-Away transactions. |
