---
id: change/bcapps/13622
type: change
title: "#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)"
summary: 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.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table price list line
system: development
review:
  state: reviewed
  by: opus
  at: "2026-11-19T00:57:42.856Z"
  flags: []
generated:
  at: "2026-11-29T00:16:19.301Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 70b52397e7737b955c67fadeefb7a88c0d83fff1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13622
    title: "microsoft/BCApps#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)"
    date: "2026-11-18"
    commit: 70b52397e7737b955c67fadeefb7a88c0d83fff1
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/7001
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-edit-in-excel-lists
      title: Controlling Edit in Excel on list pages
      label: possibly related
      why: Documents Edit in Excel functionality on list pages including Price List Lines.
      by: model
number: 13622
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13622
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-18T15:38:24Z"
author: DhavalMore88
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 263
  deletions: 4
  al: 2
apps:
  - Base Application
objects_touched:
  - key: table/7001
    page: table/7001
    type: table
    id: 7001
    name: Price List Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 657859
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #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](https://github.com/microsoft/BCApps/pull/13622) · 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

- [Table 7001 "Price List Line"](../../objects/table/7001.md), Base Application: modified

## Context

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

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Controlling Edit in Excel on list pages](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-edit-in-excel-lists) — possibly related: Documents Edit in Excel functionality on list pages including Price List Lines. (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).
