Hi,
I'm testing Dynamics CRM 2015 Update 1 in our Sandbox environment and getting the following script error every time in contact form when we close or save&close the form.
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Unable to get property 'firstChild' of undefined or null reference</Message>
<Line>0</Line>
<URL>/form/page.aspx?lcid=1033&themeId=f499443d-2082-4938-8842-e7ee62de9a23&tstamp=-812668412&updateTimeStamp=635775331283210477&userts=130903357791869582&ver=654066087#etc=2&extraqs=%3f_gridType%3d2%26etc%3d2%26id%3d%257bFDE0FA3F-5EA8-E311-ABAA-6C3BE5A8B1B4%257d%26rskey%3d%257b8DF19B44-A073-40C3-9D6D-EE1355D8C4BA%257d&pagemode=iframe&pagetype=entityrecord&rskey=%7b8DF19B44-A073-40C3-9D6D-EE1355D8C4BA%7d&counter=1445862765329</URL>
<PageURL>/form/page.aspx?lcid=1033&themeId=f499443d-2082-4938-8842-e7ee62de9a23&tstamp=-812668412&updateTimeStamp=635775331283210477&userts=130903357791869582&ver=654066087#etc=2&extraqs=%3f_gridType%3d2%26etc%3d2%26id%3d%257bFDE0FA3F-5EA8-E311-ABAA-6C3BE5A8B1B4%257d%26rskey%3d%257b8DF19B44-A073-40C3-9D6D-EE1355D8C4BA%257d&pagemode=iframe&pagetype=entityrecord&rskey=%7b8DF19B44-A073-40C3-9D6D-EE1355D8C4BA%7d&counter=1445862765329</PageURL>
<Function>anonymous(){var$v_0=this.$8q_1.toDictionary();var$$dict_3=$v_0;for(var$$key_4in$$dict_3){var$v_2={key:$$key_4,value:$$dict_3[$$key_4]};var$v_3=$v_2.value;if(!$v_3.$5Y_2){$v_3.initialize();}}var$v_1=this.get_viewMap().toDictionary();var$$dict_9=$v_1;for(va</Function>
<FunctionRaw>function() {
var $v_0 = this.$8q_1.toDictionary();
var $$dict_3 = $v_0;
for (var $$key_4 in $$dict_3) {
var $v_2 = { key: $$key_4, value: $$dict_3[$$key_4] };
var $v_3 = $v_2.value;
if (!$v</FunctionRaw>
<CallStack>
<Function>anonymous(){var$v_0=this.$8q_1.toDictionary();var$$dict_3=$v_0;for(var$$key_4in$$dict_3){var$v_2={key:$$key_4,value:$$dict_3[$$key_4]};var$v_3=$v_2.value;if(!$v_3.$5Y_2){$v_3.initialize();}}var$v_1=this.get_viewMap().toDictionary();var$$dict_9=$v_1;for(var$$key_Ain$$dict_9){var$v_4={key:$$key_A,value:$$dict_9[$$key_A]};var$v_5=$v_4.value;try{$v_5.bind();}catch($v_6){Mscrm.CrmDebug.fail(String.format('Exceptionencounteredbinding{0}:{1}',$v_5.getKey(),$v_6.message));catchError($v_6.message,window.location.href,0,true);}}}</Function>
<Function>anonymous(){this.$9B_1=true;this.ui.bindUI();if(this.$4B_1.toArray().length>0){Mscrm.TurboForm.Control.PageManager.get_instance().startUIUpdate();}}</Function>
<Function>anonymous(){this.$N_1.bindUI();}</Function>
<Function>anonymous($p0,$p1,$p2){var$v_0=$p0._error;if(!IsNull($v_0)){var$v_1=Mscrm.ErrorInformation.createErrorInfo($v_0.Code,$v_0.DisplayText,$v_0.SerializedException);var$v_2=Mscrm.Utilities.createCallbackFunctionObject('errorDialogCallback',Mscrm.TurboForm.Control.PageBootstrapper,null,false);openErrorDlg($v_0.Code,$v_0.DisplayText,$v_1,0,0,$v_2);return;}else{for(var$$arr_6=$p0.Descriptor.FormDescriptor,$$len_7=$$arr_6.length,$$idx_8=0;$$idx_8<$$len_7;++$$idx_8){var$v_C=$$arr_6[$$idx_8];Mscrm.TurboForm.Control.PageBootstrapper.$Fo($v_C);}var$v_3='TODO:Handlelayouttemplatenotfound.';var$v_4=Mscrm.TurboForm.Control.PageBootstrapper.$3n();$v_4.descriptors=$p0.Descriptor.FormDescriptor;$v_4.ProcessControlRule=$p0.processControlRule;$v_4.primaryFormId=newMicrosoft.Crm.Client.Core.Framework.Guid($p0.Descriptor.PrimaryFormId);$v_4.entityMetadata=Mscrm.TurboForm.Control.PageBootstrapper.$Gl($p0.entityMetadata);$v_4.InlineEditSubGrids=Mscrm.TurboForm.Control.PageBootstrapper.$Gm($p0.InlineEditSubGrids);var$v_5=$p0.header;$v_4.applicationInitDeferredStatements=$p0.header.ApplicationInitDeferredStatements;$v_4.sfaTabsInitDeferredStatements=$p0.header.SFATabsInitDeferredStatements;$v_4.caseSFATabsInitDeferredStatements=$p0.header.CaseSFATabsInitDeferredStatements;var$v_6=Xrm.Internal.startMetricsStopwatch('InjectLayoutIncludestoPage');$v_6.start();Sys.Application.beginCreateComponents();eval($v_5.TurboApplicationInitStatements);Sys.Application.endCreateComponents();Mscrm.TurboForm.Control.PageBootstrapper.$FS($v_5.StyleIncludes);Mscrm.TurboForm.Control.PageBootstrapper.$F4($v_5.TurboScriptIncludes);Mscrm.TurboForm.Control.DisposalManager.clearExistingDataClientVariables();Mscrm.TurboForm.Control.DisposalManager.clearExistingLayoutClientVariables();Mscrm.TurboForm.Control.PageBootstrapper.$FR($v_5.ClientVariables);$v_6.stop();var$v_7=Xrm.Internal.startMetricsStopwatch('RenderFormLayout');$v_7.start();var$v_8=$v_5.JQueryTemplates;$v_4.templates=$v_8;for(var$v_D=0;$v_D<$v_8.length;$v_D++){var$v_E=$v_8[$v_D];if($v_E.Key==='rootJQueryTemplate'){$v_3=$v_E.Value;break;}}Mscrm.TurboForm.Control.PageBootstrapper.$H1($v_3);$v_7.stop();var$v_9=Xrm.Internal.startMetricsStopwatch('InitializeApplicationComponents');$v_9.start();Sys.Application.beginCreateComponents();eval(createFormControlLite);eval(createPageManager);eval(createEventManager);eval(SubGridCommandBarData);Sys.Application.endCreateComponents();$v_9.stop();if($v_4.formType!==7&&!$v_4.recordId.equals(Microsoft.Crm.Client.Core.Framework.Guid.get_empty())){var$v_F=Xrm.Internal.startMetricsStopwatch('RequestSubgridsData');$v_F.start();Mscrm.TurboForm.Control.PageBootstrapper.$H3();$v_F.stop();}var$v_A=Xrm.Internal.startMetricsStopwatch('InitializeXrmControlsandData');$v_A.start();Mscrm.TurboForm.Control.PageManager.get_instance().initialize();$v_A.stop();var$v_B=Xrm.Internal.startMetricsStopwatch('BindXrmtoHTML');$v_B.start();Mscrm.TurboForm.Control.PageManager.get_instance().bindUI();$v_B.stop();Mscrm.TurboForm.Control.PageManager.get_instance().initializeProcessControl($v_4);$v_4.layoutReady=true;Xrm.XrmPerformance.measureTime('OnLayoutReadyhandlers',function(){returnMscrm.TurboForm.Control.PageBootstrapper.$8D('OnLayoutReady');});Mscrm.Performance.PerformanceMarkerManager.get_instance().addMarker('PageReadyforDataBind',1);Mscrm.TurboForm.Control.PageBootstrapper.$DR($p1,$p2);}}</Function>
<Function>anonymous($p1_0){$v_0.stop();var$v_1=Xrm.Internal.startMetricsStopwatch('ParseFormLayoutResponseJson');$v_1.start();var$v_2=Mscrm.TurboForm.Control.PageBootstrapper.$CS($p1_0);$v_1.stop();if($v_2){var$v_3=Mscrm.TurboForm.Control.PageBootstrapper.$EL($p1);var$v_4=Mscrm.TurboForm.Control.PageBootstrapper.$EK($p1);var$v_5=Xrm.Internal.startMetricsStopwatch('ProcessFormLayout');$v_5.start();Mscrm.TurboForm.Control.PageBootstrapper.$Go($v_2,$v_3,$v_4);$v_5.stop();}}</Function>
<Function>anonymous(){if($v_0.readyState!==4){return;}$v_0.onreadystatechange=null;if($v_0.status!==200){}successCallback($v_0.responseText);$v_0=null;}</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.3; rv:11.0) like Gecko</BrowserUserAgent>
<BrowserLanguage>en-US</BrowserLanguage>
<SystemLanguage>en-US</SystemLanguage>
<UserLanguage>en-US</UserLanguage>
<ScreenResolution>1600x900</ScreenResolution>
<ClientName>Web</ClientName>
<ClienState>Online</ClienState>
<ClientTime>2015-10-26T18:02:45</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{3885F193-CE2B-4FAA-BB2C-6709CF6A1511}</OrgID>
<UserID>{78A6A366-60E5-4EF1-B914-2E9E0F0FDBAE}</UserID>
<CRMVersion>7.1.1.3157</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>
Any help would be great.
Thanks,
Sekhar.