System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: Cannot Delete Entity: osm__audition. It is used in a published workflow or used as primary entity in a draft workflow. at Microsoft.Crm.Dialogs.DeleteDialogPage.ProcessCrmException(CrmException crmEx) +0x169 at Microsoft.Crm.Dialogs.DeleteDialogPage.ConfigureForm() +0x925 at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) +0xa2 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 includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +0x95a at System.We... (Fault Detail is equal to Exception details: ErrorCode: 0x80040216 Message: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: Cannot Delete Entity: osm__audition. It is used in a published workflow or used as primary entity in a draft workflow. at Microsoft.Crm.Dialogs.DeleteDialogPage.ProcessCrmException(CrmException crmEx) +0x169 at Microsoft.Crm.Dialogs.DeleteDialogPage.ConfigureForm() +0x925 at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) +0xa2 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 includeStagesBeforeAsyncPoint, Boolean ...).