code change · performanceAL Developmentofficial - Microsoftreviewed - checked by Opus

#13999 Intrastat export XML performance improvement

Codeunit 1283 now buffers Data Exch. Field rows in memory and reads from the temporary table instead of querying the database for each XML line and column, eliminating tens of thousands of round trips during large Intrastat exports. Progress dialogs were added to show export status.

Pull request · merged into main (BC30) on 2026-11-18 by VolodySyn · 1 file (+77 -8), 1 AL · performance · tier official · reviewed (checked by Opus)

What changed

  • Data Exch. Field rows are loaded once into a temporary record using FindSet, reducing database round trips from thousands to one
  • New GetDataExchFieldValue overload reads from the in-memory buffer instead of the database
  • Progress dialogs display during read and write phases, with update frequency scaling (1, 10, or 100 lines) based on total line count
  • Dialogs only appear when GuiAllowed() is true, so background sessions see no UI changes
  • Generated XML output remains identical; existing events and the original GetDataExchFieldValue overload are preserved
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #14285 into releases/29.x on 2026-11-19

Context

  • Work items: AB#658967
  • Labels: Team: Finance
  • Systems: development

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

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