1
Vote

CRM 2013 SP1 UR4 no dropdown menu

description

I installed CRM 2013 SP1 UR4 on my dev environment and I am now getting a javascript error everytime I switch screens and the dropdown menu is no longer appearing.

Microsoft Dynamics CRM Error Report Contents

<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Object doesn't support property or method 'selectNodes'</Message>
<Line>1</Line>
<URL></URL>
<PageURL>/_root/homepage.aspx?etc=9100&pagemode=iframe&sitemappath=Workplace%7cMyWork%7cnav_reports</PageURL>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'selectNodes'</Function>
<CallStack>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'selectNodes'</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; rv:11.0) like Gecko</BrowserUserAgent>
<BrowserLanguage>en-US</BrowserLanguage>
<SystemLanguage>en-US</SystemLanguage>
<UserLanguage>en-US</UserLanguage>
<ScreenResolution>1440x900</ScreenResolution>
<ClientName>Web</ClientName>
<ClientTime>2016-11-15T10:33:41</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{0C1992C4-3B09-E411-80BE-00155D512D9B}</OrgID>
<UserID>{48057BC0-626E-E411-80C9-00155D512EA5}</UserID>
<CRMVersion>6.1.4.145</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>

<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Object doesn't support property or method 'selectNodes'</Message>
<Line>1</Line>
<URL></URL>
<PageURL>/_root/homepage.aspx?etc=4&pagemode=iframe&sitemappath=SFA%7cSFA%7cnav_leads</PageURL>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'selectNodes'</Function>
<CallStack>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'selectNodes'</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; rv:11.0) like Gecko</BrowserUserAgent>
<BrowserLanguage>en-US</BrowserLanguage>
<SystemLanguage>en-US</SystemLanguage>
<UserLanguage>en-US</UserLanguage>
<ScreenResolution>1440x900</ScreenResolution>
<ClientName>Web</ClientName>
<ClientTime>2016-11-15T10:34:00</ClientTime>
</ClientInformation>
</CrmScriptErrorReport>

comments

mriley7499 wrote Nov 21, 2016 at 5:35 PM

Wow - that took some research. Apparantly, you need to replace all three instances of window.ActiveXObject with window.ActiveXObject!==undefined in remcod_oneclicknav.js in order to get the navigation menus back. This appears to be an IE 11 issue. It did not occur with CRM 2013 SP1 UR3 but as soon as I switched to UR4 - the error started appearing. I have been on IE 11 the whole time.

bahramzy wrote Jun 8 at 1:09 PM

Hi mrley7499

Thanks for sharing your solution.
How did you applied this solution and how did you update the remcod_oneclicknav.js file?

Thanks

mriley7499 wrote Jun 8 at 3:09 PM

Hi bahramzy,

I went into customize the system and looked for remcod_oneclicknav.js under web resources. I then edited it in a text editor and searched for window.ActiveXObject. If I remember correctly, it used to say
if(window.ActiveXObject&&typeof n.selectSingleNode!="undefined" and I had to replace window.ActiveXObject with window.ActiveXObject!==undefined. see below
if(window.ActiveXObject!==undefined&&typeof n.selectSingleNode!="undefined"

mriley7499