Symptom
An error occurs when attempting to delete an MDF record that contains an RCM attachment or when attempting to delete the RCM attachment associated with the record.
- ???com.successfactors.attachment.util.AttachmentException: Failed to delete attachment , status=null???
Environment
- SAP SuccessFactors HCM Suite
- SAP SuccessFactors Recruiting Management
Reproducing the Issue
- Navigate to Manage Data.
- Select the object name.
- Open a record that contains an RCM attachment.
- Click Take Action > Permanently Delete Entry.
- An error occurs: "???com.successfactors.attachment.util.AttachmentException: Failed to delete attachment , status=null???"
The same error also occurs when attempting to delete the RCM attachment from the record.
Cause
The attachmentId of an RCM attachment was linked to the MDF record through OData API.
When an attempt is made to delete the MDF record or remove the attachment reference, the system also attempts to delete the original RCM attachment. As deleting the original attachment through this process is not a supported operation in RCM, the error occurs.
Resolution
a. If the objective is to remove the attachment reference from the MDF record without deleting the original RCM attachment, raise a Support ticket with SF Platform team (Component: LOD-SF-MDF-OBJ) and provide the following details:
- Company ID
- Support access
- Detailed steps to reproduce the issue
- Confirmation of whether the RCM attachment was linked to the MDF record via API
(For SAP Support: see internal memo)
b. If the original RCM attachment also needs to be deleted, contact an RCM administrator in your organization and have the attachment deleted directly through the RCM UI. Once the original RCM attachment has been deleted, the MDF record can be deleted successfully.
Note: RCM attachments are typically associated with candidate profiles or job applications. Therefore, deleting the attachment directly from RCM may impact the associated Recruiting data and should be evaluated before proceeding.
To prevent this issue, do not link the attachmentId of existing RCM attachments to MDF records using OData API.
Keywords
MDF, Manage Data, Object, Entry, Delete, Remove, Unlink, Reference, Error, Attachment, Recruiting, Candidate, Resume, API, com.successfactors.attachment.util.AttachmentException, Failed to delete attachment , KBA , LOD-SF-MDF-OBJ , Object Definition & Field Related Issues , LOD-SF-RCM-CAN , General Candidate Issues (not Offers, not Profiles) , Problem
SAP Knowledge Base Article - Public