---
id: change/bcapps/12552
type: change
title: '#12552 [29.x]-Validation of the "No." field on the sales order additionally re-validates the Unit of Measure Code'
summary: Fixed a bug where validating the "No." field on a sales order with a linked released production order caused repeated production order status warnings and potential modal dialog errors in write transactions.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - table sales line
  - codeunit check prod. order status
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-20T08:48:28.015Z"
  flags: []
generated:
  at: "2026-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ffbf032e8f51f725a9beb5ac387dc3bbc88441d7
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12552
    title: 'microsoft/BCApps#12552: [29.x]-Validation of the "No." field on the sales order additionally re-validates the Unit of Measure Code'
    date: "2026-10-19"
    commit: ffbf032e8f51f725a9beb5ac387dc3bbc88441d7
    t: null
    quote: Validation of the "No." field on the sales order additionally re-validates the Unit of Measure Code
links:
  learn: []
  objects:
    - object/table/37
    - object/codeunit/99000777
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/inventory-how-setup-units-of-measure
      title: Set up item units of measure
      label: possibly related
      why: Documents setting up item units of measure and validation handling.
      by: model
number: 12552
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12552
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-10-19T12:24:00Z"
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: 520
  deletions: 24
  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:
  - 649962
systems:
  - sales
  - manufacturing
quote: Validation of the "No." field on the sales order additionally re-validates the Unit of Measure Code
joined_against:
  major: "29"
  commit: e646fc169eb3bb7b1947b2089ed943d91dec46b0
---

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

> Fixed a bug where validating the "No." field on a sales order with a linked released production order caused repeated production order status warnings and potential modal dialog errors in write transactions.

[Pull request](https://github.com/microsoft/BCApps/pull/12552) · merged into `releases/29.x` (BC29) on 2026-10-19 by DhavalMore88 (community contribution) · 14 files (+520 -24), 13 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Validate("Unit of Measure Code") inside ValidateUnitOfMeasureCodeFromNo is now wrapped with StatusCheckSuspended to stop nested status checks
- Quantity and Shipment Date validations check StatusCheckSuspended before calling CheckReceiptOrderStatus
- Check Prod. Order Status also respects the suspended flag, so the warning shows only once when "No." validation starts
- Prevents the 'Form.RunModal is not allowed in write transactions' error
- Sales Line changed in the W1 layer and several country layers, with new tests in SCM Planning and Manufacturing
- 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 BC29 snapshot

## Context

- Work items: AB#649962
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: sales, manufacturing
- From the description: "Validation of the "No." field on the sales order additionally re-validates the Unit of Measure Code"

## Possibly related

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

- [Set up item units of measure](https://learn.microsoft.com/dynamics365/business-central/inventory-how-setup-units-of-measure) — possibly related: Documents setting up item units of measure and validation handling. (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).
