Notifications
Announcements
No record found.
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.
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:
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?
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
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!
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
I have the same issue, did you find a solution yet?
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
Time: Mon Apr 25 2022 13:57:09 GMT+0100 (British Summer Time)
Getting the same issue here, using Dynamics 365
Changing the form resolves the JScript problem.
Cheers,
Alex
Thanks a lot! Worked for me :-)
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 55 Super User 2025 Season 2
Daniyal Khaleel 25 Most Valuable Professional
Soundari 15