#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.
- 1files
- 1AL files
- 1objects
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
- Codeunit 1283 “Export Generic XML”, Base Application: modified
Also merged into
- #14285 into
releases/29.xon 2026-11-19
Context
- Work items: AB#658967
- Labels: Team: Finance
- Systems: development
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Export and Print Intrastat Reports (DE) — possibly related: Documents Intrastat XML export functionality for reporting purposes. (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).