---
id: change/bcapps/12810
type: change
title: "#12810 ExpenseAgent-CAUS-default-VAT-setup-fails"
summary: Fixes the Expense Agent default VAT setup failing, which the title ties to CAUS. The change adjusts the Create Expense VAT Rates codeunit and the Expense Agent Setup table, and adds tests.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit create expense vat rates
  - table expense agent setup
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-10-18T00:55:29.182Z"
  flags: []
generated:
  at: "2026-10-24T01:02:25.817Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 534587e466c7eda56ece17d706fa43e114b30809
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12810
    title: "microsoft/BCApps#12810: ExpenseAgent-CAUS-default-VAT-setup-fails"
    date: "2026-10-16"
    commit: 534587e466c7eda56ece17d706fa43e114b30809
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6975
    - object/table/6930
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-configuration-page
      title: Set Up Expense Agent in Business Central
      label: possibly related
      why: Expense Agent setup covers VAT rates configuration in Expense Agent.
      by: model
number: 12810
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12810
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-16T10:53:18Z"
author: Alexander-Ya
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: 3
  additions: 82
  deletions: 9
  al: 2
apps:
  - ExpenseAgent
objects_touched:
  - key: codeunit/6975
    page: codeunit/6975
    type: codeunit
    id: 6975
    name: Create Expense VAT Rates
    app: ExpenseAgent
    status: modified
  - key: table/6930
    page: table/6930
    type: table
    id: 6930
    name: Expense Agent Setup
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 653962
systems:
  - copilot
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12810 ExpenseAgent-CAUS-default-VAT-setup-fails

> Fixes the Expense Agent default VAT setup failing, which the title ties to CAUS. The change adjusts the Create Expense VAT Rates codeunit and the Expense Agent Setup table, and adds tests.

[Pull request](https://github.com/microsoft/BCApps/pull/12810) · merged into `main` (BC30) on 2026-10-16 by Alexander-Ya · 3 files (+82 -9), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixes failing default VAT setup in Expense Agent (title refers to CAUS)
- Changes the Create Expense VAT Rates codeunit and the Expense Agent Setup table
- Adds tests in the Expense Agent test codeunit
- Resolves AB#653962
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6975 "Create Expense VAT Rates"](../../objects/codeunit/6975.md), ExpenseAgent: modified
- [Table 6930 "Expense Agent Setup"](../../objects/table/6930.md), ExpenseAgent: modified

## Context

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

## Possibly related

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

- [Set Up Expense Agent in Business Central](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-configuration-page) — possibly related: Expense Agent setup covers VAT rates configuration in Expense Agent. (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).
