web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Cannot Delete Business Process Flow Due to Component Dependencies

Frank Lee Profile Picture Frank Lee 4,617

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 – 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


This was originally posted here.

Comments

*This post is locked for comments