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 :
Service | Customer Service, Contact Center, Fie...
Answered

Issues with loading Record Creation and Update Rule form

(1) ShareShare
ReportReport
Posted on by 15

This issue is stumping me. I am getting a Script Error when attempting to load the New Record Creation and Update Rule form. This is running on Dynamics CRM Online.

pastedimage1599254047299v1.png

When downloading the log file, I get the following stack trace:

TypeError: Cannot read property 'JSTypes' of undefined
at Function.Mscrm.ConvertRuleMainSystemLibraryWebResource.$1 (xxx.crm.dynamics.com/.../ConvertRule_main_system_library.js:1:4355)
at Object.Mscrm.ConvertRuleMainSystemLibraryWebResource.form_onload [as Form_onload] (xxx.crm.dynamics.com/.../ConvertRule_main_system_library.js:1:551)
at _u.executeFunction (xxx.crm.dynamics.com/.../app.js
at _u.execute (xxx.crm.dynamics.com/.../app.js
at xxx.crm.dynamics.com/.../app.js
at o (xxx.crm.dynamics.com/.../app.js
at ae._executeIndividualEvent (xxx.crm.dynamics.com/.../app.js
at ae._executeEventHandler (xxx.crm.dynamics.com/.../app.js
at Object.execute (xxx.crm.dynamics.com/.../app.js
at E._executeSyncAction (xxx.crm.dynamics.com/.../app.js

After running this issue through the script debugger, I find in the JavaScript file the following code, with the issue highlighted below:

pastedimage1599254208428v2.png

The issue is that Mscrm.InternalUtilities is coming back as undefined, so trying to access JSTypes fails. I have not done any modification to the Record Creation and Update Rule entity as it is a core Customer Service Hub entity. I would put error checking for the null condition but I cannot find the file.

Anybody know how I got to this point where this errors?  

I have the same question (0)
  • Verified answer
    Pankaj Gogoi Profile Picture
    3,177 on at

    Hi,

    Please clear your browser cache and try and also let us know the version of D365.

    I can see the file when I load classic interface and it's not throwing any error but not in unified interface.

    Best Regards

    PG

  • Suggested answer
    atonyba Profile Picture
    15 on at

    Your response has helped me find the solution. What happened here was that I tried to create a clone of the Customer Service Hub app, and somewhere along the way there was a breaking change or dependency that didn't carry over to my version of the app. I went through the CSH app instead of my own, refreshed, and everything works as expected in the unified UI.

    I am going to have to find a way to either modify the CSH (which I cannot since it is managed) or find a way to easily keep up on these types of changes. CSH is too busy for what we need, and keeping all those items/areas is going to be much.

    I appreciate the help with this!

  • John_V Profile Picture
    5 on at

    Anybody an answer on this topic?

    I am facing the same problem. I simply cannot create rules anymore.

    so if I want to add an "New Record Creation and Update Rule"(either via SETUP menus or via Customer Service Hub front end)

    I am using 365 online, and it worked up to a certain point and then not at all anymore.

    Emptied cache a few times and tested on different computer as well.

    Using 365 2021 wave 1 edition.

    Maybe since I used both the 'old' front end via SETUP and also the new menus in the Customer Services Hub (that do the same thing).?

    script error ConvertRule_main_system_library.js

    TypeError: Cannot read property 'JSTypes' of undefined

       at Function.Mscrm.ConvertRuleMainSystemLibraryWebResource.$1 (companyname.crm4.dynamics.com/.../ConvertRule_main_system_library.js:1:4355)

       at Object.Mscrm.ConvertRuleMainSystemLibraryWebResource.form_onload [as Form_onload] (companyname.crm4.dynamics.com/.../ConvertRule_main_system_library.js:1:551)

       at S._executeFunctionInternal (companyname.crm4.dynamics.com/.../app.js

       at S.executeFunction (companyname.crm4.dynamics.com/.../app.js

       at S.execute (companyname.crm4.dynamics.com/.../app.js

       at companyname.crm4.dynamics.com/.../app.js

       at i (companyname.crm4.dynamics.com/.../app.js

       at K._executeIndividualEvent (companyname.crm4.dynamics.com/.../app.js

       at K._executeEventHandler (companyname.crm4.dynamics.com/.../app.js

       at Object.execute (companyname.crm4.dynamics.com/.../app.js

    Error Details:

    Event Name: onload

    Function Name: Mscrm.Form_onload

    Web Resource Name: ConvertRule_main_system_library.js

    Solution Name: System

    Publisher Name: MicrosoftCorporation

  • CU17101358-0 Profile Picture
    46 on at

    I have the same issue, did you find a solution yet?

  •  A D Perkin Profile Picture
    50 on at

    I have exactly same issue - seems to work fine if I create from ground up with Classic UI, its post migration to modern UI where things break down. Once broken - no way out - now managed to trash two environments.

    I have replicated issue creating brand new record creation rules in Modern UI, or after migrating from another environment. Post conversion using tool is point where UI seems to break down.

    If I find solution or exact steps to re-create - will let you know.

    Cannot read properties of undefined (reading 'JSTypes')

    Session Id: de3b5706-e80d-45c3-a4bd-9cddd40371d6

    Correlation Id: 7ec66dc5-8776-471d-8696-15b72a999525

    Event Name: onload

    Function Name: Mscrm.Form_onload

    Web Resource Name: ConvertRule_main_system_library.js

    Solution Name: System

    Publisher Name: MicrosoftCorporation

    Time: Mon Apr 25 2022 13:57:09 GMT+0100 (British Summer Time)

  • Ivan_Wilson Profile Picture
    12 on at

    Getting the same issue here, using Dynamics 365

  • Cristian Carrion Profile Picture
    5 on at

    I have the same issue, did you find a solution yet?

  • Suggested answer
    AlexDan22 Profile Picture
    on at

    Hi,

    Changing the form resolves the JScript problem. 

    pastedimage1666532628855v4.png

    Cheers, 

    Alex

  • Suggested answer
    GTN22 Profile Picture
    5 on at

    Thanks a lot! Worked for me :-)

  • Rick Wilson Profile Picture
    15 on at

    The other way to get around this error is to load the classic form for the Record Creation and Update Rule.  You can do this through parameters in the url. 

    • Navigate to the new record in your UCI enabled app (you will get the JS error, just ignore it.)
    • Copy the URL for the new record form
    • Remove the app=<Guid> parameter from the url
    • Add the forceClassic=1 parameter to the url

    EG.  org12345.crm.dynamics.com/main.aspxforceClassic=1&newWindow=true&pagetype=entityrecord&etn=convertrule

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 55 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 25 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans