locked
Error with site map RRS feed

  • Question

  • I have a problem with a heavily customised site map using CRM as an xrm app.  The site map validates fine with Patrick Verbeeten's excellent CRMXMLEdit tool, it also works fine with MSDYCRM40_DEmonstrationTools.exe, and also loads into CRM with no issues.  I am on UR7.  I would be grateful of any advise on how to resolve this.  I get the following error:   

    Microsoft Dynamics CRM Error Report Contents

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
     <Message>&#39;_oLastSelected.parentElement.parentElement&#39; is null or not an object</Message>
     <Line>486</Line>
     <URL>/_static&#47;_nav&#47;nav.htc</URL>
     <PageURL>/NID&#47;_root&#47;navbarpage.aspx&#63;area&#61;Welcome</PageURL>
     <Function>getSelectedArea&#40;&#41;</Function>
     <CallStack>
       <Function>getSelectedArea&#40;&#41;</Function>
     </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
     <BrowserUserAgent>Mozilla&#47;4.0 &#40;compatible&#59; MSIE 7.0&#59; Windows NT 5.2&#59; Trident&#47;4.0&#59; .NET CLR 1.1.4322&#59; InfoPath.1&#59; .NET CLR 2.0.50727&#59; .NET CLR 3.0.04506.30&#59; .NET CLR 3.0.04506.648&#59; .NET CLR 3.0.4506.2152&#59; .NET CLR 3.5.30729&#41;</BrowserUserAgent>
     <BrowserLanguage>en-us</BrowserLanguage>
     <SystemLanguage>en-gb</SystemLanguage>
     <UserLanguage>en-gb</UserLanguage>
     <ScreenResolution>1280x800</ScreenResolution>
     <ClientName>Web</ClientName>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>2057</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>2057</UserCulture>
        <OrgID>&#123;7431542B-BE51-DE11-A44D-0050569A3A40&#125;</OrgID>
        <UserID>&#123;BA814C31-BE51-DE11-A44D-0050569A3A40&#125;</UserID>
        <CRMVersion>4.0.7333.2138</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
     <Message>Object doesn&#39;t support this property or method</Message>
     <Line>186</Line>
     <URL>/NID&#47;_root&#47;left.aspx&#63;area&#61;Interventions&#38;group&#61;Interventions&#38;subarea&#61;new_intervention</URL>
     <PageURL>/NID&#47;_root&#47;left.aspx&#63;area&#61;Interventions&#38;group&#61;Interventions&#38;subarea&#61;new_intervention</PageURL>
     <Function>loadArea&#40;sAreaId&#41;</Function>
     <CallStack>
       <Function>loadArea&#40;sAreaId&#41;</Function>
     </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
     <BrowserUserAgent>Mozilla&#47;4.0 &#40;compatible&#59; MSIE 7.0&#59; Windows NT 5.2&#59; Trident&#47;4.0&#59; .NET CLR 1.1.4322&#59; InfoPath.1&#59; .NET CLR 2.0.50727&#59; .NET CLR 3.0.04506.30&#59; .NET CLR 3.0.04506.648&#59; .NET CLR 3.0.4506.2152&#59; .NET CLR 3.5.30729&#41;</BrowserUserAgent>
     <BrowserLanguage>en-us</BrowserLanguage>
     <SystemLanguage>en-gb</SystemLanguage>
     <UserLanguage>en-gb</UserLanguage>
     <ScreenResolution>1280x800</ScreenResolution>
     <ClientName>Web</ClientName>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>2057</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>2057</UserCulture>
        <OrgID>&#123;7431542B-BE51-DE11-A44D-0050569A3A40&#125;</OrgID>
        <UserID>&#123;BA814C31-BE51-DE11-A44D-0050569A3A40&#125;</UserID>
        <CRMVersion>4.0.7333.2138</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>

     

    Thursday, February 18, 2010 4:59 PM

Answers

  • I had the same error recently.  It resolved after eliminating all duplicates of Id and ResourceId in the XML.

    <Area Id="Welcome" Title="Welcome" Icon="/_imgs/area/18_debug.gif" ShowGroups="true">
    <Group Id="Welcome" Title="Welcome">
    <SubArea Id="Welcome" Url="\ISV\Welcome_NID.html" Icon="/_imgs/area/18_debug.gif" Title="Welcome"/>
    </Group>
    </Area>
    <Area Id="Interventions" Title="Interventions" Icon="/_imgs/_nid/interventions_24.gif" ShowGroups="true">
    <Group Id="Interventions" Title="Interventions">
    <SubArea Id="new_intervention" Entity="new_intervention"/>
    <SubArea Id="new_delivery" Entity="new_delivery"/>
    </Group>
    </Area>


    I hope it helps.
    -Andrew
    • Marked as answer by adyscaife Monday, February 22, 2010 10:36 AM
    Monday, February 22, 2010 3:05 AM

All replies

  • You have in this error information which line numbers are causing a problems:

    <Line>486</Line>

    <Line>186</Line>

    You need to analyze them. Or paste them here

    My Dynamics CRM Blog: http://bovoweb.blogspot.com
    Friday, February 19, 2010 2:32 PM
  • Sorry, can you explain.  What do the numbers refer to?  How can I analyse them?
    Friday, February 19, 2010 4:01 PM
  • They refer to the line in your sitemap xml file. Open your sitemap.xml file and use the 'Edit->Go To' option to locate the line numbers. Copy the text from line 486 and 186 and paste them here.
    Saturday, February 20, 2010 3:25 PM
    Moderator
  • I looked at that but my sitemap does not have that many lines.  The entire sitemap is here:
      <ImportExportXml version="4.0.0.0" languagecode="1033" generatedBy="OnPremise">
    <Entities/>
    <Roles/>
    <Workflows/>
    <SiteMap>
    <SiteMap>
    <Area Id="Welcome" Title="Welcome" Icon="/_imgs/area/18_debug.gif" ShowGroups="true">
    <Group Id="Welcome" Title="Welcome">
    <SubArea Id="Welcome" Url="\ISV\Welcome_NID.html" Icon="/_imgs/area/18_debug.gif" Title="Welcome"/>
    </Group>
    </Area>
    <Area Id="Interventions" Title="Interventions" Icon="/_imgs/_nid/interventions_24.gif" ShowGroups="true">
    <Group Id="Interventions" Title="Interventions">
    <SubArea Id="new_intervention" Entity="new_intervention"/>
    <SubArea Id="new_delivery" Entity="new_delivery"/>
    </Group>
    </Area>
    <Area Id="Directories" Title="Directories" Icon="/_imgs/resourcecenter_24x24.gif" ShowGroups="true">
    <Group Id="Organisations" Title="Organisations">
    <SubArea Id="account" Entity="account"/>
    </Group>
    <Group Id="People" Title="People">
    <SubArea Id="contact" Entity="contact"/>
    </Group>
    <Group Id="Locations" Title="Locations">
    <SubArea Id="new_location" Entity="new_location"/>
    </Group>
    </Area>
    <Area Id="Reports" Title="Reports" Icon="/_imgs/_nid/report_24.gif" ShowGroups="true">
    <Group Id="Reports" Title="Reports">
    <SubArea Id="Reports" Title="Reports" Url="/CRMReports/home_reports.aspx" Icon="/_imgs/_nid/report_24.gif"/>
    </Group>
    </Area>
    <Area Id="PersonalSettings" Title="Personal Settings" Icon="/_imgs/workplace_24x24.gif" ShowGroups="true">
    <Group Id="PersonalSettings" Title="Personal Settings">
    <SubArea Id="PersonalSettings" Url="/tools/personalsettings/dialogs/personalsettings.aspx" Icon="/_imgs/workplace_24x24.gif" Title="Personal Settings"/>
    </Group>
    </Area>
    <Area Id="ISMGAdministration" Title="ISMG Administration" Icon="/_imgs/_nid/advancedsettings_24.gif" ShowGroups="true">
    <Group Id="LookupValues" Title="Lookup Values">
    <SubArea Id="new_agreementtype" Entity="new_agreementtype"/>
    <SubArea Id="new_approvaltype" Entity="new_approvaltype"/>
    <SubArea Id="new_category" Entity="new_category"/>
    <SubArea Id="new_contactrole" Entity="new_contactrole"/>
    <SubArea Id="new_effectiveness" Entity="new_effectiveness"/>
    <SubArea Id="new_ismgflags" Entity="new_ismgflags"/>
    <SubArea Id="new_locationtype" Entity="new_locationtype"/>
    <SubArea Id="new_offenderattribute" Entity="new_offenderattribute"/>
    <SubArea Id="new_offenderattributetype" Entity="new_offenderattributetype"/>
    <SubArea Id="new_offendersegment" Entity="new_offendersegment"/>
    <SubArea Id="new_offendersegmenttype" Entity="new_offendersegmenttype"/>
    <SubArea Id="new_organisationtype" Entity="new_organisationtype"/>
    <SubArea Id="new_policytheme" Entity="new_policytheme"/>
    <SubArea Id="new_prisoncategories" Entity="new_prisoncategories"/>
    <SubArea Id="new_programmetype" Entity="new_programmetype"/>
    <SubArea Id="new_region" Entity="new_region"/>
    <SubArea Id="new_targetgroups" Entity="new_targetgroups"/>
    </Group>
    <Group Id="StandardAims" Title="Standard Aims">
    <SubArea Id="new_standardaim" Entity="new_standardaim"/>
    </Group>
    <Group Id="StaffCostAdmin" Title="Staff Cost Admin">
    <SubArea Id="new_staffcost" Entity="new_staffcost"/>
    <SubArea Id="new_staffcostmultipliers" Entity="new_staffcostmultipliers"/>
    </Group>
    <Group Id="WhatsNew" Title="Whats New">
    <SubArea Id="new_whatsnew" Entity="new_whatsnew"/>
    </Group>
    </Area>
    <Area Id="SystemSettings" Icon="/_imgs/settings_24x24.gif" DescriptionResourceId="Settings_Area_Description" Title="System Settings" ShowGroups="true">
    <Group Id="InbuiltSettings" Title="Inbuilt Settings">
    <SubArea Id="ImportData" Url="/workplace/home_import.aspx" Icon="/_imgs/area/18_import.gif" Title="Import Data"/>
    <SubArea Id="nav_administration" ResourceId="Homepage_Administration" DescriptionResourceId="Administration_SubArea_Description" Icon="/_imgs/ico_18_administration.gif" Url="/tools/Admin/admin.aspx" AvailableOffline="false"/>
    <SubArea Id="nav_businessmanagement" ResourceId="Homepage_BusinessManagement" DescriptionResourceId="BizManagement_SubArea_Description" Icon="/_imgs/ico_18_busmanagement.gif" Url="/tools/business/business.aspx" AvailableOffline="false"/>
    <SubArea Id="Homepage_Import" Title="Homepage_Import" Url="/workplace/home_import.aspx" Icon="/_imgs/area/18_import.gif"/>
    <SubArea Id="nav_syscust" ResourceId="Homepage_SystemCustomization" DescriptionResourceId="Customization_SubArea_Description" Icon="/_imgs/area/18_syscust.gif" Url="/tools/systemcustomization/systemcustomization.aspx" AvailableOffline="false"/>
    <SubArea Id="nav_template" ResourceId="Homepage_Template" DescriptionResourceId="Template_SubArea_Description" Icon="/_imgs/ico_18_templates.gif" Url="/tools/templates/templates.aspx" AvailableOffline="false"/>
    <SubArea Id="nav_workflow" Entity="workflow" DescriptionResourceId="Workflow_SubArea_Description" AvailableOffline="false"/>
    <SubArea Id="nav_datamanagement" ResourceId="Homepage_DataManagement" DescriptionResourceId="DataManagement_SubArea_Description" Icon="/_imgs/ico_18_datamanagement.gif" Url="/tools/DataManagement/datamanagement.aspx" AvailableOffline="false"/>
    <SubArea Id="nav_systemjobs" ResourceId="Homepage_SystemJobs" DescriptionResourceId="SystemJobs_SubArea_Description" Entity="asyncoperation" Url="/tools/business/home_asyncoperation.aspx" AvailableOffline="false"/>
    </Group>
    </Area>
    </SiteMap>
    </SiteMap>
    <EntityMaps/>
    <EntityRelationships/>
    <Languages>
    <Language>1033</Language>
    </Languages>
    </ImportExportXml>
    • Edited by adyscaife Saturday, February 20, 2010 4:42 PM typo
    Saturday, February 20, 2010 4:38 PM
  • Sorry, should have read you error report properly. The first item is an error in the  getSelectedArea function on the /_static/_nav/nav.htc file. This is probably caused when you click on a menu link am I right? If it is then double check your entity names in the sitemap.xml file.

    Firstly check

    <Area Id="Interventions" Title="Interventions" Icon="/_imgs/_nid/interventions_24.gif" ShowGroups="true">
    <Group Id="Interventions" Title="Interventions">
    <SubArea Id="new_intervention" Entity="new_intervention"/>
    <SubArea Id="new_delivery" Entity="new_delivery"/>
    </Group>
    </Area>


    Saturday, February 20, 2010 5:16 PM
    Moderator
  • >>This is probably caused when you click on a menu link am I right?
    Correct

    >> Firstly check

    <Area Id="Interventions" Title="Interventions" Icon="/_imgs/_nid/interventions_24.gif" ShowGroups="true">
    <Group Id="Interventions" Title="Interventions">
    <SubArea Id="new_intervention" Entity="new_intervention"/>
    <SubArea Id="new_delivery" Entity="new_delivery"/>
    </Group>
    </Area>


    This checks out ok.  What should I look at next?  Perhaps I should also mention that one of my site map links is to a static html page, not sure if this is relevant but it is the firt time I have done it: <SubArea Id="Welcome" Url="\ISV\Welcome_NID.html" Icon="/_imgs/area/18_debug.gif" Title="Welcome"/>


    Saturday, February 20, 2010 7:30 PM
  • Try using / instead of \ e.g. Url="/ISV/Welcome_NID.html"

    Let me know if that works.
    http://bingsoft.wordpress.com/
    Saturday, February 20, 2010 7:51 PM
    Moderator
  • I had the same error recently.  It resolved after eliminating all duplicates of Id and ResourceId in the XML.

    <Area Id="Welcome" Title="Welcome" Icon="/_imgs/area/18_debug.gif" ShowGroups="true">
    <Group Id="Welcome" Title="Welcome">
    <SubArea Id="Welcome" Url="\ISV\Welcome_NID.html" Icon="/_imgs/area/18_debug.gif" Title="Welcome"/>
    </Group>
    </Area>
    <Area Id="Interventions" Title="Interventions" Icon="/_imgs/_nid/interventions_24.gif" ShowGroups="true">
    <Group Id="Interventions" Title="Interventions">
    <SubArea Id="new_intervention" Entity="new_intervention"/>
    <SubArea Id="new_delivery" Entity="new_delivery"/>
    </Group>
    </Area>


    I hope it helps.
    -Andrew
    • Marked as answer by adyscaife Monday, February 22, 2010 10:36 AM
    Monday, February 22, 2010 3:05 AM
  • This did not help.  In fact the page cannot be displayed at all with / instead of \
    Monday, February 22, 2010 10:36 AM
  • Eliminating all duplicates of Id and ResourceId in the xml worked.  Thank you Andrew!
    Monday, February 22, 2010 10:38 AM