#9810 [master]-Edit in Excel fails with false duplicate error when creating new Item Variants
Item Variants page no longer fails with a false duplicate key error when creating new variants through Edit in Excel by limiting the forced record update to interactive clients only.
- 1files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-31 by MSNehaNawal (community contribution) · 1 file (+4 -1), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Removed forced immediate record persistence that triggered during Edit in Excel operations
- Scoped the OnValidate trigger’s CurrPage.Update(true) call to interactive sessions only
- OData and web service sessions now bypass the early update, preventing duplicate key conflicts
- Allows Edit in Excel to handle variant creation through its normal OData insert flow
- Behaviour changes for users or extensions.
AL objects touched
- Page 5401 “Item Variants”, Base Application: modified
Context
- Work items: AB#644606
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: inventory
- From the description: “Scope the forced update so it runs only for interactive clients and is skipped for OData/web-service sessions.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- How to block items or item variants from sales, purchasing, and production — possibly related: touches Page 5401 “Item Variants”
- Organize items in categories — possibly related: touches Page 5401 “Item Variants”
- View and Edit Business Central Data in Excel — possibly related: Explains Edit in Excel functionality for managing item variants in lists (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).