---
id: change/bcapps/10050
type: change
title: "#10050 Bug 638128: Deadlock in Duplicate Management when multiple users create customers at the same time"
summary: Fixes a deadlock in Duplicate Management that could happen when several users create customers, and therefore contacts, at the same time. The change is a one-line addition to codeunit 5060 DuplicateManagement.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit duplicatemanagement
system: crm
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:59.398Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: fd6901d27e3a4f1d92232d56ec04d395b14eb0e2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10050
    title: "microsoft/BCApps#10050: Bug 638128: Deadlock in Duplicate Management when multiple users create customers at the same time"
    date: "2026-08-10"
    commit: fd6901d27e3a4f1d92232d56ec04d395b14eb0e2
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/5060
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10050
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10050
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-10T12:29:04Z"
author: BardurKnudsen
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 1
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/5060
    page: codeunit/5060
    type: codeunit
    id: 5060
    name: DuplicateManagement
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 638128
systems:
  - crm
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10050 Bug 638128: Deadlock in Duplicate Management when multiple users create customers at the same time

> Fixes a deadlock in Duplicate Management that could happen when several users create customers, and therefore contacts, at the same time. The change is a one-line addition to codeunit 5060 DuplicateManagement.

[Pull request](https://github.com/microsoft/BCApps/pull/10050) · merged into `main` (BC30) on 2026-08-10 by BardurKnudsen · 1 file (+1 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Resolves a deadlock in a read/check step of Duplicate Management
- Triggered when multiple users create customers and contacts concurrently
- One-line change in codeunit 5060 DuplicateManagement
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 5060 "DuplicateManagement"](../../objects/codeunit/5060.md), Base Application: modified

## Context

- Work items: AB#638128
- Labels: Team: SCM
- Systems: crm

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