Sitecore - Launchpad Exception after Removing Broken Links | Microsoft
Microsoft Blog

Sitecore – Launchpad Exception after Removing Broken Links

A couple of days ago I accidentally removed broken links in the Core database of a new Sitecore instance using the Remove Broken Links tool at http://{your-sitecore-url}/sitecore/admin/RemoveBrokenLinks.aspx. The next time I logged into Sitecore, I got the following exception:

ExperienceAnalyticsLineChartViewModel Exception

The model item passed into the dictionary is of type ‘Sitecore.Mvc.Presentation.RenderingModel’, but this dictionary requires a model item of type ‘Sitecore.ExperienceAnalytics.Client.Mvc.Presentation.ExperienceAnalyticsLineChartViewModel’.

After some digging around I found that the Remove Broken Links tool erroneously deleted the Model property of the ExperienceAnalyticsLineChart rendering in the Core database. Fortunately, the fix is easy.

  1. Navigate to the Core database in the Content Editor of your Sitecore instance at http://{your-sitecore-url}/sitecore/shell/default.aspx?sc_content=core.
  2. Navigate to the ExperienceAnalyticsLineChart rendering in the item tree at /sitecore/client/Applications/ExperienceAnalytics/Common/Layouts/Renderings/ExperienceAnalyticsLineChart.
  3. Set the Model field to Sitecore.ExperienceAnalytics.Client.Mvc.Presentation.ExperienceAnalyticsLineChartViewModel, Sitecore.ExperienceAnalytics.Client.
  4. Save the item and click OK if prompted that the item contains broken links.
  5. Log back into Sitecore and the Launchpad will load.
ExperienceAnalyticsLineChart Rendering

Set the Model field value to Sitecore.ExperienceAnalytics.Client.Mvc.Presentation.ExperienceAnalyticsLineChartViewModel, Sitecore.ExperienceAnalytics.Client and save the rendering.

ExperienceAnalyticsLineChart Broken Links Warning

Click OK if prompted that the item ExperienceAnalyticsLineChart contains broken links.

Let me know if this helped you in the comments!

Subscribe to the Microsoft Weekly Digest

* indicates required

Sitecore MVP & Lead Technical Consultant

3 thoughts on “Sitecore – Launchpad Exception after Removing Broken Links

  1. Thanks so much for this – I made the exact same error and was thinking I would need to reinstall – You saved me a few hours worth of work!! 🙂

  2. chaturanga ranatunga

    thanks for sharing your experience.
    We also faced lot of issues in one of our upgrade projects after running broken links tool. It is doing lot of things which it is not expected to do. 🙂

Leave a Reply

Perficient Microsoft Blog

Insights, best practices and technical perspectives to help you leverage your investment in Microsoft technology solutions to power your business growth