001183: Cannot remove attachment '<value>' for OID = <value>.

Description

The returned attachment cannot be removed for the returned record.

Solution

An attachment with the returned name may not be attached to the record. Check the targetdataset__ATTACH table to see whether the record has any attachments.