{"title":"Block or unblock lots","url":"https://jonas-paprotka.de/docs/qms-lot-blocking-unblocking/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/qms-lot-blocking-unblocking, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/qms-lot-blocking-unblocking","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn how to block and unblock inventory lots using workflows and grade-specific controls to ensure quality compliance.","date":"2026-09-16","meta":{"topic":"how-to"},"outline":[{"level":1,"title":"Block or unblock lots","slug":"block-or-unblock-lots","at":0,"chars":5571},{"level":2,"title":"Workflow-based lot blocking","slug":"workflow-based-lot-blocking","at":529,"chars":1917},{"level":3,"title":"Set up a block-on-fail workflow","slug":"set-up-a-block-on-fail-workflow","at":885,"chars":680},{"level":3,"title":"Set up block-on-creation, and unblock on pass workflows","slug":"set-up-block-on-creation-and-unblock-on-pass-workflows","at":1565,"chars":881},{"level":4,"title":"Block on inspection creation","slug":"block-on-inspection-creation","at":1788,"chars":324},{"level":4,"title":"Unblock on pass","slug":"unblock-on-pass","at":2112,"chars":334},{"level":2,"title":"Result-based document blocking","slug":"result-based-document-blocking","at":2446,"chars":2625},{"level":3,"title":"Examples of result configurations","slug":"examples-of-result-configurations","at":3188,"chars":1883},{"level":2,"title":"Related information","slug":"related-information","at":5071,"chars":500}],"text":"# Block or unblock lots\nThis article explains how to automatically block and unblock inventory lots (serial numbers and packages) using workflows and result-specific controls.\nThere are two main approaches for lot blocking:\n Workflow-Based Blocking: Block lots,serial numbers and pacakges using workflows.\n Result-Based Blocking: Document-specific blocking based on quality inspection results.\nBoth approaches help ensure that noncompliant inventory isn't used inappropriately, while allowing flexible quality control processes.\n## Workflow-based lot blocking\nWorkflow-based blocking creates or modifies Lot No. Information Card pages to completely block lots for all transactions (except warehouse operations when configured). You access Lot No. Information Card pages from the Lot No. Information List page.\nSimilar for Serial No. Information Card and Package No. Informatuion Card.\n### Set up a block-on-fail workflow\nThe following procedure describes the key settings for a workflow that blocks lots when quality inspections fail.\n1. Select Search (Alt+Q) in the upper-right corner, enter Workflows, and then choose the related link.\n1. Create a new workflow. For example, name it \"Block Lot Example.\"\n1. Configure a workflow step, as follows:\n 1. In the When Event field, choose A Quality Inspection is finished.\n 1. In the On Condition field, add a filter for the Result Code field, and then set FAIL as the filter value.\n 1. In the Then Response field, choose Block Lot in the Inspection. This setting creates a lot information card with the status Blocked.\n### Set up block-on-creation, and unblock on pass workflows\nThe following procedures describe the key settings for workflows that block lots immediately when inspections are created, and unblock them when inspections pass.\n#### Block on inspection creation\n1. Create a new workflow. For example, name it \"Block Lot on Creation.\"\n1. In the When Event field, choose A Quality Inspection is Created.\n1. In the Then Response field, choose Block lot in the inspection.\n The result is that all lots are blocked immediately when inspections are created.\n#### Unblock on pass\n1. Create a new workflow. For example, name it \"Unblock on Pass.\"\n1. In the When Event field, choose A Quality Inspection is Finished.\n1. In the On Condition field, add a filter for the Result Code field, and then set Pass as the filter value.\n1. In the Then Response field, choose Unblock Lot in the Inspection.\n## Result-based document blocking\nResult-based blocking provides granular, document-specific controls based on the current grade of quality inspection. Unlike complete lot blocking, this approach lets you block specific transaction types while permitting others, based on the inspection result.\nThe following list describes how Business Central evaluates results:\n Multiple inspections for the same lot might have different results. The Quality inspection selection criteria field on the Quality Management Setup page specifies which inspections to consider when evaluating whether to block a document-specific transaction.\n Result priorities determine which controls take precedence. Higher priority results override lower priority results.\n### Examples of result configurations\nAn inspection's result and status are separate. For example, an inspection can have the result FAIL or PASS while its status is still Open. The inspection becomes Finished only when you finish it.\nFor each transaction type, configure one of the following restrictions on the inspection result:\nRestriction|Open inspection|Finished inspection\nBlock|Blocked|Blocked\nAllow finished only|Blocked|Allowed\nAllow|Allowed|Allowed\nAllow finished only is useful when you want to permit an operation only after the inspection is formally completed, regardless of whether it passed or failed. For example, you can prevent the sale of a failed lot but allow it to be transferred to a quarantine location after the failure is confirmed.\nThe following table shows a configuration for this policy:\nResult|Finish Allowed|Sales|Transfer\nINPROGRESS|Do Not Allow Finish|Block|Block\nFAIL|Allow Finish|Block|Allow finished only\nPASS|Allow Finish|Allow|Allow\nWith this configuration, the restrictions change as the inspection progresses:\nCurrent inspection|Sales|Transfer\nOpen, INPROGRESS|Blocked|Blocked\nOpen, FAIL|Blocked|Blocked\nFinished, FAIL|Blocked|Allowed, for example, to move the lot to quarantine\nFinished, PASS|Allowed|Allowed\nOn the Quality Management Setup page, set the Quality inspection selection criteria field to Only the newest inspection/re-inspection if the latest inspection should determine the restrictions. For example, if the original inspection is finished with a PASS result but its latest re-inspection is open with an INPROGRESS result, the open re-inspection is selected and blocks sales and transfers. Finished-only selection criteria ignore the open re-inspection and can therefore apply the older PASS result instead.\nTo learn more about quality inspection results, go to Configure quality inspection results<qms-configuring-grades>.\n## Related information\nCreate an inspection manually from item tracking<qms-purchase-receipt-testing-simple>\nCreate an inspection automatically from a warehouse receipt and reinspect the lot<qms-purchase-receipt-testing-warehouse>\nConfiguring Workflows<qms-quality-workflows>\nProcessing Non-Compliant Items<qms-non-compliant-processing>\nQuality Management Overview<qms-overview>\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}