---
id: change/bcapps/14390
type: change
title: "#14390 [main] [E-Documents][PEPPOL] V1 import fails for UBL invoices using alternate cac/cbc namespace prefixes"
summary: PEPPOL import for UBL invoices now handles alternate XML namespace prefixes correctly by matching elements through namespace URI instead of lexical prefix matching.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit edoc import peppol bis 3.0
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-27T01:03:28.356Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 2ccd6f3ab7af9611cf5ed5072a0e9e176cc55f4c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14390
    title: "microsoft/BCApps#14390: [main] [E-Documents][PEPPOL] V1 import fails for UBL invoices using alternate cac/cbc namespace prefixes"
    date: "2026-11-25"
    commit: 2ccd6f3ab7af9611cf5ed5072a0e9e176cc55f4c
    t: null
    quote: V1 PEPPOL import fails when equivalent UBL 2 elements use alternate namespace prefixes such as cac1 and cbc1.
links:
  learn: []
  objects:
    - object/codeunit/6166
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-namespaces-overview
      title: Namespaces in AL
      label: possibly related
      why: Documents namespaces in AL, relevant to handling alternate XML namespace prefixes in UBL invoices.
      by: model
number: 14390
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14390
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-25T06:30:55Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 324
  deletions: 15
  al: 1
apps:
  - EDocument
objects_touched:
  - key: codeunit/6166
    page: codeunit/6166
    type: codeunit
    id: 6166
    name: EDoc Import PEPPOL BIS 3.0
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 14522
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/14522
fixes_issues: []
work_items:
  - 660212
systems:
  - integration
quote: V1 PEPPOL import fails when equivalent UBL 2 elements use alternate namespace prefixes such as cac1 and cbc1.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14390 [main] [E-Documents][PEPPOL] V1 import fails for UBL invoices using alternate cac/cbc namespace prefixes

> PEPPOL import for UBL invoices now handles alternate XML namespace prefixes correctly by matching elements through namespace URI instead of lexical prefix matching.

[Pull request](https://github.com/microsoft/BCApps/pull/14390) · merged into `main` (BC30) on 2026-11-25 by Shikhverma · 3 files (+324 -15), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed V1 PEPPOL import failures when UBL elements use alternate namespace prefixes like cac1 and cbc1
- Changed namespace matching from lexical prefix-based to URI-aware namespace resolution
- Added URI awareness with multiple aliases and namespace-scope validation to codeunit 6166
- Added regression test coverage for complete V1 parsing including invoices, credit notes, attributes, attachments, lines, and document charges
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6166 "EDoc Import PEPPOL BIS 3.0"](../../objects/codeunit/6166.md), EDocument: modified

## Also merged into

- [#14522](https://github.com/microsoft/BCApps/pull/14522) into `releases/29.x` on 2026-11-27

## Context

- Work items: AB#660212
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "V1 PEPPOL import fails when equivalent UBL 2 elements use alternate namespace prefixes such as cac1 and cbc1."

## Possibly related

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

- [Namespaces in AL](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-namespaces-overview) — possibly related: Documents namespaces in AL, relevant to handling alternate XML namespace prefixes in UBL invoices. (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).
