Hi all
I've created a new HTML Web Resource, and populated it as follows:
<html> <head> </head> <body> <script src="../ClientGlobalContext.js.aspx" type="text/javascript"></script> <div><span>testing</span></div> </body> </html>
As you can see, there is nothing in there except the loading of the scripts from ../ClientGlobalContext.js.aspx.
Once this page has loaded, if I press the control key (either of them), I get the following error logged in the console (Chrome below, but I get a similar error in all browsers):
global.ashx?ver=883953442:4024 Uncaught TypeError: Cannot read property 'toString' of undefined at Function.Mscrm.Utilities.getResourceValue (global.ashx?ver=883953442:4024) at HTMLDocument.Mscrm.GlobalEvents.$6B (global.ashx?ver=883953442:4024) at HTMLDocument.b (MicrosoftAjax.js?ver=883953442:2922) Mscrm.Utilities.getResourceValue @ global.ashx?ver=883953442:4024 Mscrm.GlobalEvents.$6B @ global.ashx?ver=883953442:4024 b @ MicrosoftAjax.js?ver=883953442:2922
It doesn't show to the user (no popup error or anything), but it's annoying for trying to catch my own errors I throw on the page, because I keep intercepting these CRM errors.
Does anyone
- have any clue why this error is being thrown?
- have any suggestions on a standard or best-practice way of handling CRM Web Resource errors to prevent me catching this error?
This is an on-premise, v8.2 instance. Our dev instance in this case, but it's happening on our live instance, too.
Any help appreciated.
Thanks
*This post is locked for comments