---
id: object/codeunit/1796
type: object
title: Codeunit 1796 "Data Migration Error Logging"
summary: Codeunit 1796 "Data Migration Error Logging" in Base Application (System.Integration). 4 public procedures. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  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: 147ba887124bbc1c016eea325b39b7e865062f12a5f8202669714fa05de1b929
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/DataMigration/DataMigrationErrorLogging.Codeunit.al
    title: src/Layers/W1/BaseApp/System/DataMigration/DataMigrationErrorLogging.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: 1796
name: Data Migration Error Logging
namespace: System.Integration
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 5
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 20
  implements: 0
---

# Codeunit 1796 "Data Migration Error Logging"

> Codeunit 1796 "Data Migration Error Logging" in Base Application (System.Integration). 4 public procedures. Present since at least BC23, still in BC30.

Base Application · System.Integration · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/DataMigration/DataMigrationErrorLogging.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |

## Procedures

- `SetLastRecordUnderProcessing(NewLastRecordUnderProcessingId: Text)`
- `GetLastRecordUnderProcessing(): Text`
- `GetFullListOfLastRecordsUnderProcessingAsText(): Text`
- `ClearLastRecordUnderProcessing()`

Plus 1 local procedures.

## Called by

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 47026 "SL Item Migrator"](../codeunit/47026.md) (9 calls: `CreateItemJnlLine → SetLastRecordUnderProcessing`, `CreateItemJnlLineItemCost → SetLastRecordUnderProcessing`, `CreateItemJnlLineLotSerMst → SetLastRecordUnderProcessing`, …)
- [Codeunit 4019 "GP Item Migrator"](../codeunit/4019.md) (7 calls: `CreateDefaultInventoryPostingGroup → SetLastRecordUnderProcessing`, `CreateInventoryPostingGroup → SetLastRecordUnderProcessing`, `CreateItemJnlLine → SetLastRecordUnderProcessing`, …)
- [Codeunit 4037 "Helper Functions"](../codeunit/4037.md) (7 calls: `CreateDimensionsImp → SetLastRecordUnderProcessing`, `CreateLocationsImp → SetLastRecordUnderProcessing`, `CreatePaymentTermsImp → SetLastRecordUnderProcessing`, …)
- [Codeunit 40043 "GP Collect All Modifications"](../codeunit/40043.md) (4 calls: `HandleDatabaseDelete → SetLastRecordUnderProcessing`, `HandleDatabaseInsert → SetLastRecordUnderProcessing`, `HandleDatabaseModify → SetLastRecordUnderProcessing`, …)
- [Codeunit 4018 "GP Customer Migrator"](../codeunit/4018.md) (4 calls: `MigrateCustomerDetails → SetLastRecordUnderProcessing`, `OnMigrateCustomer → SetLastRecordUnderProcessing`, `OnMigrateCustomerPostingGroups → SetLastRecordUnderProcessing`, …)
- [Codeunit 4022 "GP Vendor Migrator"](../codeunit/4022.md) (4 calls: `MigrateVendorEFTBankAccounts → SetLastRecordUnderProcessing`, `MigrateVendorTransactions → SetLastRecordUnderProcessing`, `OnMigrateVendor → SetLastRecordUnderProcessing`, …)
- [Codeunit 47006 "SL Project Migrator"](../codeunit/47006.md) (4 calls: `CreateProjectTasks → SetLastRecordUnderProcessing`, `MigrateProjectResources → SetLastRecordUnderProcessing`, `MigrateProjects → SetLastRecordUnderProcessing`, …)
- [Codeunit 47018 "SL Customer Migrator"](../codeunit/47018.md) (4 calls: `MigrateCustomer → SetLastRecordUnderProcessing`, `MigrateCustomerDetails → SetLastRecordUnderProcessing`, `MigrateCustomerPostingGroups → SetLastRecordUnderProcessing`, …)
- [Codeunit 47021 "SL Vendor Migrator"](../codeunit/47021.md) (4 calls: `MigrateVendor → SetLastRecordUnderProcessing`, `MigrateVendorDetails → SetLastRecordUnderProcessing`, `MigrateVendorPostingGroups → SetLastRecordUnderProcessing`, …)
- [Codeunit 47023 "SL Helper Functions"](../codeunit/47023.md) (4 calls: `CreateDimensions → SetLastRecordUnderProcessing`, `LogError → ClearLastRecordUnderProcessing`, `LogError → GetFullListOfLastRecordsUnderProcessingAsText`, …)
- [Codeunit 40108 "GP PO Migrator"](../codeunit/40108.md) (3 calls: `CreateLines → SetLastRecordUnderProcessing`, `MigratePOStagingData → SetLastRecordUnderProcessing`, `PostReceivedPurchaseLines → SetLastRecordUnderProcessing`)
- [Codeunit 4017 "GP Account Migrator"](../codeunit/4017.md) (3 calls: `CreateAllocationAccounts → SetLastRecordUnderProcessing`, `MigrateGLAccountDetailsImp → SetLastRecordUnderProcessing`, `MigrateStatisticalAccountDetailsImp → SetLastRecordUnderProcessing`)
- [Table 1797 "Data Migration Error"](../table/1797.md) (2 calls: `UpdateErrorLogging → GetFullListOfLastRecordsUnderProcessingAsText`, `UpdateErrorLogging → GetLastRecordUnderProcessing`)
- [Codeunit 40025 "GP Checkbook Migrator"](../codeunit/40025.md) (1 call: `MoveCheckbookStagingData → SetLastRecordUnderProcessing`)
- [Codeunit 40107 "FiscalPeriods"](../codeunit/40107.md) (1 call: `MoveStagingData → SetLastRecordUnderProcessing`)
- [Codeunit 47000 "SL Account Migrator"](../codeunit/47000.md) (1 call: `MigrateAccountDetails → SetLastRecordUnderProcessing`)
- [Codeunit 47004 "SL Fiscal Periods"](../codeunit/47004.md) (1 call: `MoveStagingData → SetLastRecordUnderProcessing`)
- [Codeunit 47007 "SL SO Migrator"](../codeunit/47007.md) (1 call: `MigrateOpenSalesOrderData → SetLastRecordUnderProcessing`)
- [Codeunit 47010 "SL Cash Manager Migrator"](../codeunit/47010.md) (1 call: `MigrateCashAccounts → SetLastRecordUnderProcessing`)
- [Codeunit 47011 "SL PO Migrator"](../codeunit/47011.md) (1 call: `MigrateOpenPurchaseOrderData → SetLastRecordUnderProcessing`)

## Across versions

- Present in: BC23-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: "Data Migration Error Logging")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
