codeunitAdministration & Setupofficial - Microsoftderived - from the source, no model text

Codeunit 46875 "BC14 Migration Runner"

HybridBC14 · Microsoft.DataMigration.BC14Reimplementation

Across versions

  1. BC23-28not present
  2. BC29-30present

Neighbourhood 9 connected objects and pages

Table 4001 "Hybrid Replication Summary" (relates to)Hybrid Replication SummaryCodeunit 46866 "BC14 Telemetry" (calls, 13 links)BC14 TelemetryCodeunit 46862 "BC14 Migration Orchestrator" (calls, 10 links)BC14 Migration OrchestratorCodeunit 46858 "BC14 Migration Status Mgr." (calls, 7 links)BC14 Migration Status Mgr.Codeunit 46864 "BC14 Historical Task Worker" (calls, 4 links)Codeunit 46860 "BC14 Migration Failure Handler" (calls, 2 links)BC14 Migration Failure HandlerCodeunit 46853 "BC14 Company Upgrade Task" (calls)BC14 Company Upgrade TaskCodeunit 46854 "BC14 Migration Error Handler" (calls)BC14 Migration Error HandlerPage extension 46870 "BC14 Cloud Migration Mgmt Ext" (calls)BC14 Cloud Migration Mgmt Ext

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

HybridBC14 · Microsoft.DataMigration.BC14Reimplementation · BC29-30 · source at ea08af5e · facts from BC29

Properties

Property Value
TableNo Hybrid Replication Summary

Events published

  • OnBeforeContinueMigration() (integration)
  • OnValidateBeforeMigration(var CanProceed: Boolean; var ErrorMessage: Text) (integration): Integration event raised before migration starts to allow validation. Subscribe to this event to perform custom validation before migration begins. Set CanProceed to false and provide an error message to prevent migration from starting.
  • OnAfterPopulateSetupMigrators(Migrators: List of [Enum "BC14 Setup Migrator"]; var NewMigrators: List of [Enum "BC14 Setup Migrator"]; var Changed: Boolean) (integration): Integration event raised after the default Setup-phase migrator list is populated. Leave empty and false to accept the defaults, or populate with the desired full list and set to true to replace the defaults entirely. Migrators are identified by their strongly-typed “BC14 Setup Migrator” enum value,…
  • OnAfterPopulateMasterMigrators(Migrators: List of [Enum "BC14 Master Migrator"]; var NewMigrators: List of [Enum "BC14 Master Migrator"]; var Changed: Boolean) (integration): Integration event raised after the default Master Data-phase migrator list is populated. See for replacement semantics.
  • OnAfterPopulateTransactionMigrators(Migrators: List of [Enum "BC14 Transaction Migrator"]; var NewMigrators: List of [Enum "BC14 Transaction Migrator"]; var Changed: Boolean) (integration): Integration event raised after the default Transaction-phase migrator list is populated. See for replacement semantics.
  • OnAfterPopulateHistoricalMigrators(Migrators: List of [Enum "BC14 Historical Migrator"]; var NewMigrators: List of [Enum "BC14 Historical Migrator"]; var Changed: Boolean) (integration): Integration event raised after the default Historical-phase migrator list is populated. See for replacement semantics.
  • OnAfterPopulateActions(ActionList: List of [Enum "BC14 Post Migration Action"]; var NewActions: List of [Enum "BC14 Post Migration Action"]; var Changed: Boolean) (integration): Integration event raised after the default action list is populated. See for replacement semantics.
  • OnBeforeRunMigrator(MigratorName: Text[250]; var SkipMigrator: Boolean) (integration): Integration event raised before migrating a specific entity type. Intended for observability (logging, telemetry) and bulk skip decisions. To target a specific migrator for skip/reorder/remove, subscribe to OnAfterPopulate<Phase>Migrators instead — that event exposes the strongly-typed phase e…
  • OnAfterRunMigrator(MigratorName: Text[250]; Success: Boolean; RemainingPercentage: Integer) (integration): Integration event raised after migrating a specific entity type. Subscribe to perform post-processing or logging.
  • OnBeforeRunAction(ActionId: Enum "BC14 Post Migration Action"; ActionName: Text[250]; var SkipAction: Boolean) (integration): Integration event raised before executing a migration action. Subscribe to perform pre-processing or to skip specific actions.
  • OnAfterRunAction(ActionId: Enum "BC14 Post Migration Action"; ActionName: Text[250]; Success: Boolean) (integration): Integration event raised after executing a migration action. Subscribe to perform post-processing or logging.
  • OnAfterPopulateValidations(ValidationList: List of [Enum "BC14 Migration Validation"]; var NewValidations: List of [Enum "BC14 Migration Validation"]; var Changed: Boolean) (integration): Integration event raised after the default validation list is populated. See for replacement semantics.

Procedures

  • RunMigration()
  • RunMigration(SuppressErrors: Boolean) (internal)
  • ContinueMigrationForCompany(TargetCompanyName: Text[30])
  • RerunHistoricalForCompany(TargetCompanyName: Text[30]) (internal)
  • RunHistoricalMigrations(): Boolean (internal)
  • GetTotalErrorCount(): Integer
  • TryFinalizeCompanyMigration() (internal): Gated company-level finalize: exits early if migration state is already Completed or if the company is not yet ready to finalize (Posting + Historical both done). Safe to call from any path that may have just advanced Posting or Historical — the gate makes it idempotent and order-independent across …
  • FailMigration() (internal): Skips success-path validations (e.g. balance checks) — they are meaningless on failure.

Plus 17 local procedures.

Triggers

OnRun

Relations

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.

Called by

Recent changes

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

Evidence 1 sources