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 365 | Integration, Dataverse...
Suggested Answer

Sudden Script loading errors across different Dynamics 365 On-premise Organizations

(1) ShareShare
ReportReport
Posted on by 22
Some, but not all users, are experiencing script load errors while using Google Chrome Browser (Version 126.0.6478.127 (Official Build) (64-bit)), but not using Edge. 
There seems to be two types of errors, one is when clicking a record, it just get stuck on loading:
 
 
The second error occurs when navigating from a subgrid or lookup field to another form, the main "scripts" seem to be loaded fine, but related libraries that are also loaded, the functions seems to be missing.
Both errors seems to be related to the CustomScriptsManager
 
 
Error occurs on several different On-Premise installations under the following version: 
Microsoft Dynamics 365Version 1612 (9.0.47.8) (DB 9.0.47.8) 
 
At first i could not reproduce the error (even though i was on the same version of Chrome), but after clearing my entire cache (all time), I was able to reproduce the error as well. 
Uninstall Chrome (and installing v 116) seems to fix the error, but as we have group policy for auto updates, the error starts again as soon as the browser is updated to v126. I´ve searched around, but only found old examples of this, on Chrome version 73, and a much older dynamics release, so i am unsure if the problems are related. 
Do anyone have any insights as to what could be the cause ?
It seems like it could be somehow cache related, as i can only force the error to occur after clearing the cache.
Clearing the cache on Edge however, does not cause the error to occur.
Best regards,
Emil 
I have the same question (0)
  • CP-FR-67 Profile Picture
    47 on at
    We've got exactly the same issue...
    It's getting worse and worse as more and more customers have the update, have you found a solution other than using Edge ?
     
  • egvi Profile Picture
    22 on at
    So far only quick fix is to recommend our users to use Edge. 
    I´ve also had people respond on Chrome Community, and one person actually pointed out what the error is, Dynamics 365 V9.0.51 On premise not working In Chrome browser - Google Chrome Community, but I'm not sure we´ll see a fix for it if its with the Microsoft way of having implemented the script loading (that's what he suggested).
    The only other way that seems to be working, is upgrading to Dynamics version 9.1, we have tried that on one of our development system, and there the script loading seem to be working fine.
    Best regards,
    Emil
     
  • CP-08070922-0 Profile Picture
    6 on at
    Same issue here.
    We found out that it works with Chrome v122 but that is also only a workaround because of security issues.
    It also fixes the error if you use legacy form rendering but that causes other problems in our environment.
    Any other solution?  
     
  • MK-08071500-0 Profile Picture
    4 on at
    Same issue here.
    Not possible for us to upgrade to 9.1
  • MD-04060851-0 Profile Picture
    2 on at
    Same issue here, with Dynamics 365 CE, v. 8.2 onpremise.
  • CP-FR-67 Profile Picture
    47 on at
    Here is a workaround with CRM 8.0, not optimal at all but apparently it seems to work : 
     
    Edit file : \_static\form\formcontrols.js
     
    and replace function $BQ_1 by :
    $BQ_1: function() {
        var ctxt = this;
        if (!IsNull(this.$5J_1) && this.$8o_1) {
            setLoadingText(Xrm.Internal.getResourceString('LOCID_PAGE_LOADING_EXECUTE_ON_LOAD'));
            var l = this.$5J_1.length;
            for (var i = 0; i < l; i++) {
                var func = Mscrm.TurboForm.Control.CustomScriptsManager.$1k.contentWindow[this.$5J_1[0].$7S_1];
                if (typeof func === "function") {
                    var $v_0 = Array.dequeue(this.$5J_1);
                    Mscrm.TurboForm.Control.CustomScriptsManager.$1k.contentWindow[$v_0.$7S_1]($v_0.$7s_1);
                } else
                    break;
            }
            if (this.$5J_1.length > 0)
                setTimeout(function() {
                    ctxt.$BQ_1();
                }, 100);
        }
    }

    ​​​​​​​
  • PG-09071540-0 Profile Picture
    10 on at
     
    I can't find this function on a formcontrol.js in Dynamics 8.2, but I find a $BQ_2, do you think it's the same ?
     
    Thanks for your reply
  • CP-08070922-0 Profile Picture
    6 on at
    In Dynamics 9.0 I can not find $BQ_1 or $BQ_2 in formcontrol.js
    Do some one have a workaround for Dynamics 9.0?
  • CP-FR-67 Profile Picture
    47 on at
     
    Can you copy/paste $BQ_2 ? (that function doesn't exist in 8.0)
    or do you have another function with this kind of call :

     var $v_0 = Array.dequeue(this.$5J_1);
     Mscrm.TurboForm.Control.CustomScriptsManager.$1k.contentWindow[$v_0.$7S_1]($v_0.$7s_1);
    ?
  • PG-09071540-0 Profile Picture
    10 on at
    Here the complete function   
     
      $Cj_1: function() {
            if (!IsNull(this.$5u_1) && this.$7i_1) {
                setLoadingText(Xrm.Internal.getResourceString('LOCID_PAGE_LOADING_EXECUTE_ON_LOAD'));
                while (this.$5u_1.length > 0) {
                    var $v_0 = Array.dequeue(this.$5u_1);
                    Mscrm.TurboForm.Control.CustomScriptsManager.frameElement.contentWindow[$v_0.$8G_1]($v_0.$8f_1);
     
     
    And for the $BQ_2
     this.$BQ_2 = [ [ '#ffffcc', '#ffff99', '#ffff66', '#ffff33', '#ffff00', '#cccc00', '#999900', '#666600', '#333300' ], [ '#ffccff', '#ff99ff', '#ff66ff', '#ff33ff', '#ff00ff', '#cc00cc', '#990099', '#660066', '#330033' ], [ '#ccffff', '#99ffff', '#66ffff', '#33ffff', '#00ffff', '#00cccc', '#009999', '#006666', '#003333' ], [ '#ffcccc', '#ff9999', '#ff6666', '#ff3333', '#ff0000', '#cc0000', '#990000', '#660000', '#330000' ], [ '#ccffcc', '#99ff99', '#66ff66', '#33ff33', '#00ff00', '#00cc00', '#009900', '#006600', '#003300' ], [ '#ccccff', '#9999ff', '#6666ff', '#3333ff', '#0000ff', '#0000cc', '#000099', '#000066', '#000033' ], [ '#ffffff', '#cccccc', '#999999', '#666666', '#333333', '#ffcc00', '#ff9900', '#ff6600', '#ff3300' ], [ '#000000', '#ccff00', '#99ff00', '#66ff00', '#33ff00', '#00ccff', '#0099ff', '#0066ff', '#0033ff' ] ];
        Mscrm.HtmlBarControl.initializeBase(this, [ element ]); 
     
    But I don't think it's usefull.
     
    Thanks for your help :)
     

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 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans