code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#14358 [29.x]- 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)

Inserting price list lines through Edit in Excel no longer fails with a Product No. error when the row includes a Unit of Measure Code. The CopyRecTo procedures in the Price List Line table now use the current record, not the outdated xRec, for new lines or OData clients. The web client is unchanged.

Pull request · merged into releases/29.x (BC29) on 2026-11-30 by DhavalMore88 (community contribution) · 3 files (+331 -4), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Added a local IsODataClient() procedure to the Price List Line table in the W1 and APAC layers
  • Both CopyRecTo overloads use the current record when the line is new or the client is OData/ODataV4, and xRec otherwise
  • Under OData, xRec stayed blank, so validating Unit of Measure Code checked an empty Product No. and failed
  • Edit in Excel now validates against the values sent in the row
  • Added test UnitOfMeasureCodeOnInsertLineViaOData to codeunit 134123 Price List Line UT
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#657858
  • 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).