---
id: change/bcapps/12929
type: change
title: '#12929 [Main]"Use GLN in Electronic Documents" on the Company Information is not respected when importing E-Docs from Inbound E-Documents page using the Import XML action.'
summary: Fixed an issue where the GLN setting on Company Information was ignored when importing electronic documents via the Import XML action from the Inbound E-Documents page.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit e-document import helper
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:43:18.949Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: bdf5a0c2fd9d3bd48b9fec78817a8bac41c94824
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12929
    title: 'microsoft/BCApps#12929: [Main]"Use GLN in Electronic Documents" on the Company Information is not respected when importing E-Docs from Inbound E-Documents page using the Import XML action.'
    date: "2026-10-25"
    commit: bdf5a0c2fd9d3bd48b9fec78817a8bac41c94824
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6109
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extend-edocuments
      title: Extending the e-documents functionality
      label: possibly related
      why: touches Codeunit 6109 "E-Document Import Helper"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/NewZealand/how-to-nz-einvoice
      title: Electronic Invoicing in New Zealand
      label: possibly related
      why: Electronic invoicing in New Zealand explains GLN setup in Company Information for E-Document imports.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Denmark/how-to-set-up-oioubl
      title: Set Up the OIOUBL Extension for Electronic Invoicing | Microsoft Docs
      label: possibly related
      why: OIOUBL Extension setup documents GLN configuration in Company Information for electronic invoicing.
      by: model
number: 12929
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12929
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-25T18:45:49Z"
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: 2
  additions: 78
  deletions: 3
  al: 1
apps:
  - EDocument
objects_touched:
  - key: codeunit/6109
    page: codeunit/6109
    type: codeunit
    id: 6109
    name: E-Document Import Helper
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650773
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: 15385dede95a4f9e7be01be47c684fc9d654a7ce
---

# #12929 [Main]"Use GLN in Electronic Documents" on the Company Information is not respected when importing E-Docs from Inbound E-Documents page using the Import XML action.

> Fixed an issue where the GLN setting on Company Information was ignored when importing electronic documents via the Import XML action from the Inbound E-Documents page.

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

## What changed

- GLN (Global Location Number) setting was not being respected during XML import
- The issue occurred specifically when using the Import XML action on Inbound E-Documents page
- Fix ensures Company Information settings are properly applied during e-document imports
- Changes made to the E-Document Import Helper codeunit
- Test coverage added to verify the fix
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6109 "E-Document Import Helper"](../../objects/codeunit/6109.md), EDocument: modified

## Context

- Work items: AB#650773
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration

## Possibly related

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

- [Extending the e-documents functionality](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extend-edocuments) — possibly related: touches Codeunit 6109 "E-Document Import Helper"
- [Electronic Invoicing in New Zealand](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/NewZealand/how-to-nz-einvoice) — possibly related: Electronic invoicing in New Zealand explains GLN setup in Company Information for E-Document imports. (model-linked)
- [Set Up the OIOUBL Extension for Electronic Invoicing | Microsoft Docs](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Denmark/how-to-set-up-oioubl) — possibly related: OIOUBL Extension setup documents GLN configuration in Company Information for electronic invoicing. (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).
