---
id: object/codeunit/47026
type: object
title: Codeunit 47026 "SL Item Migrator"
summary: Codeunit 47026 "SL Item Migrator" in HybridSL (Microsoft.DataMigration.SL). 18 public procedures, 1 events, 3 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - hybridsl
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: 97dbf69e5d23014d00c41ec517571f24900c5f8bf183a252087e43fee94624be
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridSL/app/src/Migration/Items/SLItemMigrator.Codeunit.al
    title: src/Apps/W1/HybridSL/app/src/Migration/Items/SLItemMigrator.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 47026
name: SL Item Migrator
namespace: Microsoft.DataMigration.SL
app: HybridSL
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: 22
  events: 1
  subscribers: 3
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 7
  called_by: 0
  implements: 0
---

# Codeunit 47026 "SL Item Migrator"

> Codeunit 47026 "SL Item Migrator" in HybridSL (Microsoft.DataMigration.SL). 18 public procedures, 1 events, 3 event subscribers. Introduced in BC29, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Events published

- `OnBeforeGetMaxItemBatchLineCount(var IsHandled: Boolean; var NewMaxLineCount: Integer)` (integration)

## Event subscriptions

- OnMigrateItem subscribes to Codeunit "Item Data Migration Facade" OnMigrateItem
- OnMigrateItemPostingGroups subscribes to Codeunit "Item Data Migration Facade" OnMigrateItemPostingGroups
- OnMigrateInventoryTransactions subscribes to Codeunit "Item Data Migration Facade" OnMigrateInventoryTransactions

## Procedures

- `MigrateItem(var Sender: Codeunit "Item Data Migration Facade"; RecordToMigrate: RecordId)` (internal)
- `ShouldMigrateItem(var SLInventory: Record "SL Inventory Buffer"): Boolean` (internal)
- `DecrementMigratedCount()` (internal)
- `MigrateItemDetails(SLInventory: Record "SL Inventory Buffer"; ItemDataMigrationFacade: Codeunit "Item Data Migration Facade")` (internal)
- `MigrateItemPostingGroups(var Sender: Codeunit "Item Data Migration Facade"; RecordIdToMigrate: RecordId; ChartofAccountsMigrated: Boolean)` (internal)
- `MigrateInventoryTransactions(var Sender: Codeunit "Item Data Migration Facade"; RecordIdToMigrate: RecordId; ChartOfAccountsMigrated: Boolean)` (internal)
- `GetCurrentBatchState()` (internal)
- `CreateOrGetItemBatch(TemplateName: Code[10]): Code[10]` (internal)
- `CreateItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; SLInventory: Record "SL Inventory Buffer"; SLItemSite: Record "SL ItemSite Buffer"; Quantity: Decimal; PostingDate: Date)` (internal)
- `CreateItemJnlLineItemCost(var ItemJnlLine: Record "Item Journal Line"; SLInventory: Record "SL Inventory Buffer"; SLItemCost: Record "SL ItemCost Buffer"; Quantity: Decimal; PostingDate: Date)` (internal)
- `CreateItemJnlLineLotSerMst(var ItemJnlLine: Record "Item Journal Line"; SLInventory: Record "SL Inventory Buffer"; SLLotSerMst: Record "SL LotSerMst Buffer"; Quantity: Decimal; PostingDate: Date)` (internal)
- `CreateItemTrackingLinesIfNecessary(SLItemSite: Record "SL ItemSite Buffer"; SLInventory: Record "SL Inventory Buffer"; ItemJnlLine: Record "Item Journal Line"; LotSerNbr: Text[25]; WhseLoc: Text[10])` (internal)
- `CreateItemTrackingLinesSpecificID(SLItemCost: Record "SL ItemCost Buffer"; SLInventory: Record "SL Inventory Buffer"; ItemJnlLine: Record "Item Journal Line")` (internal)
- `MigrateInventoryPostingGroup(SLInventory: Record "SL Inventory Buffer"; var Sender: Codeunit "Item Data Migration Facade")` (internal)
- `GetSLBCTrackingCode(SLInventory: Record "SL Inventory Buffer"): Code[10]` (internal)
- `SetGeneralPostingSetupForInventory(SLINSetup: Record "SL INSetup")` (internal)
- `GetCostingMethod(var SLInventory: Record "SL Inventory Buffer"): Option` (internal)
- `GetMaxBatchLineCount(): Integer` (internal)

## 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 6113 "Item Data Migration Facade"](../codeunit/6113.md) (24 calls: `MigrateInventoryPostingGroup → CreateGeneralProductPostingSetupIfNeeded`, `MigrateInventoryPostingGroup → CreateInventoryPostingSetupIfNeeded`, `MigrateInventoryPostingGroup → DoesItemExist`, …)
- [Codeunit 1796 "Data Migration Error Logging"](../codeunit/1796.md) (9 calls: `CreateItemJnlLine → SetLastRecordUnderProcessing`, `CreateItemJnlLineItemCost → SetLastRecordUnderProcessing`, `CreateItemJnlLineLotSerMst → SetLastRecordUnderProcessing`, …)
- [Codeunit 99000830 "Create Reserv. Entry"](../codeunit/99000830.md) (5 calls: `CreateItemTrackingLinesIfNecessary → CreateEntry`, `CreateItemTrackingLinesIfNecessary → CreateReservEntryFor`, `CreateItemTrackingLinesIfNecessary → SetDates`, …)
- [Codeunit 1327 "Adjust Item Inventory"](../codeunit/1327.md) (3 calls: `CreateItemJnlLine → SelectItemTemplateForAdjustment`, `CreateItemJnlLineItemCost → SelectItemTemplateForAdjustment`, `CreateItemJnlLineLotSerMst → SelectItemTemplateForAdjustment`)
- [Codeunit 99000835 "Item Jnl. Line-Reserve"](../codeunit/99000835.md) (2 calls: `CreateItemTrackingLinesIfNecessary → InitFromItemJnlLine`, `CreateItemTrackingLinesSpecificID → InitFromItemJnlLine`)
- [Codeunit 47023 "SL Helper Functions"](../codeunit/47023.md) (1 call: `DecrementMigratedCount → GetMigrationTypeTxt`)
- [Codeunit 6101 "Data Migration Status Facade"](../codeunit/6101.md) (1 call: `DecrementMigratedCount → IncrementMigratedRecordCount`)

## 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: "SL Item Migrator")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
