Reputation: 21
I got this script error popup when I opened record today. I have never got this error before and there's no change after I last opened the record days ago.
The error message is "TypeError: Unable to set property 'eventManager' of undefined or null reference".
I have no idea about it and need help to solve this issue. It occurred in both sandbox and prod environment.
Upvotes: 2
Views: 1135
Reputation: 11
Microsoft is removing their support for customised Javascript on forms. Please check if your Legacy form rendering is switched on . If yes , then switch it off and convert all your custom JS code to Xrmtoolkit compatible code.
Regarding your issue, there is a work around where you can wrap the addOnLoad call inside a window.setTimeout call with a delay of 1000ms.
window.setTimeout(onload(){//your code}, 1000);
Upvotes: 0
Reputation: 2186
its a known bug since the last update.
https://community.dynamics.com/crm/f/117/t/239844
Upvotes: 0
Reputation: 11
I also have this problem. It seems that last crm system update contains some changes regarding js. In my case this error is made by the js function where I add OnLoad event to subgrid. If that function is disabled everything works fine.
Upvotes: 1