---
id: post/yzhums-com/64265
type: post
title: "Dynamics 365 Business Central: How to restrict certain tables from importing data through Configuration Package"
summary: 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.
tier: community
language: en
tags:
  - configuration packages
  - data import
  - table restrictions
  - security
  - customization
  - rapidstart
system: administration
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:42:40.812Z"
  flags: []
generated:
  at: "2026-10-28T08:47:18.430Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 929e2f01b7425669a2f13994c3709978d6b3fc4f8d7011acfd895c698e078230
evidence:
  - kind: blog
    url: https://yzhums.com/64265/
    title: "Dynamics 365 Business Central: How to restrict certain tables from importing data through Configuration Package"
    date: "2025-07-18"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://yzhums.com/64265/
    title: "Dynamics 365 Business Central: How to restrict certain tables from importing data through Configuration Package"
    date: "2025-07-18"
    commit: null
    t: null
    quote: For posted tables and entry tables, we cannot insert, modify, or delete them through the Configuration Package.
  - kind: blog
    url: https://yzhums.com/64265/
    title: "Dynamics 365 Business Central: How to restrict certain tables from importing data through Configuration Package"
    date: "2025-07-18"
    commit: null
    t: null
    quote: So we can only do it through customization, there are many ways. I will mainly introduce one that uses a standard event, OnAfterIsSystemTable.
links:
  learn: []
  objects:
    - object/table/17
    - object/table/3
    - object/codeunit/8616
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  related:
    - to: post/mohana-blog/tag-blogger-com-1999-blog-1492436440038408053-post-483274250682537951--01a78739b7
      title: BC 29 lets a single index span base table and table extension fields
      label: possibly related
      why: both name Table 17 "G/L Entry"
      by: code
    - to: post/yzhums-com/75131
      title: "Dynamics 365 Business Central: Displaying Sales/Purchase Order No. in Item Ledger Entries (Source Order No. and Source Description)"
      label: possibly related
      why: both name Table 17 "G/L Entry"
      by: code
    - to: post/yzhums-com/53887
      title: Dynamics 365 Business Central: How to quickly check whether the table is a system table in AL
      label: possibly related
      why: both name Codeunit 8616 "Config. Management"
      by: code
    - to: post/yzhums-com/31884
      title: "Dynamics 365 Business Central: Quickly get next Sequence/Entry Number (without using FindLast -> Entry No. + 1)"
      label: possibly related
      why: both name Table 17 "G/L Entry"
      by: code
    - to: post/yzhums-com/69290
      title: "Dynamics 365 Business Central: Regarding the issue where the Source Currency Amount in G/L Entry differs from the pre-posting Amount in BC27"
      label: possibly related
      why: both name Table 17 "G/L Entry"
      by: code
    - to: video/1QuV_vkbNVU
      title: Introducing Spreadsheets for Business Central
      label: possibly related
      why: both name Table 3 "Payment Terms"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Spain/how-to-set-limits-for-due-dates
      title: Set Due Date Limits for Payments in Spain
      label: possibly related
      why: names Table 3 "Payment Terms"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/finance-payment-terms
      title: Set up payment terms
      label: possibly related
      why: names Table 3 "Payment Terms"
      by: code
    - to: video/fIOnGEARkKs
      title: "What's New: Dataverse & Dynamics 365 App Integration (2023 release wave 2) Part 1"
      label: possibly related
      why: both name Table 3 "Payment Terms"
      by: code
post_id: "64265"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/64265/
published_at: "2025-07-18T01:25:30.000Z"
author: Yun Zhu
full_text: false
words: 454
quotes:
  - text: For posted tables and entry tables, we cannot insert, modify, or delete them through the Configuration Package.
    why_it_matters: Explains the built-in restriction that protects transactional data from accidental modification during import
  - text: So we can only do it through customization, there are many ways. I will mainly introduce one that uses a standard event, OnAfterIsSystemTable.
    why_it_matters: Identifies the recommended approach for extending table restrictions beyond built-in limitations
code_objects_mentioned:
  - table G/L Entry
  - table Payment Terms
  - codeunit Config. Management
  - codeunit ConfigPackageHandler
systems:
  - administration
  - integration
  - development
versions_mentioned: []
cautions:
  - kind: warning
    quote: if the user does not have some experience using Configuration Package, the existing data may be accidentally overwritten or deleted
    objects: []
    events: []
    versions: []
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2025/07/Snipaste_2025-07-18_10-18-18.png
  image_alt: null
  image_w: null
  image_h: null
  site_name: Dynamics 365 Lab
  favicon: https://yzhums.com/wp-content/uploads/2020/08/cropped-logo-3-32x32.png
  probed_at: "2026-10-26T06:17:46.233Z"
---

# Dynamics 365 Business Central: How to restrict certain tables from importing data through Configuration Package

[Read the post](https://yzhums.com/64265/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2025-07-18 · 454 words · tier community · reviewed (checked by Opus)

> 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.

## 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"](../../objects/table/17.md)
- [table 3 "Payment Terms"](../../objects/table/3.md)
- [codeunit 8616 "Config. Management"](../../objects/codeunit/8616.md)
- 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](../../posts/mohana-blog/tag-blogger-com-1999-blog-1492436440038408053-post-483274250682537951--01a78739b7.md) — 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)](../../posts/yzhums-com/75131.md) — 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](../../posts/yzhums-com/53887.md) — possibly related: both name Codeunit 8616 "Config. Management"
- [Dynamics 365 Business Central: Quickly get next Sequence/Entry Number (without using FindLast -> Entry No. + 1)](../../posts/yzhums-com/31884.md) — 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](../../posts/yzhums-com/69290.md) — possibly related: both name Table 17 "G/L Entry"
- [Introducing Spreadsheets for Business Central](../../videos/1QuV_vkbNVU.md) — possibly related: both name Table 3 "Payment Terms"
- [Set Due Date Limits for Payments in Spain](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Spain/how-to-set-limits-for-due-dates) — possibly related: names Table 3 "Payment Terms"
- [Set up payment terms](https://learn.microsoft.com/dynamics365/business-central/finance-payment-terms) — possibly related: names Table 3 "Payment Terms"
- [What's New: Dataverse & Dynamics 365 App Integration (2023 release wave 2) Part 1](../../videos/fIOnGEARkKs.md) — 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.
