---
id: object/table/1797
type: object
title: Table 1797 "Data Migration Error"
summary: Table 1797 "Data Migration Error" in Base Application (System.Integration). 11 fields, 17 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "24"
  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: 8db771f599d2e74a287e706b20c956c336b6230fffbf95a2d705d5ecd7b86519
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/DataMigration/DataMigrationError.Table.al
    title: src/Layers/W1/BaseApp/System/DataMigration/DataMigrationError.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 1797
name: Data Migration Error
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:
  - "24"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 11
  procedures: 21
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 1
  pages: 4
  extended_by: 1
  event_subscribers: 6
  calls: 2
  called_by: 0
  implements: 0
---

# Table 1797 "Data Migration Error"

> Table 1797 "Data Migration Error" in Base Application (System.Integration). 11 fields, 17 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24.

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

## Properties

| Property | Value |
|---|---|
| Caption | Data Migration Error |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Id | Integer | — | AutoIncrement; DataClassification SystemMetadata |
| 2 | Migration Type | Text[250] | — | DataClassification SystemMetadata |
| 3 | Destination Table ID | Integer | Specifies the destination table where the error occurred. <small>via [Page 46863 "BC14 Migration Error Overview"](../page/46863.md)</small> | DataClassification SystemMetadata |
| 4 | Source Staging Table Record ID | RecordID | — |  |
| 5 | Error Message | Text[250] | Specifies the error message that relates to the data migration. <small>via [Page 1797 "Data Migration Error"](../page/1797.md)</small> |  |
| 6 | Scheduled For Retry | Boolean | — | DataClassification SystemMetadata |
| 9 | Error Dismissed | Boolean | Specifies whether the error has been dismissed. <small>via [Page 1797 "Data Migration Error"](../page/1797.md)</small> | DataClassification SystemMetadata |
| 10 | Exception Message | BLOB | — |  |
| 11 | Exception Call Stack | BLOB | — |  |
| 12 | Last Record Under Processing | Text[2048] | Specifies the last record that was processed before the error occurred. <small>via [Page 1797 "Data Migration Error"](../page/1797.md)</small> |  |
| 15 | Records Under Processing Log | Blob | Log of Last record under processing <small>caption</small> |  |

## Keys

- Key1: Id (clustered)
- Key2: Destination Table ID, Migration Type

## Events published

- `OnAfterErrorInserted(MigrationType: Text; ErrorMessage: Text)` (integration)

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 40112 "GP Migration Error Handler"](../codeunit/40112.md) UpdateErrorOverviewOnDelete, [Codeunit 47024 "SL Migration Error Handler"](../codeunit/47024.md) UpdateErrorOverviewOnDelete
- OnAfterInsertEvent: [Codeunit 40112 "GP Migration Error Handler"](../codeunit/40112.md) UpdateErrorOverviewOnInsert, [Codeunit 47024 "SL Migration Error Handler"](../codeunit/47024.md) UpdateErrorOverviewOnInsert
- OnAfterModifyEvent: [Codeunit 40112 "GP Migration Error Handler"](../codeunit/40112.md) UpdateErrorOverviewOnModify, [Codeunit 47024 "SL Migration Error Handler"](../codeunit/47024.md) UpdateErrorOverviewOnModify

## Procedures

- `CreateEntryWithMessage(MigrationType: Text[250]; DestinationTableId: Integer; SourceStagingTableRecordId: RecordID; ErrorMessage: Text[2048])`
- `CreateEntry(MigrationType: Text[250]; DestinationTableId: Integer; SourceStagingTableRecordId: RecordID)`
- `CreateEntryNoStagingTable(MigrationType: Text[250]; DestinationTableId: Integer)`
- `CreateEntryNoStagingTableWithMessage(MigrationType: Text[250]; DestinationTableId: Integer; ErrorMessage: Text[250])`
- `ClearEntry(MigrationType: Text[250]; DestinationTableId: Integer; SourceStagingTableRecordId: RecordID)`
- `ClearEntryNoStagingTable(MigrationType: Text[250]; DestinationTableId: Integer)`
- `FindEntry(MigrationType: Text[250]; DestinationTableId: Integer; SourceStagingTableRecordId: RecordID): Boolean`
- `ExistsEntry(MigrationType: Text[250]; DestinationTableId: Integer; SourceStagingTableRecordId: RecordID): Boolean`
- `Ignore()`
- `GetErrorMessage(MigrationType: Text[250]; SourceRecordId: RecordID; var ErrorMessage: Text[250])`
- `GetFullExceptionMessage(): Text`
- `SetFullExceptionMessage(ExceptionMessage: Text)`
- `GetExceptionCallStack(): Text`
- `GetExceptionMessageWithStackTrace(): Text`
- `SetExceptionCallStack(ExceptionCallStack: Text)`
- `SetLastRecordUnderProcessingLog(RecordsUnderProcessingLog: Text)`
- `GetLastRecordsUnderProcessingLog(): Text`

Plus 3 local procedures.

## Referenced by

1 fields in 1 objects relate to this table (TableRelation or CalcFormula).

- [Table 1799 "Data Migration Status"](../table/1799.md): Error Count

## Pages and codeunits on this table

- [Page 1796 "Data Migration Error Part"](../page/1796.md) (source table)
- [Page 1797 "Data Migration Error"](../page/1797.md) (source table)
- [Page 46863 "BC14 Migration Error Overview"](../page/46863.md) (source table)
- [Page 46878 "BC14 Errored Buffer Records"](../page/46878.md) (source table)

## Extended by

- [Table extension 46898 "BC14 Data Migration Error Ext"](../tableextension/46898.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 1796 "Data Migration Error Logging"](../codeunit/1796.md) (2 calls: `UpdateErrorLogging → GetFullListOfLastRecordsUnderProcessingAsText`, `UpdateErrorLogging → GetLastRecordUnderProcessing`)
- [Codeunit 6101 "Data Migration Status Facade"](../codeunit/6101.md) (1 call: `Ignore → IgnoreErrors`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24

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