BCQuality rule · scmInventoryofficial - Microsoftderived - from the source, no model text

Cancel reservations through reservation management

Persistent "Reservation Entry" rows are not disposable allocation markers. Reservation and Tracking links use an entry-number pair with opposite Positive values, while Surplus and Prospect entries can legitimately be unpaired.

Rule on GitHub · microsoft layer · scm · BC all · tier official · derived

Description

Persistent "Reservation Entry" rows are not disposable allocation markers. Reservation and Tracking links use an entry-number pair with opposite Positive values, while Surplus and Prospect entries can legitimately be unpaired. Cancelling a binding reservation must handle its counterpart and any remaining item tracking or order tracking, not just remove a row.

Best Practice

Explicit cancellation of an existing binding reservation uses "Reservation Engine Mgt.".CancelReservation. It checks the reservation status and "Disallow Cancellation", handles the counterpart, and preserves or retracks the remaining source quantities as appropriate. Source-line quantity changes have their own source-specific reservation management path.

Not every Reservation Entry has a partner or identical lot/serial values on both sides: Surplus/Prospect entries and supported late-binding scenarios have different relationships. Temporary buffers, engine-owned updates, and supported publisher metadata are not independent cancellation. Cancelling a reservation is also different from intentionally removing an item-tracking assignment.

The samples retrieve the negative side of a persistent sales-line reservation and cancel only the binding. They do not delete the sales line or remove its tracking specifications.

See sample: cancel-reservations-through-reservation-management.good.al.

Anti Pattern

Delete(true), DeleteAll, or a status/source rewrite on persistent "Reservation Entry" records does not perform binding-reservation cancellation. Even deleting both sides can discard tracking that should survive and omit retracking.

Normal processing of temporary Prospect/Surplus buffers is outside that cancellation workflow, and an unpaired row is not intrinsically an orphan.

See sample: cancel-reservations-through-reservation-management.bad.al.

References

Examples

Names

Changed by


From microsoft/BCQuality at a4593a1, MIT License, Copyright (c) 2026 Microsoft Corporation (license).