Hello together,
I would like to delete a custom Entity. To achieve this, I removed all removable relationships (1:N and N:1) (Forms, Views,...). The remaining relationsships are non deletable parental or system typed on that entity (e.g. Activity, Note, Process Session, User Entity Instance Data..).
-> There are no activity records with regarding to that specific Entity in the System <-
(relating to: http://crmtipoftheday.com/2015/06/23/when-deleting-email-enabled-entities/)
If I try to delete the Entity I am getting the following error:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #27801620Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #27801620</Message>
<Timestamp>2017-03-16T09:20:02.3068688Z</Timestamp>
<ExceptionSource i:nil="true" />
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.Services.Protocols.SoapException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #30EC9105</Message>
<Timestamp>2017-03-16T09:20:02.3068688Z</Timestamp>
<ExceptionSource i:nil="true" />
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d4p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Data.SqlClient.SqlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #29E2FBEC</Message>
<Timestamp>2017-03-16T09:20:02.3068688Z</Timestamp>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
Has anyone had similar experiences?
Thank you!
Best regards
*This post is locked for comments
Thank you Mohd Saad Akhtar!
Please check if all the Dependencies are removed. Put the custom entity in a solution and select the entity and click on Show Dependencies. All the Dependent components should be removed first before deleting the entity.
I would also advise you to enable trace or use CRMDiagTool to get the exact error.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156