---
id: change/bcapps/14241
type: change
title: "#14241 [Expense Agent] Fix corporate card data integrity"
summary: "Five corporate card data integrity issues are fixed: settlement membership serialization, configured card preservation, mapped import failure handling, feed-linked expense deletion checks, and LCY amount rounding to configured precision."
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit ea corp card data exch prov
  - codeunit ea corp card settlement mgt
  - table ea corp card settlement
  - table ea corp card settlement line
  - table ea corp card trans
  - table expense
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-29T00:46:33.213Z"
  flags: []
generated:
  at: "2026-11-30T10:37:49.603Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 26849205a1bcd6a4a477ed167758793366aa0591
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14241
    title: "microsoft/BCApps#14241: [Expense Agent] Fix corporate card data integrity"
    date: "2026-11-27"
    commit: 26849205a1bcd6a4a477ed167758793366aa0591
    t: null
    quote: Address five corporate-card data-integrity issues
links:
  learn: []
  objects:
    - object/codeunit/7434
    - object/codeunit/7443
    - object/table/7430
    - object/table/7431
    - object/table/7428
    - object/table/6900
    - object/codeunit/7442
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 14241
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14241
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-27T10:46:49Z"
author: Alexander-Ya
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: 12
  additions: 849
  deletions: 54
  al: 7
apps:
  - ExpenseAgent
objects_touched:
  - key: codeunit/7434
    page: codeunit/7434
    type: codeunit
    id: 7434
    name: EA Corp Card Data Exch Prov
    app: ExpenseAgent
    status: modified
  - key: codeunit/7443
    page: codeunit/7443
    type: codeunit
    id: 7443
    name: EA Corp Card Settlement Mgt
    app: ExpenseAgent
    status: modified
  - key: table/7430
    page: table/7430
    type: table
    id: 7430
    name: EA Corp Card Settlement
    app: ExpenseAgent
    status: modified
  - key: table/7431
    page: table/7431
    type: table
    id: 7431
    name: EA Corp Card Settlement Line
    app: ExpenseAgent
    status: modified
  - key: table/7428
    page: table/7428
    type: table
    id: 7428
    name: EA Corp Card Trans
    app: ExpenseAgent
    status: modified
  - key: table/6900
    page: table/6900
    type: table
    id: 6900
    name: Expense
    app: ExpenseAgent
    status: modified
  - key: codeunit/7442
    page: codeunit/7442
    type: codeunit
    id: 7442
    name: EA Create Corp Card Setup
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 630366
systems:
  - copilot
quote: Address five corporate-card data-integrity issues
joined_against:
  major: "30"
  commit: 4d60d10920084a35a6231e5a0ffbd0577b0c399e
---

# #14241 [Expense Agent] Fix corporate card data integrity

> Five corporate card data integrity issues are fixed: settlement membership serialization, configured card preservation, mapped import failure handling, feed-linked expense deletion checks, and LCY amount rounding to configured precision.

[Pull request](https://github.com/microsoft/BCApps/pull/14241) · merged into `main` (BC30) on 2026-11-27 by Alexander-Ya · 12 files (+849 -54), 7 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Settlement membership changes are serialized on shared statement rows with exclusive ownership rechecked before posting
- Configured CSV/XML card and employee mappings are preserved when applying defaults instead of blanket deletion
- Mapped imports fail when all rows are rejected, preserving diagnostics while skipping acknowledgement
- Deletion of feed-linked expenses is rejected before related data is deleted to prevent stranded transactions
- Converted and cached historical LCY amounts are rounded to configured precision before storage
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 7434 "EA Corp Card Data Exch Prov"](../../objects/codeunit/7434.md), ExpenseAgent: modified
- [Codeunit 7443 "EA Corp Card Settlement Mgt"](../../objects/codeunit/7443.md), ExpenseAgent: modified
- [Table 7430 "EA Corp Card Settlement"](../../objects/table/7430.md), ExpenseAgent: modified
- [Table 7431 "EA Corp Card Settlement Line"](../../objects/table/7431.md), ExpenseAgent: modified
- [Table 7428 "EA Corp Card Trans"](../../objects/table/7428.md), ExpenseAgent: modified
- [Table 6900 "Expense"](../../objects/table/6900.md), ExpenseAgent: modified
- [Codeunit 7442 "EA Create Corp Card Setup"](../../objects/codeunit/7442.md), ExpenseAgent: modified

## Context

- Work items: AB#630366
- Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
- Systems: copilot
- From the description: "Address five corporate-card data-integrity issues"

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