The system rejects linking a shipment record afterward to a sales delivery note created independently and that generated a stock movement.
This restriction prevents the same physical product issue from being evaluated again through both a standalone delivery note and a shipment link.
When creating a sales delivery note, decide at the outset whether the transaction will run directly on the delivery note or through an existing shipment.