SAP Knowledge Base Article - Public

3536241 - Personal Data Removal Failure

Symptom

When trying to remove personal data, you observe the following errors:

  • Error during data removal
  • Technical error occurred; report a case

Environment

  • SAP Business ByDesign
  • SAP Cloud for Customer
  • SAP Cloud Applications Studio

Reproducing the Issue

  1. Navigate to Data Protection & Privacy work center
  2. Select Administer Data removal runs
  3. Click on the Application Log from a failed removal run
  4. Click on Results tab
  5. Notice the error messages "Error during data removal" and "Technical error occurred; report a case"

Cause

The failure in data removal is most likely due to a PDI BeforeSave event script within the Customer or Business Partner BO. The issue arises because the role of a deleted contact-person can no longer be retrieved, preventing the deletion process from completing.

Resolution

Please make use of IsBupaDeletion function from DataDeletion reuse library.

Code for reference:
var delBP = DeletionContext.IsBupaDeletion();

See Also

Please refer to SAP Cloud Applications Studio help portal:

Data Deletion Context (Reuse Library)

Keywords

PDI, SDK, Script, Data, Removal, Technical, Error, Occurred, data, protection, privacy , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions