URL Deletion Processing

Due to the cleanup feature of the following APIs, any locks held on the parent record may be released. This occurs when a parent record no longer has an associated child attachment record. When this condition occurs, the parent record is modified to release its association with the attachments. To modify the parent record after this occurs, first re-lock the parent record.

To re-lock a record, the locking logic must follow the attachment deletion logic. If the locking logic precedes the deletion logic, an abort error occurs indicating that the previously locked record is not locked.