Dynamics 365 Business Central: How to restrict certain tables from importing data through Configuration Package
Configuration Packages can import data into Business Central, but posted tables, entry tables, and system tables are blocked by default. To restrict additional tables from being imported, you can use customization with the OnAfterIsSystemTable event in a codeunit to mark unwanted tables as system tables and prevent users from importing them.

post Dynamics 365 Lab
"For posted tables and entry tables, we cannot insert, modify, or delete them through the Configuration Package."
Key points
- Posted and entry tables like G/L Entry cannot be inserted, modified, or deleted through Configuration Package
- System tables cannot be imported or exported through Configuration Package
- Security Filters alone cannot prevent access to system tables with InherentPermissions Property set
- The OnAfterIsSystemTable event allows custom marking of tables as system tables to block import access
- You can create a configuration table to manage prohibited tables or add user-level controls for granular restriction
Quotes
- “For posted tables and entry tables, we cannot insert, modify, or delete them through the Configuration Package.” (Explains the built-in restriction that protects transactional data from accidental modification during import)
- “So we can only do it through customization, there are many ways. I will mainly introduce one that uses a standard event, OnAfterIsSystemTable.” (Identifies the recommended approach for extending table restrictions beyond built-in limitations)
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.
- table 17 “G/L Entry”
- table 3 “Payment Terms”
- codeunit 8616 “Config. Management”
- codeunit “ConfigPackageHandler”
Not found in BC28-30: codeunit “ConfigPackageHandler”.
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- BC 29 lets a single index span base table and table extension fields — possibly related: both name Table 17 “G/L Entry”
- Dynamics 365 Business Central: Displaying Sales/Purchase Order No. in Item Ledger Entries (Source Order No. and Source Description) — possibly related: both name Table 17 “G/L Entry”
- Dynamics 365 Business Central: How to quickly check whether the table is a system table in AL — possibly related: both name Codeunit 8616 “Config. Management”
- Dynamics 365 Business Central: Quickly get next Sequence/Entry Number (without using FindLast -> Entry No. + 1) — possibly related: both name Table 17 “G/L Entry”
- Dynamics 365 Business Central: Regarding the issue where the Source Currency Amount in G/L Entry differs from the pre-posting Amount in BC27 — possibly related: both name Table 17 “G/L Entry”
- Introducing Spreadsheets for Business Central — possibly related: both name Table 3 “Payment Terms”
- Set Due Date Limits for Payments in Spain — possibly related: names Table 3 “Payment Terms”
- Set up payment terms — possibly related: names Table 3 “Payment Terms”
- What’s New: Dataverse & Dynamics 365 App Integration (2023 release wave 2) Part 1 — possibly related: both name Table 3 “Payment Terms”
Heads up
- warning: “if the user does not have some experience using Configuration Package, the existing data may be accidentally overwritten or deleted”
Context
- Features: Configuration Packages, data import/export, table security, event subscribers, permission control, RapidStart
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.