---
id: change/bcapps/11629
type: change
title: "#11629 Fix Norwegian SAF-T 1.30 export issues"
summary: Norwegian SAF-T 1.30 export now correctly reports header versions, handles credit amounts as non-negative, excludes unselected dimensions from the XML, and counts transaction groups consistently across split files.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit generate saf-t 1.3 file
  - codeunit saf-t export mgt.
  - query saf-t g/l entry by doc.
  - table saf-t mapping category
  - codeunit saf-t xml import
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:01:56.344Z"
  flags: []
generated:
  at: "2026-10-13T13:11:11.933Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 41aaca580ccb16a1720e9ce1443a01a4959ee953
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11629
    title: "microsoft/BCApps#11629: Fix Norwegian SAF-T 1.30 export issues"
    date: "2026-10-07"
    commit: 41aaca580ccb16a1720e9ce1443a01a4959ee953
    t: null
    quote: Norwegian SAF-T 1.30 exports can contain wrong header versions, negative credit amounts, unwanted dimensions and inconsistent transaction totals.
links:
  learn: []
  objects:
    - object/codeunit/10692-no
    - object/codeunit/10675-no
    - object/query/10671-no
    - object/table/10671-no
    - object/codeunit/10671-no
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11629
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11629
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-07T18:22:58Z"
author: AleksanderGladkov
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 7
  additions: 1139
  deletions: 69
  al: 5
apps:
  - NorwegianSAFT
objects_touched:
  - key: codeunit/10692
    page: codeunit/10692-no
    type: codeunit
    id: 10692
    name: Generate SAF-T 1.3 File
    app: NorwegianSAFT
    status: modified
  - key: codeunit/10675
    page: codeunit/10675-no
    type: codeunit
    id: 10675
    name: SAF-T Export Mgt.
    app: NorwegianSAFT
    status: modified
  - key: query/10671
    page: query/10671-no
    type: query
    id: 10671
    name: SAF-T G/L Entry By Doc.
    app: NorwegianSAFT
    status: added
  - key: table/10671
    page: table/10671-no
    type: table
    id: 10671
    name: SAF-T Mapping Category
    app: NorwegianSAFT
    status: modified
  - key: codeunit/10671
    page: codeunit/10671-no
    type: codeunit
    id: 10671
    name: SAF-T XML Import
    app: NorwegianSAFT
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 12336
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/12336
fixes_issues: []
work_items:
  - 650030
systems:
  - finance
quote: Norwegian SAF-T 1.30 exports can contain wrong header versions, negative credit amounts, unwanted dimensions and inconsistent transaction totals.
joined_against:
  major: "30"
  commit: ad9b529a78c818ba25c24aecd093442a6c7a3852
---

# #11629 Fix Norwegian SAF-T 1.30 export issues

> Norwegian SAF-T 1.30 export now correctly reports header versions, handles credit amounts as non-negative, excludes unselected dimensions from the XML, and counts transaction groups consistently across split files.

[Pull request](https://github.com/microsoft/BCApps/pull/11629) · merged into `main` (BC30) on 2026-10-07 by AleksanderGladkov · 7 files (+1139 -69), 5 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Header versions are now set to 1.30 and the current application version instead of hardcoded values
- Credit currency amounts are exported as non-negative values rather than retaining their sign
- Analysis data for dimensions not selected for export is omitted from the XML
- Transaction count uses exported transaction groups across journals and repeats totals in every split file
- SAF-T 1.20 exports remain unchanged; comprehensive XML regression tests added
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 10692 "Generate SAF-T 1.3 File"](../../objects/codeunit/10692-no.md), NorwegianSAFT (NO layer): modified
- [Codeunit 10675 "SAF-T Export Mgt."](../../objects/codeunit/10675-no.md), NorwegianSAFT (NO layer): modified
- [Query 10671 "SAF-T G/L Entry By Doc."](../../objects/query/10671-no.md), NorwegianSAFT (NO layer): added
- [Table 10671 "SAF-T Mapping Category"](../../objects/table/10671-no.md), NorwegianSAFT (NO layer): modified
- [Codeunit 10671 "SAF-T XML Import"](../../objects/codeunit/10671-no.md), NorwegianSAFT (NO layer): modified

## Also merged into

- [#12336](https://github.com/microsoft/BCApps/pull/12336) into `releases/29.x` on 2026-10-13

## Context

- Work items: AB#650030
- Labels: Team: Finance
- Systems: finance
- From the description: "Norwegian SAF-T 1.30 exports can contain wrong header versions, negative credit amounts, unwanted dimensions and inconsistent transaction totals."

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).
