Looking for PowerObjects? Don’t worry, you’re in the right place! We’ve been part of HCL for several years, and we’ve now taken the final step in our acquisition journey: moving our website to the HCL domain. Nothing else is changing – we are still fanatically focused on Microsoft Business Applications!

PowerObjects Blog 

for Microsoft Business Applications

|

CRM 2011 Unable to Switch Forms with Script Error - The value of the property 'openUrlByCrmUrl' is null or undefined

Post Author: Joe D365 |

So from time to time we run into little issues I know others will encounter – hope this helps someone else out there!!

We recently ran into an error on organizations where multiple forms had been configured for entities in Internet Explorer and the other forms would not load/switch.

The script error in Internet Explorer stating ""The value of the property 'openUrlByCrmUrl' is null or undefined, not a Function object" when trying to switch between forms on the "Opportunities" and "Account" entities on multiple organizations within our CRM 2011 deployment.

CRM 2011 Unable to Switch Forms with Script Error - The value of the property 'openUrlByCrmUrl' is null or undefined

We could see that the values were properly being passed to the form.js file, however we determined that the problem turned out to be that OpenUrlByCrmUrl was undefined.  Further debugging indicated that we were failing at the global.js file.

After Microsoft reviewed the global.js file, it was discovered that it indeed did not have the expected OpenUrlByCrmUrl code in place.

The OpenUrlByCRMUrl was added in UR1, however it was not added to the file in our deployment because the global.js file was modified.  As it was modified, CRM's update rollups are unable to update it to include the necessary code, even though our CRM 2011 server had UR2 in place.

To resolve the issue, we were able to replace the global.js file at C:Program FilesMicrosoft Dynamics CRMCRMWeb_static_commonscripts with a clean one from a UR2 deployment.  After this, I ran an IISRESET and cleared IE cache, and the issue was resolved.

CRM Experts - PowerObjects

Happy CRM'ing

Joe CRM
By Joe D365
Joe D365 is a Microsoft Dynamics 365 superhero who runs on pure Dynamics adrenaline. As the face of PowerObjects, Joe D365’s mission is to reveal innovative ways to use Dynamics 365 and bring the application to more businesses and organizations around the world.

PowerObjects Recommends