SAP Knowledge Base Article - Public

3392781 - Error: “Opportunity With ID XXXX Can’t Be Deleted Because of Existing Follow-Up Documents.”

Symptom

You are using Data Workbench in order to delete an opportunity in the system.

However, you got this error for all the opportunities you tried to delete:

"Opportunity with ID XXXX can't be deleted because of existing follow-up documents."

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to Data Workbench work center.
  2. Select Export view.
  3. Select object.
  4. Filter the opportunity using ID.
  5. Click Next.
  6. Click Export Data.
  7. Download the file from Monitor.
  8. Open the file.
  9. Add a column "ToBeDeleted" to the end of the row.
  10. Enter value "TRUE" to the column "ToBeDeleted".
  11. Now perform an update by going to Import view.
  12. Select Individual Object and Update.
  13. Select object as opportunity.
  14. Upload the edited file and then update.
  15. You get the error: "Opportunity with ID XXXX can't be deleted because of existing follow-up documents."

Cause

This is the expected behavior. Deletion of opportunity is restricted and if there are follow-up documents e.g. any activity ,related opportunity , sales quote or ERP documents.

Resolution

To proceed with the deletion of the opportunity, you need to delete first the related follow-up documents and then the opportunity.

This also happens when the opportunity has been replicated from third party system to c4c, and hence, cannot be deleted using OData.

Keywords

Opportunity, DWB, Error, Opportunity with ID XXXX can't be deleted because of existing follow-up documents; , KBA , LOD-CRM-INT-DWB , Data Workbench , How To

Product

SAP Cloud for Customer core applications all versions