---
id: change/bcapps/14619
type: change
title: "#14619 [Fabric] Fix installation with an existing upgrade tag"
summary: Fabric installation now guards the database upgrade tag insert to prevent duplicate-key errors when the tag already exists from company initialization, while keeping log-table initialization unconditional.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit fabric upgrade
system: development
review:
  state: reviewed
  by: opus
  at: "2026-11-28T01:07:02.453Z"
  flags: []
generated:
  at: "2026-11-28T00:12:53.289Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4ab0f18383414005a6ae2cf483ea1e4e082e9074
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14619
    title: "microsoft/BCApps#14619: [Fabric] Fix installation with an existing upgrade tag"
    date: "2026-11-27"
    commit: 4ab0f18383414005a6ae2cf483ea1e4e082e9074
    t: null
    quote: Guard the insert with `HasDatabaseUpgradeTag` while keeping required log-table initialization unconditional.
links:
  learn: []
  objects:
    - object/codeunit/48528
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 14619
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14619
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-27T15:54:41Z"
author: onbuyuka
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Needs Review"
  - "Team: Other"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 2
  deletions: 1
  al: 1
apps:
  - MicrosoftFabricMirroring
objects_touched:
  - key: codeunit/48528
    page: codeunit/48528
    type: codeunit
    id: 48528
    name: Fabric Upgrade
    app: MicrosoftFabricMirroring
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 660891
systems:
  - development
quote: Guard the insert with `HasDatabaseUpgradeTag` while keeping required log-table initialization unconditional.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14619 [Fabric] Fix installation with an existing upgrade tag

> Fabric installation now guards the database upgrade tag insert to prevent duplicate-key errors when the tag already exists from company initialization, while keeping log-table initialization unconditional.

[Pull request](https://github.com/microsoft/BCApps/pull/14619) · merged into `main` (BC30) on 2026-11-27 by onbuyuka · 1 file (+2 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Prevents duplicate-key error during Fabric installation when upgrade tag already registered
- Guards tag insert with HasDatabaseUpgradeTag check
- Preserves unconditional log-table initialization on every install
- No impact on existing database-upgrade paths
- No API, schema, or permission changes
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 48528 "Fabric Upgrade"](../../objects/codeunit/48528.md), MicrosoftFabricMirroring: modified

## Context

- Work items: AB#660891
- Labels: AL: Apps (W1), Ownership: Needs Review, Team: Other
- Systems: development
- From the description: "Guard the insert with `HasDatabaseUpgradeTag` while keeping required log-table initialization unconditional."

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