#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.
- 14files
- 13AL files
- 2objects
Pull request · 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”, Base Application: modified
- Codeunit 99000777 “Check Prod. Order Status”, 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 — 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).