On demand · Product video
Block the sale of a lot until it passes inspection in Quality Inspector
For quality and warehouse teams that want a lot under inspection kept out of sales while it can still be picked, moved, or used internally.

Summary
Quality Inspector can block a lot for specific transactions, such as sales, instead of blocking the whole lot. The video sets up quality inspection grades so an in-progress or failed test blocks sales, while a finished test allows them. It receives a lot-tracked item, which creates a test, then shows that the lot can still be picked but the warehouse shipment is blocked while the test is open, even after the values pass. Once the test is finished, the shipment posts.
Key topics
- Set which transactions each grade allows
- Keep a lot under inspection out of sales
- Allow picks and movements while a test is open
- Finish a test to release the lot for sale
Read the transcript
In a previous video, we walked through one approach to blocking lots, preventing a lot from being used on transactions, and that was done with Business Central workflows. In that example, we automatically blocked a lot whenever a test was created, and then automatically unblocked that lot whenever the test was finished with a passing grade. That approach for blocking and unblocking a lot works great, except in scenarios where you want to allow some transactions.
Say you want to prevent some transactions, perhaps sales. Maybe we don’t want to sell something with a quality inspection test that hasn’t passed, but we can reuse that lot internally. Maybe we can consume it, move it around, transfer it to another location, or even reclassify it. In this example we’re going to work through a different way of restricting the use of a lot when a test hasn’t passed, using grades. We navigate to Quality Inspection Grades.
In our example, we’ll receive a lot, have a test created for it automatically, and prevent it from being sold until the test is finished. So we block the sale of anything in progress, block anything that has failed, and allow selling this lot only when the quality inspection test exists and is finished. Alternatively, you could allow either open or finished tests. For sales you probably want finished only, but for internal warehouse movements you may just want to allow it. If you want to disable this feature, set it to allow for all of these checkbox combinations. In our case, we allow the lot to be used for anything except selling it.
The setup is the same as the previous video on blocking a lot entirely. We still create a test automatically when the warehouse receipt is posted, done through the Quality Inspector setup with receiving automation set to create a test. We have a quality inspection template for receiving that asks a few questions, and a test generation rule that creates this test under any circumstance, so regardless of which item we’re receiving or which vendor, we always create this one test.
Now let’s walk through a use case. We’re receiving a lot-tracked item from Progressive Home Furnishings with a vendor invoice number. We’ll use the ethernet cable because it’s lot tracked, in the Green location, and receive 10 of them. We release it and create our warehouse receipt. Now the warehouse team has this document. When the truck comes in, they’d scan the lot number with Warehouse Insight or WMS Express, ideally setting the tracking through the scan gun. We’ll type in the lot number here, 10 of them, and close.
At this point there’s still no quality inspection test, because we haven’t posted it, and that’s expected. Now we post the receipt, and this creates the quality inspection test for that lot number. While this test is not yet finished in the pass state, we should be able to move that lot around but not sell it. Let’s see that in action. We receive and invoice, and the item is fully received into our system.
Now we’ll try to sell it. We still have a quality inspection test open that hasn’t been filled in by a quality inspector. A salesperson comes into the system and innocently tries to sell the lot. We choose the same lot, from the Green location, choose 10, and set the item tracking. If you’re using Order Ship Express, you could definitely use that here. There’s our lot. We release it and create a warehouse shipment.
We need to pick it first, so we create a pick, and all of these other transactions are still allowed, so picks are still allowed. You could block picks as well, but right now we’ve configured it to prevent only sales. It looks like we can only pick eight, so we register that pick. We have eight we’re trying to ship, so we post the shipment, and we see that it’s blocked, because this lot number has an open test.
Let’s finish that test. We navigate to Quality Inspection Tests and find the most recent test. We fill in the values: no marks, pass, any value here, and “hello.” At this point it’s passed, but nobody has signed off on it yet, so the status is still open. If we try to ship and invoice it, it’s still blocked. Now we finish the test and say Yes, and now that the test is finished, we’re allowed to use it for this sales transaction. We ship and invoice it, and it goes through.
So that’s another way of blocking lots from certain transactions, through grades. This does require a minimum of Business Central 18. It’s not quite the same as blocking the lot entirely, and it has pros and cons depending on the use case. But if you want to block a lot for specific transactions and not others, you can do that with quality inspection grades.
Questions about this webcast?
Send your question and the Insight Works team will reply by email. Ready to plan a project? Contact your Microsoft Partner.
Ask a question
More recordings
Webinar recording · 38 minBusiness Central quality is a starting point: Here’s how partners take it furtherQuality InspectorRecorded May 2026
Webinar recording · 60 minTransform your quality assurance process with Dynamics 365 Business CentralQuality InspectorRecorded February 2026
Product video · 6 minCollect quality test values in Microsoft Teams with adaptive cards in Quality InspectorQuality InspectorRecorded December 2025