Business Process Flow deletion fails due to an unknown dependency

Applies to: Dynamics 365

Symptom


When trying to delete a business process flow, sometimes the operation fails due to dependency. However when end user click the dependency list, it shows no entry.

Cause


For each business process flow, there is a backend bpf entity. When business process flow gets deleted, the bpf entity would be deleted as well.

It is possible for dependencies to exist between the BPF entity and other components in the system(e.g. a lookup field on Account refers to the BPF entity). In such cases an attempt to delete a BPF will fail due to such dependencies blocking the delete operation.

Resolution


End user can check whether such dependency exists for the bpf entity. If so the dependency need to be resolved before deleting the bpf.

Steps:

  1. Navigate to Settings -> Customization and then to the BPF entity. Try deleting the BPF entity. The delete will fail as expected, but at this point you will be presented with a list of dependencies that need to be resolved before deletion is allowed.
  2. Resolve these dependencies.
  3. Try to delete the business process flow again.