locked
Can't execute code from a freed script RRS feed

  • Question

  • Hello Devs,

    With my solution installed over a Dynamics CRM 2015 Online instance on Internet Explorer browser (10 & 11)...

    I am facing following script error while navigating from an Account to another account using account form navigation buttons only after making some changes on the form.

    Works perfect in other browsers.

    Any ideas how to fix this?


    blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk


    • Edited by Khadim Ali Thursday, September 3, 2015 10:30 AM
    Thursday, September 3, 2015 10:29 AM

Answers

  • After debugging my custom scripts I found that an ajax call was returning with this error while the CRM account/contact etc page was being navigated to another record after changing data. (with auto-save on).

    window.parent.$.ajax({ 
    
    ....
    
    });
    
    

    Wrapping the call in a setTimeout( ... ) resolved the issue.

    Details of this error:


    blog: http://technologynotesforyou.wordpress.com | skype: ali.net.pk


    • Marked as answer by Khadim Ali Monday, September 21, 2015 3:55 PM
    • Edited by Khadim Ali Monday, September 21, 2015 3:55 PM
    Monday, September 21, 2015 3:55 PM