Skip to main content

Microsoft

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!

Thoughts on “Sitecore – Launchpad Exception after Removing Broken Links”

  1. 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. 🙂

  2. 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!! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Corey Smith, Sitecore MVP & Lead Technical Consultant

I'm a Sitecore MVP and Lead Technical Consultant at Perficient focusing on Sitecore and custom .NET development.

More from this Author

Categories
Follow Us