---
id: change/bcapps/12514
type: change
title: "#12514 Revert Expense API test re-enablement and consolidated fixes"
summary: "Fully reverts the earlier commit from #12325 that re-enabled Expense API tests with consolidated fixes, after integration runs failed with HTTP 500 null-reference errors. The AL-Go clean test codeunit setting is removed, prior test exclusions and the auth helper are restored, and the related production and test changes are rolled back."
tier: official
language: en
tags:
  - other
  - main
  - bc30
  - codeunit travel request approval
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-10-19T01:10:58.407Z"
  flags: []
generated:
  at: "2026-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 97c2f034e7a32eb3bbb7efb1a1e893ea06ac121b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12514
    title: "microsoft/BCApps#12514: Revert Expense API test re-enablement and consolidated fixes"
    date: "2026-10-08"
    commit: 97c2f034e7a32eb3bbb7efb1a1e893ea06ac121b
    t: null
    quote: "Revert commit 3f357d6c93edab81eab2437909d8dab17637ba0d, merged through #12325, as requested following the failures in workflow run 37598783939."
links:
  learn: []
  objects:
    - object/codeunit/7133
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-approve-reports
      title: Approve Expense Reports and Travel Requests
      label: possibly related
      why: Documents travel request approval workflows managed by Travel Request Approval codeunit.
      by: model
number: 12514
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12514
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-08T06:19:43Z"
author: aholstrup1
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Build: Automation"
  - "Team: Finance"
change_class: code
change_kind: other
behavior_change: true
breaking: false
files:
  count: 21
  additions: 375
  deletions: 1405
  al: 1
apps:
  - ExpenseAgent
objects_touched:
  - key: codeunit/7133
    page: codeunit/7133
    type: codeunit
    id: 7133
    name: Travel Request Approval
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646383
  - 653393
systems:
  - copilot
quote: "Revert commit 3f357d6c93edab81eab2437909d8dab17637ba0d, merged through #12325, as requested following the failures in workflow run 37598783939."
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12514 Revert Expense API test re-enablement and consolidated fixes

> Fully reverts the earlier commit from #12325 that re-enabled Expense API tests with consolidated fixes, after integration runs failed with HTTP 500 null-reference errors. The AL-Go clean test codeunit setting is removed, prior test exclusions and the auth helper are restored, and the related production and test changes are rolled back.

[Pull request](https://github.com/microsoft/BCApps/pull/12514) · merged into `main` (BC30) on 2026-10-08 by aholstrup1 · 21 files (+375 -1405), 1 AL · other · tier official · reviewed (checked by Opus)

## What changed

- Full 21-file revert of commit 3f357d6c from PR #12325
- enableCleanTestCodeunitExecution removed from AL-Go settings; later settings updates kept
- Prior Expense API authentication helper and 51 Expense API exclusions restored; 193 temporary general API exclusions removed
- Consolidated production changes in Travel Request Approval and the related test changes rolled back
- Mitigates the failing Expense API tests but does not prove the underlying server-side defect is fixed
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 7133 "Travel Request Approval"](../../objects/codeunit/7133.md), ExpenseAgent: modified

## Context

- Work items: AB#646383, AB#653393
- Labels: AL: Apps (W1), Build: Automation, Team: Finance
- Systems: copilot
- From the description: "Revert commit 3f357d6c93edab81eab2437909d8dab17637ba0d, merged through #12325, as requested following the failures in workflow run 37598783939."

## Possibly related

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

- [Approve Expense Reports and Travel Requests](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-approve-reports) — possibly related: Documents travel request approval workflows managed by Travel Request Approval codeunit. (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).
