001182: Cannot remove attachments for OID = <value>.

Description

Attachments cannot be removed for the returned record.

Solution

There may not be a file attached to the record. Check the targetdataset__ATTACH table to see if the record has any attachments.