Cannot Delete Business Process Flow Due to Component Dependencies

Encountered the following error when trying to delete a Microsoft Dynamics 365 Business Process Flow (BPF)

Cannot Delete Component.  Cannot delete Process because one or more components require it.  More information on the dependencies can be found here: Details

Clicking on the Details opens up the Dependent Components Detected windows. BUT it is empty.

Download Log File – does not specify the details either.

System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: The Entity(15c84b70-23cf-eb11-bacc-000d3a57368e) component cannot be deleted because it is referenced by 2 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.
   at Microsoft.Crm.Dialogs.DeleteDialogPage.ProcessCrmException(CrmException crmEx) +0x169
   at Microsoft.Crm.Dialogs.DeleteDialogPage.ConfigureForm() +0x907
   at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) +0x75
   at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e) +0x7
   at System.Web.UI.Control.PreRenderRecursiveInternal() +0x54
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +0x6d3
   --- End of inner exception stack trace ---
   at System.Web.UI.Page.HandleError(Exception e) +0x11b
   at System.Web.UI.Page.ProcessRequestMain(Boolean inc... (Fault Detail is equal to Exception details: 
ErrorCode: 0x80040216
Message: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: The Entity(15c84b70-23cf-eb11-bacc-000d3a57368e) component cannot be deleted because it is referenced by 2 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.
   at Microsoft.Crm.Dialogs.DeleteDialogPage.ProcessCrmException(CrmException crmEx) +0x169
   at Microsoft.Crm.Dialogs.DeleteDialogPage.ConfigureForm() +0x907
   at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) +0x75
   at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e) +0x7
   at System.Web.UI.Control.PreRenderRecursiveInternal() +0x54
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +0x6d3
   --- End of inner exception stack trace ---
   at System.Web.UI.Page.HandleError(Exception e) +0x11b
  ...).

Each Business Process Flow creates a corresponding table (called entity previously). This table could be referenced as a dependent component. Open this table that was created when a new BPF is activated the first time – click on the BPF Name (this is the table that was created)

Click on “Show Dependencies”

Noticed that this table was reference in a Model driven app. Note: OK to ignore the EntityRelatonship component types and the actual BPF.

For this example – click on the CRM Hub Model-driven app and remove the BPF entity from the app

Be sure to save and then publish. The BPF can now be deleted.

Contact me if you need some Microsoft Dynamics 365 CRM Sales Customer Engagement assistance.

Frank Lee
12 times awarded Microsoft MVP – Dynamics 365 / CRM
San Francisco Bay Area | Silicon Valley

About Frank Lee

Microsoft Dynamics 365 CRM/xRM consultant in San Francisco, USA.  Awarded the Microsoft MVP (Dynamics 365/CRM) 12 consecutive years from 2006 to 2018. Actively involved with Microsoft Dynamics CRM implementations since Microsoft CRM v1.0 beta (2002). Super passionate about everything CRM, especially in the areas of Cloud Computing, A.I., Digital Transformation and Automation.
This entry was posted in Dynamics 365 and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s