---
id: change/bcapps/13598
type: change
title: "#13598 Fix concurrent initialization of My Notifications"
summary: My Notifications no longer fails with an 'already exists' error when two sessions of the same user initialize the same notification row at once. The losing session reloads the row the winning session inserted and does not overwrite its saved settings.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table my notifications
system: administration
review:
  state: reviewed
  by: opus
  at: "2026-11-07T01:03:50.235Z"
  flags: []
generated:
  at: "2026-11-09T00:15:52.409Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 0cae0511f576d83c600591a1eaa150fc20b68965
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13598
    title: "microsoft/BCApps#13598: Fix concurrent initialization of My Notifications"
    date: "2026-11-06"
    commit: 0cae0511f576d83c600591a1eaa150fc20b68965
    t: null
    quote: Two sessions of the same user can both find no notification row on first use and then race to insert it.
links:
  learn: []
  objects:
    - object/table/1518
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/admin-job-queues-schedule-tasks
      title: Schedule jobs to run automatically
      label: possibly related
      why: Job Queue and My Notifications concurrent initialization issues related to concurrent data access handling.
      by: model
number: 13598
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13598
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-06T10:10:45Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 170
  deletions: 6
  al: 1
apps:
  - Base Application
objects_touched:
  - key: table/1518
    page: table/1518
    type: table
    id: 1518
    name: My Notifications
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 657048
systems:
  - administration
quote: Two sessions of the same user can both find no notification row on first use and then race to insert it.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13598 Fix concurrent initialization of My Notifications

> My Notifications no longer fails with an 'already exists' error when two sessions of the same user initialize the same notification row at once. The losing session reloads the row the winning session inserted and does not overwrite its saved settings.

[Pull request](https://github.com/microsoft/BCApps/pull/13598) · merged into `main` (BC30) on 2026-11-06 by darjoo · 3 files (+170 -6), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed race condition where concurrent sessions would both find no notification row and attempt to insert, causing the second session to fail with 'already exists' error
- Implemented shared insert-or-get operation for all three default-insert helpers to handle concurrent initialization gracefully
- Added five deterministic regression tests covering all three table helpers and the platform get/set paths with competing row insertions
- Solution avoids locks or commits while ensuring the notification page opens successfully for all concurrent sessions
- Covers platform notification status initialization and table-specific/filtered default helpers
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 1518 "My Notifications"](../../objects/table/1518.md), Base Application: modified

## Context

- Work items: AB#657048
- Labels: Team: Integrations
- Systems: administration
- From the description: "Two sessions of the same user can both find no notification row on first use and then race to insert it."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Schedule jobs to run automatically](https://learn.microsoft.com/dynamics365/business-central/admin-job-queues-schedule-tasks) — possibly related: Job Queue and My Notifications concurrent initialization issues related to concurrent data access handling. (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).
