code change · fixCopilot & Agentsofficial - Microsoftreviewed - checked by Opus

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

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

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

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