---
id: object/codeunit/46948
type: object
title: Codeunit 46948 "BC14 Item Ledger Migrator"
summary: Codeunit 46948 "BC14 Item Ledger Migrator" in HybridBC14 (Microsoft.DataMigration.BC14Reimplementation). 8 public procedures, 5 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - hybridbc14
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 9133d51088cbaca58d1a173e021fc9e736afc4ae7e1b0962e12af3445bf31ff5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridBC14/app/src/Migration/Transactions/BC14ItemLedgerMigrator.Codeunit.al
    title: src/Apps/W1/HybridBC14/app/src/Migration/Transactions/BC14ItemLedgerMigrator.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9663
object_type: codeunit
object_id: 46948
name: BC14 Item Ledger Migrator
namespace: Microsoft.DataMigration.BC14Reimplementation
app: HybridBC14
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 20
  events: 5
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 1
  implements: 1
---

# Codeunit 46948 "BC14 Item Ledger Migrator"

> Codeunit 46948 "BC14 Item Ledger Migrator" in HybridBC14 (Microsoft.DataMigration.BC14Reimplementation). 8 public procedures, 5 events. Introduced in BC29, still in BC30.

HybridBC14 · Microsoft.DataMigration.BC14Reimplementation · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridBC14/app/src/Migration/Transactions/BC14ItemLedgerMigrator.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | BC14 Item Ledger Entry |

## Events published

- `OnMigrateItemLedgerEntries(var IsMigrated: Boolean)` (integration)
- `OnAfterMigrateItemLedgerEntries(MigratorSuccess: Boolean)` (integration)
- `OnBeforeCreateItemJournalLine(BC14ItemLedgerEntry: Record "BC14 Item Ledger Entry"; var IsMigrated: Boolean)` (integration)
- `OnAfterCreateItemJournalLine(BC14ItemLedgerEntry: Record "BC14 Item Ledger Entry"; var ItemJournalLine: Record "Item Journal Line")` (integration)
- `OnTransferItemLedgerEntryCustomFields(BC14ItemLedgerEntry: Record "BC14 Item Ledger Entry"; var ItemJournalLine: Record "Item Journal Line")` (integration): Integration event raised during item ledger migration to allow mapping of custom fields. Subscribe to transfer TableExtension fields from BC14 Item Ledger Entry to Item Journal Line.

## Procedures

- `GetDisplayName(): Text[250]`
- `RegisterReplicationMappings(CompanyName: Text)`
- `IsEnabled(): Boolean`
- `Migrate(): Boolean`
- `GetRemainingPercentage(): Integer`
- `GetTemplateName(): Code[10]` (internal)
- `EnsureBatchExists(BatchName: Code[10]; BatchDescription: Text[100])` (internal)
- `CreateItemJournalLine(BC14ItemLedgerEntry: Record "BC14 Item Ledger Entry")` (internal)

Plus 7 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 46945 "BC14 Item Ledger Entry"](../table/46945.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 46851 "BC14 Migration Setup"](../codeunit/46851.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46855 "BC14 Migration Loop"](../codeunit/46855.md) (1 call: `Migrate → RunRecordLoop`)

## Called by

- [Codeunit 46949 "BC14 Item Journal Post Action"](../codeunit/46949.md) (1 call: `RunAction → GetTemplateName`)

## Implements

- [Interface "BC14 Migrator"](../interface/bc14-migrator.md)

## Recent changes

- 2026-08-04 [#9663 Migrate customer, vendor and item transactions for BC14 cloud migration](../../changes/bcapps/9663.md) (main, BC30, feature, added)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "BC14 Item Ledger Migrator")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
