---
id: change/bcapps/13927
type: change
title: "#13927  [29.x]-Bug 658800: [Expense Agent] Expense User Card rejects manual approval setup with duplicate error"
summary: Fixes a bug in the Expense Agent where manually adding an approval setup from the Expense User Card failed with a duplicate error. The change is in the Expense Approval Setups Part page and is a backport to 29.x.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - page expense approval setups part
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-25T01:04:58.447Z"
  flags: []
generated:
  at: "2026-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 9226b25555006e1c48ff684df763836e6d3f9b8b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13927
    title: "microsoft/BCApps#13927:  [29.x]-Bug 658800: [Expense Agent] Expense User Card rejects manual approval setup with duplicate error"
    date: "2026-11-24"
    commit: 9226b25555006e1c48ff684df763836e6d3f9b8b
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/page/6947
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 13927
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13927
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-11-24T16:48:18Z"
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:
  - 658800
systems:
  - copilot
quote: null
joined_against:
  major: "29"
  commit: b42f520c380a64062ca700b5f5450acc436e5b05
---

# #13927  [29.x]-Bug 658800: [Expense Agent] Expense User Card rejects manual approval setup with duplicate error

> Fixes a bug in the Expense Agent where manually adding an approval setup from the Expense User Card failed with a duplicate error. The change is in the Expense Approval Setups Part page and is a backport to 29.x.

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

## What changed

- Adding an approval setup manually from the Expense User Card no longer fails with a duplicate error
- The change is in page 6947 Expense Approval Setups Part
- Tests were added to the Expense Agent test codeunit
- Backport to the releases/29.x branch
- 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#658800
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot

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