---
id: change/bcapps/11304
type: change
title: '#11304 [Master]-Validation of the "No." field on the sales order additionally re-validates the Unit of Measure Code'
summary: Validation of the item number field on sales lines now prevents duplicate production order status checks when the unit of measure code is re-validated, fixing repeated modal dialogs and write-transaction errors.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table sales line
  - codeunit check prod. order status
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:04:39.890Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d256a5d92b8f5d2e020da5b90aadb56e3c5f4015
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11304
    title: 'microsoft/BCApps#11304: [Master]-Validation of the "No." field on the sales order additionally re-validates the Unit of Measure Code'
    date: "2026-09-17"
    commit: d256a5d92b8f5d2e020da5b90aadb56e3c5f4015
    t: null
    quote: Wrapped Validate("Unit of Measure Code") inside ValidateUnitOfMeasureCodeFromNo() with StatusCheckSuspended to suppress nested status checks
links:
  learn: []
  objects:
    - object/table/37
    - object/codeunit/99000777
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11304
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11304
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-17T11:26:37Z"
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: 14
  additions: 358
  deletions: 12
  al: 13
apps:
  - Base Application
objects_touched:
  - key: table/37
    page: table/37
    type: table
    id: 37
    name: Sales Line
    app: Base Application
    status: modified
  - key: codeunit/99000777
    page: codeunit/99000777
    type: codeunit
    id: 99000777
    name: Check Prod. Order Status
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/BE/BaseApp/Sales/Document/SalesLine.Table.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 649961
systems:
  - sales
  - manufacturing
quote: Wrapped Validate("Unit of Measure Code") inside ValidateUnitOfMeasureCodeFromNo() with StatusCheckSuspended to suppress nested status checks
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #11304 [Master]-Validation of the "No." field on the sales order additionally re-validates the Unit of Measure Code

> Validation of the item number field on sales lines now prevents duplicate production order status checks when the unit of measure code is re-validated, fixing repeated modal dialogs and write-transaction errors.

[Pull request](https://github.com/microsoft/BCApps/pull/11304) · merged into `main` (BC30) on 2026-09-17 by DhavalMore88 (community contribution) · 14 files (+358 -12), 13 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Unit of Measure Code validation during No. validation now runs with status checks suspended
- Quantity and Shipment Date validations skip the production order status check when checks are suspended
- Check Prod. Order Status codeunit respects the suspended check so the warning appears only once
- Changes applied to Sales Line in W1 and all localization layers
- Includes tests for the scenario
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 37 "Sales Line"](../../objects/table/37.md), Base Application: modified
- [Codeunit 99000777 "Check Prod. Order Status"](../../objects/codeunit/99000777.md), Base Application: modified
- `src/Layers/BE/BaseApp/Sales/Document/SalesLine.Table.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#649961
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: sales, manufacturing
- From the description: "Wrapped Validate("Unit of Measure Code") inside ValidateUnitOfMeasureCodeFromNo() with StatusCheckSuspended to suppress nested status checks"

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