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
- Navigate to Data Protection & Privacy work center
- Select Administer Data removal runs
- Click on the Application Log from a failed removal run
- Click on Results tab
- 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:
Keywords
PDI, SDK, Script, Data, Removal, Technical, Error, Occurred, data, protection, privacy , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem