#13438 Fix Cloud Migration recovery when Tenant Media is unavailable
Cloud migration recovery now handles Tenant Media read failures gracefully by using a shared try function that logs skipped checks and preserves saved counts, allowing replication to complete and retry instead of aborting.
- 4files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-11-04 by onbuyuka · 4 files (+129 -6), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Shared read-only try function for media counts prevents replication webhook abort when table access fails
- Unavailable counts are logged and skipped rather than causing failure
- Previous media counts are preserved across retry attempts
- Added regression tests for normal comparisons, unavailable counts, and retry scenarios
- No schema or public API changes
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 4001 “Hybrid Cloud Management”, HybridBaseDeployment: modified
- Codeunit 40024 “Tenant Media Warning”, HybridBaseDeployment: modified
Context
- Work items: AB#657194
- Labels: AL: Apps (W1), Team: Integrations
- Systems: administration
- From the description: “If the count is unavailable, log the skipped check, preserve the saved count, and allow completion handling and replication retries to continue.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Define Cloud Migration Table Mappings in Business Central — possibly related: touches Codeunit 4001 “Hybrid Cloud Management”
- Manage Business Central Cloud Migration — possibly related: Describes Cloud Migration Management and managing data migration to Business Central, including recovery and troubleshooting. (model-linked)
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).