---
id: change/bcapps/13910
type: change
title: "#13910 [Main] - Bug 657627: [Expense Agent] Expense User Card rejects manual approval setup with duplicate error"
summary: The Expense User Card now reuses an existing unassigned approval setup instead of rejecting it with a duplicate error, and allows replacing an assigned approver after confirmation.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page expense approval setups part
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-25T01:04:58.447Z"
  flags: []
generated:
  at: "2026-11-30T10:37:49.603Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 829547dfe2c3bdf82b3aee047b74a8deb3ec9c73
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13910
    title: "microsoft/BCApps#13910: [Main] - Bug 657627: [Expense Agent] Expense User Card rejects manual approval setup with duplicate error"
    date: "2026-11-24"
    commit: 829547dfe2c3bdf82b3aee047b74a8deb3ec9c73
    t: null
    quote: Reuse an existing Expense Approval Setup when manually adding a user from the Expense User Card, rather than failing to insert a duplicate.
links:
  learn: []
  objects:
    - object/page/6947
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-approve-reports
      title: Review and Approve Expense Reports
      label: possibly related
      why: Documents expense report approval workflows and manual approval setup process
      by: model
number: 13910
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13910
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-24T15:37:39Z"
author: v-rohangarg20
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 151
  deletions: 9
  al: 1
apps:
  - ExpenseAgent
objects_touched:
  - key: page/6947
    page: page/6947
    type: page
    id: 6947
    name: Expense Approval Setups Part
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 657627
systems:
  - copilot
quote: Reuse an existing Expense Approval Setup when manually adding a user from the Expense User Card, rather than failing to insert a duplicate.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13910 [Main] - Bug 657627: [Expense Agent] Expense User Card rejects manual approval setup with duplicate error

> The Expense User Card now reuses an existing unassigned approval setup instead of rejecting it with a duplicate error, and allows replacing an assigned approver after confirmation.

[Pull request](https://github.com/microsoft/BCApps/pull/13910) · merged into `main` (BC30) on 2026-11-24 by v-rohangarg20 · 2 files (+151 -9), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- An unassigned existing setup is automatically assigned to the card owner
- Replacing a different approver requires confirmation showing both approvers
- Adding a user already assigned to the same approver preserves the original validation error
- Noninteractive execution does not authorize approver replacement
- Regression tests added for unassigned setup, confirmed replacement, and duplicate assignment scenarios
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 6947 "Expense Approval Setups Part"](../../objects/page/6947.md), ExpenseAgent: modified

## Context

- Work items: AB#657627
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
- From the description: "Reuse an existing Expense Approval Setup when manually adding a user from the Expense User Card, rather than failing to insert a duplicate."

## Possibly related

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

- [Review and Approve Expense Reports](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-approve-reports) — possibly related: Documents expense report approval workflows and manual approval setup process (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).
