---
id: change/bcapps/10890
type: change
title: "#10890 [Master] Bug 645040: Expense Agent: BC Approval Workflow - Improve error message when Approval User Setup is missing"
summary: Expense approval workflow now shows a clear, actionable error message when the current user lacks a User Setup record, with a link to open the configuration page.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit expense report approval mgmt
  - page manager expense report
  - page manager expense reports
  - page expense report
  - page expense report list
  - page expense reports
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:47.743Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 7c690786989e179b624b3422056bdd22d63ebfea
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10890
    title: "microsoft/BCApps#10890: [Master] Bug 645040: Expense Agent: BC Approval Workflow - Improve error message when Approval User Setup is missing"
    date: "2026-09-09"
    commit: 7c690786989e179b624b3422056bdd22d63ebfea
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6901
    - object/page/6980
    - object/page/6981
    - object/page/6910
    - object/page/6979
    - object/page/6997
    - object/table/6906
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10890
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10890
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-09T14:33:33Z"
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: 8
  additions: 108
  deletions: 6
  al: 7
apps:
  - ExpenseAgent
objects_touched:
  - key: codeunit/6901
    page: codeunit/6901
    type: codeunit
    id: 6901
    name: Expense Report Approval Mgmt
    app: ExpenseAgent
    status: modified
  - key: page/6980
    page: page/6980
    type: page
    id: 6980
    name: Manager Expense Report
    app: ExpenseAgent
    status: modified
  - key: page/6981
    page: page/6981
    type: page
    id: 6981
    name: Manager Expense Reports
    app: ExpenseAgent
    status: modified
  - key: page/6910
    page: page/6910
    type: page
    id: 6910
    name: Expense Report
    app: ExpenseAgent
    status: modified
  - key: page/6979
    page: page/6979
    type: page
    id: 6979
    name: Expense Report List
    app: ExpenseAgent
    status: modified
  - key: page/6997
    page: page/6997
    type: page
    id: 6997
    name: Expense Reports
    app: ExpenseAgent
    status: modified
  - key: table/6906
    page: table/6906
    type: table
    id: 6906
    name: Expense Report Header
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 11295
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/11295
fixes_issues: []
work_items:
  - 645040
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10890 [Master] Bug 645040: Expense Agent: BC Approval Workflow - Improve error message when Approval User Setup is missing

> Expense approval workflow now shows a clear, actionable error message when the current user lacks a User Setup record, with a link to open the configuration page.

[Pull request](https://github.com/microsoft/BCApps/pull/10890) · merged into `main` (BC30) on 2026-09-09 by v-rohangarg20 · 8 files (+108 -6), 7 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- New internal helper GetCurrentUserSetupForApproval replaces the generic missing-record platform error
- Error message asks the user to configure their User Setup because the expense approval workflow is enabled
- Error includes an action to open the Approval User Setup page, shown only with read permission on User Setup
- Used on the Expense Report, Expense Report List, Expense Reports, Manager Expense Report and Manager Expense Reports pages and the Expense Report Header table
- Tests added for the missing User Setup scenario
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6901 "Expense Report Approval Mgmt"](../../objects/codeunit/6901.md), ExpenseAgent: modified
- [Page 6980 "Manager Expense Report"](../../objects/page/6980.md), ExpenseAgent: modified
- [Page 6981 "Manager Expense Reports"](../../objects/page/6981.md), ExpenseAgent: modified
- [Page 6910 "Expense Report"](../../objects/page/6910.md), ExpenseAgent: modified
- [Page 6979 "Expense Report List"](../../objects/page/6979.md), ExpenseAgent: modified
- [Page 6997 "Expense Reports"](../../objects/page/6997.md), ExpenseAgent: modified
- [Table 6906 "Expense Report Header"](../../objects/table/6906.md), ExpenseAgent: modified

## Also merged into

- [#11295](https://github.com/microsoft/BCApps/pull/11295) into `releases/29.x` on 2026-09-10

## Context

- Work items: AB#645040
- Labels: AL: Apps (W1), Team: Finance
- Systems: development

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