---
id: change/bcapps/12943
type: change
title: "#12943 DK VAT Return Periods regression fix for frequency-aware parsing"
summary: The Danish VAT Return Periods parser now correctly handles the official SKAT API XML structure, enabling proper parsing of VAT reporting periods instead of failing with zero records inserted.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit elec. vat decl. get periods
  - codeunit elec. vat decl. xml
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-21T00:48:29.333Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f73f5afb316e4bc42d8197044b9503c0a160b43a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12943
    title: "microsoft/BCApps#12943: DK VAT Return Periods regression fix for frequency-aware parsing"
    date: "2026-10-20"
    commit: f73f5afb316e4bc42d8197044b9503c0a160b43a
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/13610-dk
    - object/codeunit/13618-dk
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/vat-return-periods
      title: VAT Return Periods in the Czech version
      label: possibly related
      why: VAT Return Periods in Czech version documents VAT period functionality and parsing requirements.
      by: model
number: 12943
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12943
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-20T13:24:23Z"
author: mynjj
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 12
  additions: 620
  deletions: 108
  al: 2
apps:
  - ElectronicVATDeclarationDK
objects_touched:
  - key: codeunit/13610
    page: codeunit/13610-dk
    type: codeunit
    id: 13610
    name: Elec. VAT Decl. Get Periods
    app: ElectronicVATDeclarationDK
    status: modified
  - key: codeunit/13618
    page: codeunit/13618-dk
    type: codeunit
    id: 13618
    name: Elec. VAT Decl. Xml
    app: ElectronicVATDeclarationDK
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 12944
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/12944
fixes_issues: []
work_items:
  - 654780
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: eb2bfe5258a473c969a6b85cdc98ce8524408706
---

# #12943 DK VAT Return Periods regression fix for frequency-aware parsing

> The Danish VAT Return Periods parser now correctly handles the official SKAT API XML structure, enabling proper parsing of VAT reporting periods instead of failing with zero records inserted.

[Pull request](https://github.com/microsoft/BCApps/pull/12943) · merged into `main` (BC30) on 2026-10-20 by mynjj · 12 files (+620 -108), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed the Get VAT Periods parser, which expected the wrong XML shape and inserted 0 records even when SKAT returned valid periods
- XML shape now follows SKAT's official documentation and sample client schema
- Filing deadline now comes from AngivelseFristKalenderFristDato instead of the optional BetalingDato
- Added test XML resources for quarterly periods, frequency changes, differing filing and payment dates, missing data and unsupported frequencies
- Expanded the tests to check the parser against these expected shapes
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 13610 "Elec. VAT Decl. Get Periods"](../../objects/codeunit/13610-dk.md), ElectronicVATDeclarationDK (DK layer): modified
- [Codeunit 13618 "Elec. VAT Decl. Xml"](../../objects/codeunit/13618-dk.md), ElectronicVATDeclarationDK (DK layer): modified

## Also merged into

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

## Context

- Work items: AB#654780
- Labels: Team: Finance
- Systems: finance

## Possibly related

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

- [VAT Return Periods in the Czech version](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/vat-return-periods) — possibly related: VAT Return Periods in Czech version documents VAT period functionality and parsing requirements. (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).
