#9906 [Bug Fix] #641100: Export Acc. Sched. to Excel - log report usage in OnPostReport to avoid modal page in write transaction
Report 29 now logs financial report usage after processing instead of before, preventing a write transaction that blocked modal pages when exporting account schedules with multiple worksheets.
- 5files
- 2AL files
- 1objects
Pull request · merged into main (BC30) on 2026-08-05 by ventselartur · 5 files (+271 -2), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Moved LogReportUsage call from OnPreReport to OnPostReport to avoid open write transactions
- Fixes PAGE.RunModal error when users updated Excel files with multiple sheets
- OnPreReport still resolves CompanyDisplayName for report execution
- Affected both W1 and NA layers which had identical defects
- Added regression test to verify audit logs don’t block modal pages
- Behaviour changes for users or extensions.
AL objects touched
- Report 29 “Export Acc. Sched. to Excel”, Base Application: modified
Context
- Work items: AB#641100
- Labels: Team: Finance
- Systems: finance
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).