Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Deleting Custom Entity (ErrorCode -2147220970)

Posted on by

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

  • LukasB Profile Picture
    LukasB on at
    RE: Deleting Custom Entity (ErrorCode -2147220970)

    Thank you Mohd Saad Akhtar!

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Deleting Custom Entity (ErrorCode -2147220970)

    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.

    6545.Capture1.PNG

    6545.Capture1.PNG

    I would also advise you to enable trace or use CRMDiagTool to get the exact error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans