1
Vote

Doesn't work in CRM 2015 Update 0.2

description

If you import this solution in CRM 2015 Update 0.2 and later you refresh the UI you get this error:
<Message>El objeto no acepta la propiedad o el método 'selectNodes'</Message>

I think that the solution is not imported with all ribbon customizations, and therefore the SiteMap Document is not generated successfully... It's strange because CRM don't notify us about this issue when it finished to import the solution.
: (

comments

sermoc wrote Feb 16, 2016 at 2:07 PM

In Chrome works well, but in IE 11 you need change the next condition in oneclicknav.js:

if (window.ActiveXObject) {
by
if (window.ActiveXObject !== undefined) {

Now it works well.
Waiting in CRM 2015 On-Premise the new look & feel that already exists in CRM Online.

klemetsrud wrote Feb 16, 2016 at 9:21 PM

Yes it appears to work in Edge and Chrome just fine, but we do get that error in the developer tools. I tried putting your fix in by editing the file in the solution in notepad and replacing the 2 items, with what you suggested but that doesn't seem to work. Would you mind outlining exactly how you were able to fix it yourself manually?

Thanks!

sermoc wrote Feb 17, 2016 at 7:58 AM

you must replace it in (window.ActiveXObject && typeof n.selectSingleNode != "undefined") too.

Check the source code. You must find 3 occurrences by "window.ActiveXObject".

If above does not help, What error are you getting?

Regards

klemetsrud wrote Feb 17, 2016 at 12:52 PM

That is more my question. Are we to take the source code and do all the changes there and re-package it OR can we simply download the managed solution, open the resource file with a text editor and replace it there and then push the solution?

We tried the second thing I said, and it didn't seem to fix the issue. Also, are you sure it's !== undefined?

or is it != "undefined".

Thanks!

klemetsrud wrote Feb 17, 2016 at 2:00 PM

It does say similar here: http://forums.asp.net/t/2004732.aspx?SelectNode+and+SelectSingle+Node+are+not+working+in+IE11

So it looks like it is !==, sorry. I'll see if we can make that work at all using method 2, if not we may have to go with the source code perhaps?

klemetsrud wrote Feb 17, 2016 at 4:04 PM

It turns out we were not re-zipping the file properly or something of that nature. The people I was working with edited the file from the managed solution and added the syntax exactly as you said in 3 locations in the file..and then overwrote the file in the zip, apparently this step was lost on previous attempts. It is indeed working.

Thank you!

jeverett wrote Jun 17, 2016 at 3:38 PM

I downloaded the solution to attempt to apply this fix but when I open it it prompts for tfs credentials since the project is under source control. How did you get around that without credentials?