code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#13622 [Main]- Edit in Excel insert fails on Price List Lines (Page 7001) — Unit of Measure Code validated before Product No. is set causing NavTestFieldException on Price Asset (Table 7003)

Fixed a bug where inserting price list lines through Edit in Excel failed when a Unit of Measure Code was provided, because validation occurred against empty previous values instead of the current row data.

Pull request · merged into main (BC30) on 2026-11-18 by DhavalMore88 (community contribution) · 3 files (+263 -4), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Edit in Excel inserts to Price List Lines now validate against the current row values, not stale previous record state
  • Added IsODataClient() check to distinguish OData requests from other clients
  • Modified CopyRecTo procedures to use current record for new lines or OData clients
  • Prevents NavTestFieldException on Price Asset when Unit of Measure Code is set without Product No. being established first
  • Added unit test UnitOfMeasureCodeOnInsertLineViaOData to verify the fix
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#657859
  • Labels: ADO: Sync, From Fork, Team: SCM
  • Systems: development

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