---
id: object/codeunit/46854
type: object
title: Codeunit 46854 "BC14 Migration Error Handler"
summary: Codeunit 46854 "BC14 Migration Error Handler" in HybridBC14 (Microsoft.DataMigration.BC14Reimplementation). 6 public procedures. 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: fa7756bc9dc80ae503026e88b8717f4954467d52d4fcd9e36727e7e3aea1a5d3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridBC14/app/src/Errors/BC14MigrationErrorHandler.codeunit.al
    title: src/Apps/W1/HybridBC14/app/src/Errors/BC14MigrationErrorHandler.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: 46854
name: BC14 Migration Error Handler
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: 6
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 10
  implements: 0
---

# Codeunit 46854 "BC14 Migration Error Handler"

> Codeunit 46854 "BC14 Migration Error Handler" in HybridBC14 (Microsoft.DataMigration.BC14Reimplementation). 6 public procedures. 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/Errors/BC14MigrationErrorHandler.codeunit.al) · facts from BC29

## Properties

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

## Procedures

- `ErrorOccurredInCurrentCompany(): Boolean` (internal)
- `ClearErrorOccurred()`
- `GetErrorOccurred(): Boolean`
- `LogError(MigrationType: Text[250]; SourceTableId: Integer; SourceTableName: Text[250]; SourceRecordKey: Text[250]; DestinationTableId: Integer; ErrorMessage: Text; RecId: RecordId)`
- `HasUnresolvedError(SourceTableId: Integer; SourceRecordKey: Text[250]): Boolean`
- `ResolveErrorForRecord(SourceTableId: Integer; SourceRecordKey: Text[250])`

## 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 46853 "BC14 Company Upgrade Task"](../codeunit/46853.md) (5 calls: `ExecuteCompanyUpgrade → ClearErrorOccurred`, `ExecuteCompanyUpgrade → ErrorOccurredInCurrentCompany`, `HandleOnUpgradeBC14Company → ClearErrorOccurred`, …)
- [Codeunit 46852 "BC14 Migration Record Tracker"](../codeunit/46852.md) (3 calls: `LogMigrateResult → HasUnresolvedError`, `LogMigrateResult → LogError`, `LogMigrateResult → ResolveErrorForRecord`)
- [Codeunit 46880 "BC14 Posted Sales Inv Migr."](../codeunit/46880.md) (2 calls: `Migrate → LogError`, `Migrate → ResolveErrorForRecord`)
- [Codeunit 46881 "BC14 Old G/L Entry Migr."](../codeunit/46881.md) (2 calls: `Migrate → LogError`, `Migrate → ResolveErrorForRecord`)
- [Codeunit 46896 "BC14 Journal Post Action"](../codeunit/46896.md) (2 calls: `RunAction → LogError`, `RunAction → ResolveErrorForRecord`)
- [Codeunit 46940 "BC14 Old Cust. Ledger Migr."](../codeunit/46940.md) (2 calls: `Migrate → LogError`, `Migrate → ResolveErrorForRecord`)
- [Codeunit 46944 "BC14 Old Vend. Ledger Migr."](../codeunit/46944.md) (2 calls: `Migrate → LogError`, `Migrate → ResolveErrorForRecord`)
- [Codeunit 46947 "BC14 Old Item Ledger Migr."](../codeunit/46947.md) (2 calls: `Migrate → LogError`, `Migrate → ResolveErrorForRecord`)
- [Codeunit 46949 "BC14 Item Journal Post Action"](../codeunit/46949.md) (2 calls: `RunAction → LogError`, `RunAction → ResolveErrorForRecord`)
- [Codeunit 46875 "BC14 Migration Runner"](../codeunit/46875.md) (1 call: `TryFinalizeCompanyMigration → ErrorOccurredInCurrentCompany`)

## 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 Migration Error Handler")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
