Support Portal ContactGet in touch

Upgrading CRM 2011 - Fixing the SiteMap after Upgrade

   Words by CRM Consultancy

   on 25/08/2016 10:00:00

When upgrading CRM 2011 to the newer versions of Dynamics CRM, this can trigger hidden SiteMap and Ribbon errors – and as these manifest as Javascript errors, these can be difficult to diagnose and resolve.

One such is where accessing Cases in the CRM Service Menu stubbornly fails to load, instead triggering a Javascript error – and this javascript error is suitably ambiguous:


The updated CRM 2016 SiteMap


Javascript Error in CRM 2013 to 2016 when the SiteMap contains references specific to CRM 2011

Error Message: Unable to get property ‘toString’ of undefined or null reference

After investigation, and reading the following community post,, this is down to how the SiteMap XML upgrades from CRM 2011 to 2013.

Specifically removing references in the SiteMap.xml for Url=’/CS/DynamicsPage.aspx’:


Deleting the problem Url=’/CS/home_cases.aspx’

The example above refers to the Case (‘incident’) Entity, this Url=’something.aspx’ can appear several times in the SiteMap for the System Entities in the Service Module of CRM – so Articles, Cases and Contracts.

Once all these have been removed, and the SiteMap reimported into CRM, this should resolve the Javascript error in CRM 2016.

For information to how to edit the SiteMap in this fashion, the following MSDN article can be helpful:

  • "Paul has made a real difference to how my team of 24 people record and store valuable customer data and sales opportunities. Highly recommended."

    James, Operations Director

  • "Understanding your business allows us to advise when to implement aspects of CRM and, likewise, when not to."

    Paul McQuillan, Managing Director

  • "Dynamics 365 and CRMCS have made a real lasting difference to our business, allowing us to replace older systems that were holding back our performance."

    Grahame, Chief Operating Officer

  • "James worked well with us to help connect CRM with Outlook and relate how this might benefit our team using CRM for Property Care."

    Natalie, Property Care Supervisor

  • "Matt was really good with helping us run User Testing on the new Compliance Module of our CRM System."

    Tom, Compliance Administrator

Prefer to go old-school?

Write to us using the below addresses.

Head Office
CRM Consultancy
61 Oxford Street
M1 6EQ

London Office
CRM Consultancy London
Grosvenor Avenue

Content © CRM Consultancy.