---
title: "Codeunit 1812 Data Migration Del G/L Account, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/points/
object: https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 1812 Data Migration Del G/L Account, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/points/

13 procedures and triggers with a step in src/Layers/W1/BaseApp/System/DataMigration/DataMigrationDelGLAccount.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 18](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L18), trigger.

- [20](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L20) calls `RemoveAccountsFromAccountScheduleLine`
- [21](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L21) calls `RemoveAccountsFromCustomerPostingGroup`
- [22](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L22) calls `RemoveAccountsFromVendorPostingGroup`
- [23](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L23) calls `RemoveAccountsFromBankAccountPostingGroup`
- [24](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L24) calls `RemoveAccountsFromGenJournalBatch`
- [25](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L25) calls `RemoveAccountsFromGenPostingSetup`
- [26](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L26) calls `RemoveAccountsFromPaymentMethod`
- [27](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L27) calls `RemoveAccountsFromInventoryPostingSetup`
- [28](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L28) calls `RemoveAccountsFromTaxSetup`
- [29](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L29) calls `RemoveAccountsFromCurrency`
- [30](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L30) calls `DeleteGLAccounts`
- [31](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L31) calls `RemoveGLAccountsFromVATPostingSetup`

## DeleteGLAccounts

[Line 34](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L34), local.

- [40](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L40) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) DeleteAll

## RemoveAccountsFromCustomerPostingGroup

[Line 44](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L44), local.

- [53](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L53) writes [Table 92 Customer Posting Group](https://jonas-paprotka.de/ref/table/92-customer-posting-group/) Delete
- [56](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L56) writes [Table 92 Customer Posting Group](https://jonas-paprotka.de/ref/table/92-customer-posting-group/) Insert

## RemoveAccountsFromVendorPostingGroup

[Line 61](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L61), local.

- [70](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L70) writes [Table 93 Vendor Posting Group](https://jonas-paprotka.de/ref/table/93-vendor-posting-group/) Delete
- [73](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L73) writes [Table 93 Vendor Posting Group](https://jonas-paprotka.de/ref/table/93-vendor-posting-group/) Insert

## RemoveAccountsFromBankAccountPostingGroup

[Line 78](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L78), local.

- [87](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L87) writes [Table 277 Bank Account Posting Group](https://jonas-paprotka.de/ref/table/277-bank-account-posting-group/) Delete
- [90](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L90) writes [Table 277 Bank Account Posting Group](https://jonas-paprotka.de/ref/table/277-bank-account-posting-group/) Insert

## RemoveAccountsFromGenJournalBatch

[Line 95](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L95), local.

- [103](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L103) writes [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) Modify

## RemoveAccountsFromGenPostingSetup

[Line 108](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L108), local.

- [119](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L119) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Delete
- [123](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L123) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Insert

## RemoveAccountsFromPaymentMethod

[Line 128](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L128), local.

- [136](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L136) writes [Table 289 Payment Method](https://jonas-paprotka.de/ref/table/289-payment-method/) Modify

## RemoveAccountsFromInventoryPostingSetup

[Line 141](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L141), local.

- [152](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L152) writes [Table 5813 Inventory Posting Setup](https://jonas-paprotka.de/ref/table/5813-inventory-posting-setup/) Delete
- [156](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L156) writes [Table 5813 Inventory Posting Setup](https://jonas-paprotka.de/ref/table/5813-inventory-posting-setup/) Insert

## RemoveAccountsFromTaxSetup

[Line 161](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L161), local.

- [174](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L174) writes [Table 326 Tax Setup](https://jonas-paprotka.de/ref/table/326-tax-setup/) Modify

## RemoveAccountsFromAccountScheduleLine

[Line 179](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L179), local.

- [188](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L188) writes [Table 85 Acc. Schedule Line](https://jonas-paprotka.de/ref/table/85-acc-schedule-line/) Modify

## RemoveAccountsFromCurrency

[Line 195](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L195), local.

- [212](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L212) writes [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) Modify

## RemoveGLAccountsFromVATPostingSetup

[Line 217](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L217), local.

- [222](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L222) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) ModifyAll
- [223](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L223) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) ModifyAll
- [224](https://jonas-paprotka.de/ref/codeunit/1812-data-migration-del-g-l-account/source/#L224) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) ModifyAll

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
