---
id: change/bcapps/10477
type: change
title: "#10477 [Bug Fix] #249: Raise populated ErrorInfo for Subscription Billing failures"
summary: Subscription Billing error handlers now raise the fully populated ErrorInfo object instead of plain-text errors, enabling interactive users to navigate to the offending record when document creation fails.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit create billing documents
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-24T00:37:49.439Z"
  flags: []
generated:
  at: "2026-11-18T00:16:36.082Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 15385dede95a4f9e7be01be47c684fc9d654a7ce
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10477
    title: "microsoft/BCApps#10477: [Bug Fix] #249: Raise populated ErrorInfo for Subscription Billing failures"
    date: "2026-10-23"
    commit: 15385dede95a4f9e7be01be47c684fc9d654a7ce
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/8060
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-actionable-errors
      title: Actionable errors
      label: possibly related
      why: Implements populated ErrorInfo objects for user-actionable error handling in Subscription Billing.
      by: model
number: 10477
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10477
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-23T16:12:18Z"
author: ventselartur
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: 2
  additions: 28
  deletions: 2
  al: 1
apps:
  - Subscription Billing
objects_touched:
  - key: codeunit/8060
    page: codeunit/8060
    type: codeunit
    id: 8060
    name: Create Billing Documents
    app: Subscription Billing
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646836
systems:
  - sales
quote: null
joined_against:
  major: "30"
  commit: eb2bfe5258a473c969a6b85cdc98ce8524408706
---

# #10477 [Bug Fix] #249: Raise populated ErrorInfo for Subscription Billing failures

> Subscription Billing error handlers now raise the fully populated ErrorInfo object instead of plain-text errors, enabling interactive users to navigate to the offending record when document creation fails.

[Pull request](https://github.com/microsoft/BCApps/pull/10477) · merged into `main` (BC30) on 2026-10-23 by ventselartur · 2 files (+28 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- DisplayOrLogErrorFromBillingTemplate and DisplayOrLogErrorFromBillingLine now call Error(ErrorTextInfo) instead of Error(ErrorText)
- The ErrorInfo already held the error type, message, RecordId, SystemId and TableId but was previously discarded
- Interactive users now get an error with a navigation link to the offending Billing Template or Billing Line
- Added a regression test in codeunit 139688 checking that an ErrorInfo-based error is raised
- Automated billing still logs errors without raising an interactive error
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 8060 "Create Billing Documents"](../../objects/codeunit/8060.md), Subscription Billing: modified

## Context

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

## Possibly related

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

- [Actionable errors](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-actionable-errors) — possibly related: Implements populated ErrorInfo objects for user-actionable error handling in Subscription Billing. (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).
