---
id: change/bcapps/13822
type: change
title: "#13822 Fix XRechnung export truncating item name to 40 characters"
summary: XRechnung export in the German E-Document app no longer cuts the line item name (BT-153) to 40 characters. The full line Description, up to its 100-character field length, is now exported for sales and service invoices and credit memos.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit export xrechnung document
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-12T00:55:54.837Z"
  flags: []
generated:
  at: "2026-12-04T00:17:10.168Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 556e9902e1abf304dc54d7ba4b56c837deebe1ed
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13822
    title: "microsoft/BCApps#13822: Fix XRechnung export truncating item name to 40 characters"
    date: "2026-11-11"
    commit: 556e9902e1abf304dc54d7ba4b56c837deebe1ed
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/13916-de
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-xmlport-object
      title: XMLport object
      label: possibly related
      why: XMLport objects export external documents like XRechnung with correct data formatting.
      by: model
number: 13822
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13822
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-11T10:54:22Z"
author: pri-kise
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 68
  deletions: 2
  al: 1
apps:
  - EDocumentDE
objects_touched:
  - key: codeunit/13916
    page: codeunit/13916-de
    type: codeunit
    id: 13916
    name: Export XRechnung Document
    app: EDocumentDE
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 13602
work_items:
  - 658779
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13822 Fix XRechnung export truncating item name to 40 characters

> XRechnung export in the German E-Document app no longer cuts the line item name (BT-153) to 40 characters. The full line Description, up to its 100-character field length, is now exported for sales and service invoices and credit memos.

[Pull request](https://github.com/microsoft/BCApps/pull/13822) · merged into `main` (BC30) on 2026-11-11 by pri-kise (community contribution) · 2 files (+68 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Removed 40-character limit on item names in XRechnung export for sales invoices and credit memos
- Full description field (up to 100 characters) is now exported without truncation
- Complies with XRechnung 3.0.2 specification and UBL 2.1 schema which have no length restriction on BT-153
- Added tests verifying that maximum-length item descriptions are properly exported
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 13916 "Export XRechnung Document"](../../objects/codeunit/13916-de.md), EDocumentDE (DE layer): modified

## Context

- Fixes: [#13602 [Bug]: XRechnung export truncates item name (BT-153) to 40 characters](https://github.com/microsoft/BCApps/issues/13602) (closed)
- Work items: AB#658779
- Labels: ADO: Sync, From Fork, Team: Finance
- Systems: integration

## Possibly related

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

- [XMLport object](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-xmlport-object) — possibly related: XMLport objects export external documents like XRechnung with correct data formatting. (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).
