---
id: change/bcapps/12882
type: change
title: "#12882 [Master] - Bug 651169: [Expense Agent] Exchange rate date limitation"
summary: Expense Agent now correctly handles exchange rate dates for transactions, validating rates against the relevant transaction date and providing appropriate error messages when rates are unavailable.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table expense
  - table expense report header
  - table expense report line
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-10-31T01:04:09.038Z"
  flags: []
generated:
  at: "2026-11-10T00:14:28.203Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 05a731b73c9e3c0734614565c62b213e1ab3a6f4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12882
    title: "microsoft/BCApps#12882: [Master] - Bug 651169: [Expense Agent] Exchange rate date limitation"
    date: "2026-10-30"
    commit: 05a731b73c9e3c0734614565c62b213e1ab3a6f4
    t: null
    quote: Addresses the exchange rate date limitation in Expense Agent to ensure that exchange rates are handled correctly based on the relevant transaction date.
links:
  learn: []
  objects:
    - object/table/6900
    - object/table/6906
    - object/table/6907
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/finance-how-update-currencies
      title: Update currency exchange rates
      label: possibly related
      why: Documents currency exchange rate management and date handling in Business Central.
      by: model
number: 12882
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12882
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-30T09:26:57Z"
author: v-rohangarg20
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - ExpenseManagement
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 189
  deletions: 3
  al: 3
apps:
  - ExpenseAgent
objects_touched:
  - key: table/6900
    page: table/6900
    type: table
    id: 6900
    name: Expense
    app: ExpenseAgent
    status: modified
  - key: table/6906
    page: table/6906
    type: table
    id: 6906
    name: Expense Report Header
    app: ExpenseAgent
    status: modified
  - key: table/6907
    page: table/6907
    type: table
    id: 6907
    name: Expense Report Line
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 651169
systems:
  - copilot
quote: Addresses the exchange rate date limitation in Expense Agent to ensure that exchange rates are handled correctly based on the relevant transaction date.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #12882 [Master] - Bug 651169: [Expense Agent] Exchange rate date limitation

> Expense Agent now correctly handles exchange rate dates for transactions, validating rates against the relevant transaction date and providing appropriate error messages when rates are unavailable.

[Pull request](https://github.com/microsoft/BCApps/pull/12882) · merged into `main` (BC30) on 2026-10-30 by v-rohangarg20 · 4 files (+189 -3), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Exchange rate date handling corrected for Expense Agent transactions
- Validation improved to check rates based on transaction date
- Users receive clear error messages when exchange rates unavailable
- Changes applied to Expense, Expense Report Header, and Expense Report Line tables
- Test coverage added for the fix
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 6900 "Expense"](../../objects/table/6900.md), ExpenseAgent: modified
- [Table 6906 "Expense Report Header"](../../objects/table/6906.md), ExpenseAgent: modified
- [Table 6907 "Expense Report Line"](../../objects/table/6907.md), ExpenseAgent: modified

## Context

- Work items: AB#651169
- Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
- Systems: copilot
- From the description: "Addresses the exchange rate date limitation in Expense Agent to ensure that exchange rates are handled correctly based on the relevant transaction date."

## Possibly related

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

- [Update currency exchange rates](https://learn.microsoft.com/dynamics365/business-central/finance-how-update-currencies) — possibly related: Documents currency exchange rate management and date handling in Business Central. (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).
