Question 350
At fictional Brookstone Labs, the Business Central development team is supporting research procurement and reviewing AL business logic and user experience during a source-control pull request (MB820-4.2-140). The observed development issue is that an inventory customization ignores data validation and inserts records with impossible item units. Which AL development or design response most directly addresses this issue?
Explanation
Correct Answer
The most direct corrective response is to use standard field validation and business rule entry points before database writes. This addresses the specific failure where an inventory customization ignores data validation and inserts records with impossible item units. Acceptance evidence is that invalid unit combinations are rejected while valid items are accepted.
Incorrect Answers
“Represent repeating related records with an appropriate child table and explicit relationship” supports the separate task “represent repeating related records with an appropriate child table and explicit relationship”, not the reported problem: an inventory customization ignores data validation and inserts records with impossible item units. This case instead calls for “use standard field validation and business rule entry points before database writes”.
“Follow the documented posting and corrective-document patterns instead of editing immutable history” concerns the separate step “follow the documented posting and corrective-document patterns instead of editing immutable history”. The reported issue is that an inventory customization ignores data validation and inserts records with impossible item units, so the direct response is to use standard field validation and business rule entry points before database writes.
“Use document header and line table patterns with proper linked records” concerns the alternative task “use document header and line table patterns with proper linked records”, but the stated failure is that an inventory customization ignores data validation and inserts records with impossible item units. The required measure is to use standard field validation and business rule entry points before database writes.