Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Deleting a System Chart

Posted on by 35

I'm trying to delete the "Accounts by Industry" chart. I get an error message that I can't delete it because it's used by the Accounts system form. When I look at the Accounts form and select Show Dependencies I find three charts that are listed as required components that are Contracts by Role, Top Customers and Accounts by Industry. None of these are shown on the form (nor do I even think I can show a chart on a form,) so I don't understand how they are required components of the form.

Any help would be appreciated.

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Deleting a System Chart

    Ahh!! This is systems Chart and you can not delete it.

  • sjarrell Profile Picture
    sjarrell 35 on at
    RE: Deleting a System Chart

    I can do a "Show Dependencies" on both the Accounts form and on the Chart. Both show that the Accounts form needs the chart, but there's nowhere on the form that I can see that the chart is shown or needed.

    5228.2.jpg

    5228.2.jpg

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Deleting a System Chart

    Hi ,

    Try to create a  console application and execute RetreiveDependentComponentsRequest for the chart. See what are you getting in the response .  

    [View:https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg308161(v%3Dcrm.8)]

  • sjarrell Profile Picture
    sjarrell 35 on at
    RE: Deleting a System Chart

    Obviously I'm a rookie at this. Even if I don't have this chart in my solution it's still in the default solution and it's still going to appear as the solutions are additive, right?

  • Prashant_ Profile Picture
    Prashant_ 1,040 on at
    RE: Deleting a System Chart

    You cannot remove component from default solution.You can remove it from your solution using for development.However this chart is manage component so you cannot delete it.  

  • sjarrell Profile Picture
    sjarrell 35 on at
    RE: Deleting a System Chart

    How would I remove something from the default solution without deleting it. There's no option to disable charts. The issue seems to be that somehow this chart and two others are used somehow with the Accounts form and I can't find any mention of any of these charts in my Accounts form.

  • sjarrell Profile Picture
    sjarrell 35 on at
    RE: Deleting a System Chart

    Thanks...

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: The SavedQueryVisualization(74a622c0-5193-de11-97d4-00155da3b01e) component cannot be deleted because it is referenced by 6 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

      at Microsoft.Crm.Dialogs.DeleteDialogPage.ProcessCrmException(CrmException crmEx)

      at Microsoft.Crm.Dialogs.DeleteDialogPage.ConfigureForm()

      at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)

      at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)

      at System.Web.UI.Control.PreRenderRecursiveInternal()

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #93A69AE0Detail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance&quot; xmlns="schemas.microsoft.com/.../Contracts&quot;>

     <ActivityId>8f6c3a5a-5018-478d-944d-8cc1f1159e81</ActivityId>

     <ErrorCode>-2147220970</ErrorCode>

     <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic&quot; />

     <Message>System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: The SavedQueryVisualization(74a622c0-5193-de11-97d4-00155da3b01e) component cannot be deleted because it is referenced by 6 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

      at Microsoft.Crm.Dialogs.DeleteDialogPage.ProcessCrmException(CrmException crmEx)

      at Microsoft.Crm.Dialogs.DeleteDialogPage.ConfigureForm()

      at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)

      at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)

      at System.Web.UI.Control.PreRenderRecursiveInternal()

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #93A69AE0</Message>

     <Timestamp>2018-11-18T14:50:21.4609586Z</Timestamp>

     <ExceptionRetriable>false</ExceptionRetriable>

     <ExceptionSource i:nil="true" />

     <InnerFault>

       <ActivityId>8f6c3a5a-5018-478d-944d-8cc1f1159e81</ActivityId>

       <ErrorCode>-2147160033</ErrorCode>

       <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic&quot; />

       <Message>The SavedQueryVisualization(74a622c0-5193-de11-97d4-00155da3b01e) component cannot be deleted because it is referenced by 6 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.</Message>

       <Timestamp>2018-11-18T14:50:21.4619618Z</Timestamp>

       <ExceptionRetriable>false</ExceptionRetriable>

       <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" />

    </OrganizationServiceFault>

  • Prashant_ Profile Picture
    Prashant_ 1,040 on at
    RE: Deleting a System Chart

    Hi,

    I have tried same thing after reading your post and got same error.If you try to manage its properties you may find it's "can be deleted" property set to false.So you cannot delete it.I don't think you need to delete this chart simply remove it from your solution.

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Deleting a System Chart

    Hi,

    Can you please share the details error log here,

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,990 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,656 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans