#14224 Fix duplicate expense vendor numbers during receipt submission
Expense vendor number assignment now skips occupied numbers and surfaces numbering errors during receipt submission, preventing duplicate vendor key failures.
- 3files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-11-20 by Alexander-Ya · 3 files (+162 -21), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Matched and unmatched expense vendor creation both use the table’s insert trigger for consistent numbering logic
- Numbering follows the standard Vendor table pattern to skip already-occupied numbers
- Number-series errors and warnings are no longer suppressed, surfacing actionable errors
- Blank vendor keys from missing error handling are prevented
- Four regression test scenarios validate the fix for normal and sequence series
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 6931 “Expense Vendor Matching”, ExpenseAgent: modified
- Table 6937 “Expense Vendor”, ExpenseAgent: modified
Context
- Work items: AB#659559
- Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
- Systems: copilot
- From the description: “Prevent receipt submission from failing when the next expense vendor number already belongs to an existing record.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Expense Agent Overview in Business Central — possibly related: Documents Expense Agent which automates expense processing including vendor matching during receipt submission. (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).