---
id: object/codeunit/46862
type: object
title: Codeunit 46862 "BC14 Migration Orchestrator"
summary: Codeunit 46862 "BC14 Migration Orchestrator" in HybridBC14 (Microsoft.DataMigration.BC14Reimplementation). 9 public procedures, 1 events, 10 event subscribers. 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: 0275f06066ce10383b8a114795bfa7e3131e3825f6ffb1db6ef39504987ab24d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridBC14/app/src/Orchestration/BC14MigrationOrchestrator.codeunit.al
    title: src/Apps/W1/HybridBC14/app/src/Orchestration/BC14MigrationOrchestrator.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/9200
object_type: codeunit
object_id: 46862
name: BC14 Migration Orchestrator
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: 27
  events: 1
  subscribers: 10
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 7
  called_by: 7
  implements: 0
---

# Codeunit 46862 "BC14 Migration Orchestrator"

> Codeunit 46862 "BC14 Migration Orchestrator" in HybridBC14 (Microsoft.DataMigration.BC14Reimplementation). 9 public procedures, 1 events, 10 event subscribers. 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/Orchestration/BC14MigrationOrchestrator.codeunit.al) · facts from BC29

## Events published

- `OnBeforeScheduleTask(CodeunitId: Integer; var RunSynchronously: Boolean)` (integration)

## Event subscriptions

- InvokeDataUpgrade subscribes to Codeunit "Hybrid Cloud Management" OnInvokeDataUpgrade
- DisableNewSessionForBC14CloudMigration subscribes to Codeunit "Data Migration Mgt." OnBeforeStartMigration
- OnIsUpgradeSupported subscribes to Codeunit "Hybrid Cloud Management" OnIsUpgradeSupported
- BlockReplicationIfMigrationStarted subscribes to Codeunit "Hybrid Cloud Management" OnHandleRunReplication
- HandleBC14OnReplicationRunCompleted subscribes to Codeunit "Hybrid Cloud Management" OnReplicationRunCompleted
- HandleSkipCompaniesWizard subscribes to Page "Hybrid Cloud Setup Wizard" OnSkipShowLiveCompaniesWarning
- HandleBeforeResetUsersToIntelligentCloudPermissions subscribes to Codeunit "Hybrid Deployment" OnBeforeResetUsersToIntelligentCloudPermissions
- HandleDataMigrationOverviewOpen subscribes to Page "Data Migration Overview" OnOpenPageEvent
- SkipDataRepair subscribes to Codeunit "Hybrid Cloud Management" OnHandleFixDataOnReplicationCompleted
- HandleOnIsCloudMigrationCompleted subscribes to Codeunit "Hybrid Cloud Management" OnIsCloudMigrationCompleted

## Procedures

- `DispatchNextReadyCompany(var HybridReplicationSummary: Record "Hybrid Replication Summary")` (internal)
- `InvokeCompanyUpgrade(var HybridReplicationSummary: Record "Hybrid Replication Summary"; CompanyName: Text[50]; DelayUpgrade: Duration)` (internal)
- `TriggerUpgradeIfOneStepEnabled(RunId: Text[50])` (internal)
- `GetDefaultJobTimeout(): Duration` (internal)
- `ValidateReplicationBeforeUpgrade(var HybridReplicationSummary: Record "Hybrid Replication Summary"; ThrowError: Boolean): Boolean` (internal)
- `IsCompanySetupCompleted(CompanyNameToCheck: Text[50]): Boolean` (internal)
- `TryFinalizeOverallUpgrade()` (internal): Called by Historical Task Workers after they finish.
- `FindLatestReplicationSummary(var HybridReplicationSummary: Record "Hybrid Replication Summary"): Boolean` (internal)
- `RaiseOnBeforeScheduleTask(CodeunitId: Integer; var RunSynchronously: Boolean)` (internal)

Plus 7 local procedures.

## 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 46858 "BC14 Migration Status Mgr."](../codeunit/46858.md) (15 calls: `DispatchNextReadyCompany → FilterPendingCompanies`, `DispatchNextReadyCompany → TryFinalizeOverallStatus`, `DispatchNextReadyCompany → UpdateCompanyMessage`, …)
- [Codeunit 46861 "BC14 Wizard"](../codeunit/46861.md) (12 calls: `BlockReplicationIfMigrationStarted → GetBC14MigrationEnabled`, `DisableNewSessionForBC14CloudMigration → GetBC14MigrationEnabled`, `FindLatestReplicationSummary → GetMigrationProviderId`, …)
- [Codeunit 46866 "BC14 Telemetry"](../codeunit/46866.md) (8 calls: `DispatchNextReadyCompany → GetCategory`, `EnsurePendingCompaniesExist → GetCategory`, `HandleBC14OnReplicationRunCompleted → GetCategory`, …)
- [Codeunit 4001 "Hybrid Cloud Management"](../codeunit/4001.md) (2 calls: `HandleBC14OnReplicationRunCompleted → CanHandleNotification`, `HandleInitializationOfBC14Synchronization → SetUpgradePendingOnReplicationRunCompleted`)
- [Codeunit 46856 "BC14 Upgrade Trigger"](../codeunit/46856.md) (2 calls: `HandleBC14OnReplicationRunCompleted → (object)`, `HandleBC14OnReplicationRunCompleted → SetRunId`)
- [Codeunit 4011 "Hybrid Message Management"](../codeunit/4011.md) (1 call: `UpdateStatusOnHybridReplicationCompleted → ResolveMessageCode`)
- [Codeunit 46853 "BC14 Company Upgrade Task"](../codeunit/46853.md) (1 call: `InvokeCompanyUpgrade → (object)`)

## Called by

- [Codeunit 46875 "BC14 Migration Runner"](../codeunit/46875.md) (10 calls: `ContinueCompanyMigration → FindLatestReplicationSummary`, `ContinueCompanyMigration → TryFinalizeOverallUpgrade`, `ContinueMigrationForCompany → FindLatestReplicationSummary`, …)
- [Page extension 46870 "BC14 Cloud Migration Mgmt Ext"](../pageextension/46870.md) (3 calls: `ResumeBC14UpgradeAction → DispatchNextReadyCompany`, `ResumeBC14UpgradeAction → FindLatestReplicationSummary`, `UpdateUpgradeErrorDetails → FindLatestReplicationSummary`)
- [Codeunit 46860 "BC14 Migration Failure Handler"](../codeunit/46860.md) (2 calls: `MarkUpgradeFailed → FindLatestReplicationSummary`, `OnRun → TryFinalizeOverallUpgrade`)
- [Codeunit 46853 "BC14 Company Upgrade Task"](../codeunit/46853.md) (1 call: `ExecuteCompanyUpgrade → IsCompanySetupCompleted`)
- [Codeunit 46856 "BC14 Upgrade Trigger"](../codeunit/46856.md) (1 call: `OnRun → TriggerUpgradeIfOneStepEnabled`)
- [Codeunit 46858 "BC14 Migration Status Mgr."](../codeunit/46858.md) (1 call: `AfterCompanyMigrationCompleted → DispatchNextReadyCompany`)
- [Codeunit 46864 "BC14 Historical Task Worker"](../codeunit/46864.md) (1 call: `OnRun → TryFinalizeOverallUpgrade`)

## Recent changes

- 2026-07-23 [#9200 Cloud Migration bug fixes (BC14 reimplementation, custom mapping, OnPrem dev companies)](../../changes/bcapps/9200.md) (main, BC30, fix)

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