#13680 [Excel Reports] Handle an apostrophe in the No. on the Vendor and Customer Top List
Excel reports for top vendor and customer lists now handle apostrophes in account numbers correctly by properly escaping quotes in filter expressions.
- 3files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-11-20 by Franco111000 (community contribution) · 3 files (+123 -8), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Fixed NavInvalidFilterExpressionException when vendor or customer numbers contain apostrophes
- Escape helper now doubles internal quotes and uses Text parameter type instead of Code
- Single-value buffer lookups converted to SetRange for exact comparison instead of filter parsing
- Added tests verifying exports with apostrophes at start, middle, and end of account numbers
- No breaking changes; local helper modification affects only these reports
- Behaviour changes for users or extensions.
AL objects touched
- Report 4409 “EXR Customer Top List”, ExcelReports: modified
- Report 4404 “EXR Vendor Top List”, ExcelReports: modified
Context
- Fixes: #11329 [Bug]: [Excel Reports] Vendor and Customer Top List reports fail with NavInvalidFilterExpressionException when a No. in the top N contains an apostrophe (closed)
- Work items: AB#659690
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Ownership: Manual, Ownership: Needs Review, SCM
- Systems: purchasing, sales
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Customer - Top List (Excel Report) — possibly related: touches Report 4409 “EXR Customer Top List”
- Vendor - Top List (Excel Report) — possibly related: touches Report 4404 “EXR Vendor Top List”
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).