web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

IE11 crash when extending optionset with jscript on Windows 8.1

(0) ShareShare
ReportReport
Posted on by

Hi,

we are facing a serious issue on CRM 2013 On Premise with some jscript customization.

We realized that anytime we remove an option from an optionset with the supported method ctrlObj.removeOption(value), this would make the browser crash completely (message: Internet Explorer has stopped working) when (and only when) the user changes the value of this optionset.

This only happens on our new Windows 8.1 tablets, not on our Windows 7 laptops.

All our computers are running IE11 and Office 2013 (32-bit). It always works in other browsers like Chrome, and it will also crash in the Outlook client.

Everything is running on Update Rollup 2.

If I debug IE when it crashes, this is the error I get:

Unhandled exception at 0x62D27ADA (mshtml.dll) in iexplore.exe: 0xC0000005: Access violation reading location 0x00000024.

Anyone else facing that issue?

Suggestions are welcome!

Fred

*This post is locked for comments

I have the same question (0)
  • Nishant Rana Profile Picture
    11,325 Microsoft Employee on at

    Hi Frédéric,

    Were you able to fix the issue ?

    Regards,

    Nishant Rana

  • fredshift Profile Picture
    on at

    Hi Rana,

    no, we have implemented a workaround instead (showing / hiding picklist attributes).

    I guess I should have opened a support case at MS, but we were in a rush at that time.

    By the way, it is still happening on CRM 2013 SP1.

    Regards

  • Nishant Rana Profile Picture
    11,325 Microsoft Employee on at

    Thanks for your prompt response. Yes we are still getting this issue.

    Thanks again Frederic

  • Wayne Walton Profile Picture
    13,730 on at

    What plugins and add-ons do you have running in IE?  This error is frequently related to IE add-ons.

  • Community Member Profile Picture
    on at

    We are facing the same issue as well (On-Premesis with SP1). We're able to successfully remove all the options we need. But once the method exits IE11, and only IE11, crashes. We have no addons installed on IE.

    Tested with IE8 and it works fine.

  • Bas van de Sande Profile Picture
    4,383 on at

    Hi Frédéric,

    can you share your workaround with us? Alexandra C is facing the same problems you were having

    thanks in advance

    Bas

  • fredshift Profile Picture
    on at

    Hi,

    the workaround is to create 2 or more picklist fields that contain only the values that I want to show. Then with some jscript I just hide all the picklists except the one that has the correct values. And I also have an onChange event to copy the selected option to the original field. Not pretty but it works.

    Btw we are on CRM 2015 now and this bug is still there. I will have one developper looking at it when we have more time but I have no guarantee that he will do better than me.

  • Bas van de Sande Profile Picture
    4,383 on at

    Thanks Frédéric,

    that's indeed a nasty workaround. No wondering why everyone is avoiding IE11 ;)

    Bas

  • Verified answer
    T.Koller Profile Picture
    145 on at

    I had the exact same problem.

    I solved it by just putting the removeOption-Function inside a setTimeout.

    setTimeout(function() {

    Xrm.Page.getControl("yourfield").removeOption(1);

    }, 1000);

    hope this helps.

    Tobias

  • fredshift Profile Picture
    on at

    Thank you so much Tobias !

    Your solution worked perfectly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans