---
id: change/bcapps/11995
type: change
title: "#11995 OfficeMgt.IsAvailable check added to fix flaky tests"
summary: The Outlook Mail Engine now checks if Office Management is available before reinitializing the configured Office host, preventing test failures when the Library Office Host Provider is overwritten with unsupported client host types.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page outlook mail engine
system: crm
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:03:19.023Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 9db99acb727fc042ccb1d21ab44acabf84ea133f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11995
    title: "microsoft/BCApps#11995: OfficeMgt.IsAvailable check added to fix flaky tests"
    date: "2026-09-29"
    commit: 9db99acb727fc042ccb1d21ab44acabf84ea133f
    t: null
    quote: The Outlook Mail Engine always reinitialized the configured Office host from the client-side .NET OfficeHost whenever the client reported availability.
links:
  learn: []
  objects:
    - object/page/1600
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11995
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11995
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-29T11:26:44Z"
author: Kimi310
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 5
  deletions: 5
  al: 1
apps:
  - Base Application
objects_touched:
  - key: page/1600
    page: page/1600
    type: page
    id: 1600
    name: Outlook Mail Engine
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647475
systems:
  - crm
quote: The Outlook Mail Engine always reinitialized the configured Office host from the client-side .NET OfficeHost whenever the client reported availability.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11995 OfficeMgt.IsAvailable check added to fix flaky tests

> The Outlook Mail Engine now checks if Office Management is available before reinitializing the configured Office host, preventing test failures when the Library Office Host Provider is overwritten with unsupported client host types.

[Pull request](https://github.com/microsoft/BCApps/pull/11995) · merged into `main` (BC30) on 2026-09-29 by Kimi310 · 1 file (+5 -5), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Added OfficeMgt.IsAvailable check before reinitializing Office host from client
- Prevents overwriting Library Office Host Provider host type OutlookMobileApp with unsupported client host types
- Fixes flaky test failures where Office Management.GetHandlerCodeunit returned no handler
- Maintains Office configuration stability during testing scenarios
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 1600 "Outlook Mail Engine"](../../objects/page/1600.md), Base Application: modified

## Context

- Work items: AB#647475
- Labels: Team: SCM
- Systems: crm
- From the description: "The Outlook Mail Engine always reinitialized the configured Office host from the client-side .NET OfficeHost whenever the client reported availability."

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).
