community postInventorycommunity - not Microsoftreviewed - checked by Opus

BC Friday Tips #69 Item Blocked Fields

The Item table in Business Central has multiple blocked fields (Blocked, Sales Blocked, Purchasing Blocked, Service Blocked) that control item restrictions. Checking only the main Blocked field can miss module-specific restrictions and cause logic errors.

post That NAV Guy

Teddy Herryanto · 2026-04-10 · 109 words · about 1 min

"If your code only checks the Blocked field, your logic can break."

Key points

  • Item table contains multiple separate blocked fields for different modules
  • Checking only the generic Blocked field can allow restricted actions like sales on sales-blocked items
  • Item Variant and other tables also have multiple blocked fields
  • Developers should validate against all relevant blocked fields based on context
  • Ignoring module-specific fields creates bugs that only appear in certain scenarios

Quotes

  • “If your code only checks the Blocked field, your logic can break.” (Highlights the critical risk of incomplete validation that leads to unintended behavior)
  • “You may allow actions that should be restricted, such as sales on items that are blocked for sales.” (Demonstrates the specific consequence of ignoring module-specific blocked fields)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

Context

  • Features: Item blocking, Sales blocking, Purchasing blocking, Service blocking

Source: That NAV Guy, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.