Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Script Errors on select records

$
0
0

This last week I've been encountering strange behavior with one entity in my companies CRM Online installation.

On some records, there are fields where the option sets are not loading in. When I leave the record I get an error report. At first I figured it had to do with a script I had running, but disabling it does not get rid of these errors. The script set visibility on a couple of tabs based on the entry for the "Same as Account" field. Below is a screenshot of the fields in question, and the error details I get when leaving the record. On this particular record, it's the "same as account", "send invoice", and "attached timesheet" fields that are giving me issues. These should all be two option fields.

<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>inline control initialization failed for control : aston_sameasaccount : with controlMode : normal : and exception details :
Cannot read property 'raw' of undefined</Message>
<Line>0</Line>
<URL>/main.aspx?etc=10016&extraqs=%3f_gridType%3d10016%26etc%3d10016%26id%3d%257bFB8FC137-F63A-E511-8113-C4346BACFBC0%257d%26rskey%3d%257bDD2540B7-CB00-E511-80ED-FC15B4284D68%257d&pagemode=iframe&pagetype=entityrecord&rskey=%7bDD2540B7-CB00-E511-80ED-FC15B4284D68%7d</URL>
<PageURL>/main.aspx?etc=10016&extraqs=%3f_gridType%3d10016%26etc%3d10016%26id%3d%257bFB8FC137-F63A-E511-8113-C4346BACFBC0%257d%26rskey%3d%257bDD2540B7-CB00-E511-80ED-FC15B4284D68%257d&pagemode=iframe&pagetype=entityrecord&rskey=%7bDD2540B7-CB00-E511-80ED-FC15B4284D68%7d</PageURL>
<Function>anonymous(domElement,attributeMetadata,controlMode,initialValue,errorDisplayContainerProvider){if(IsNull(domElement)||domElement.length!==1)throwError.argument("domElement");if(IsNull(attributeMetadata))throwError.argumentNull("attributeMetadata");try{var</Function>
<FunctionRaw>function (domElement,attributeMetadata,controlMode,initialValue,errorDisplayContainerProvider){if(IsNull(domElement)||domElement.length!==1)throw Error.argument("domElement");if(IsNull(attributeMetadata))throw Error.argumentNull("attributeMetadata");try{v</FunctionRaw>
<CallStack>
<Function>anonymous(domElement,attributeMetadata,controlMode,initialValue,errorDisplayContainerProvider){if(IsNull(domElement)||domElement.length!==1)throwError.argument("domElement");if(IsNull(attributeMetadata))throwError.argumentNull("attributeMetadata");try{var$v_0=Mscrm.InlineControlFactory.createControl(domElement,attributeMetadata,initialValue,controlMode);if(!IsNull($v_0)){if(Mscrm.SimpleInlineControlView.isInstanceOfType($v_0))$v_0.$1E_2=errorDisplayContainerProvider;$v_0.renderForRead()}return$v_0}catch($v_1){var$v_2=String.format("inlinecontrolinitializationfailedforcontrol:{0}:withcontrolMode:{1}:andexceptiondetails:\n{2}",attributeMetadata.LogicalName,controlMode,$v_1.message);catchError($v_2,window.location.href,0,true);returnnull}}</Function>
<Function>anonymous(containerElement){var$v_0=$P_CRM(containerElement),$v_1=$v_0.attr(Mscrm.InlineEditConstants.HtmlAttributeForAttributeLogicalName),$v_2=$v_0.attr("data-formid");if(!isNullOrEmptyString($v_1)&&!isNullOrEmptyString($v_2)){$v_0.attr("data-initialized","true");var$v_3=this.$3k_0[$v_2],$v_4=$v_3[$v_1],$v_5=Mscrm.InlineEditUtilities.getLinkedDataObject($v_0);if(!IsNull($v_4)&&!$P_CRM.isEmptyObject($v_5)){var$v_6="normal",$v_7=Mscrm.InlineControlFactory.checkIfComposite($v_0);if($v_7)$v_4.RequiredLevel=Mscrm.InlineEditInitializerUtility.$4s($v_0.attr("compositeRequiredLevel"));if($v_1.startsWith("unbound_")){$v_6="alwaysedit";if($v_5["_entitydisabled"]==="1")$v_6="deactivated";var$v_8=Mscrm.InlineEditInitializerUtility.initializeForDomElement($v_0,$v_4,$v_6,$v_5[$v_1],this.$2z_0),$v_9=$find($v_8.get_dataContext().get_attribute().get_dataAttributeId());$v_9.set_isVirtual(true);return$v_8}else{var$v_A=Mscrm.InlineEditUtilities.isControlDisabled($v_0.attr("id"),$v_5),$v_B=$v_0.attr("data-disabled")==="1";if($v_A||$v_B)$v_6="locked";elseif($v_5["_entitydisabled"]==="1")$v_6="deactivated";var$v_C=$v_6,$v_D=Mscrm.InlineEditInitializerBase.$7D($v_0.attr("id"),$v_5["_hiddencontrols"]);if($v_D){$v_4.RequiredLevel=0;$v_6="deactivated"}var$v_E=Mscrm.InlineEditInitializerUtility.initializeForDomElement($v_0,$v_4,$v_6,$v_5[$v_1],this.$2z_0);if($v_4.AttributeType==="state"){var$v_F=$find($v_E.get_dataContext().get_attribute().get_dataAttributeId());$v_F.set_submitModeValue("never")}$v_D&&$v_E.get_dataContext().setDefaultControlMode($v_C);return$v_E}}}returnnull}</Function>
<Function>anonymous(){if(!this.$3o_0){this.setStartPerformanceMarker();this.$3o_0=true}this.$5K_0();Sys.Application.beginCreateComponents();var$v_0=0,$v_1=newArray(0);while(this.$15_0.length>0&&($v_0<this.get_initializationBatchSize()||this.get_initializationBatchSize()===-1)){var$v_3=this.$15_0[0],$v_4=$P_CRM($v_3).attr("data-initialized");if(isNullOrEmptyString($v_4)){var$v_5=this.initializeSingleInlineEditControl($v_3);if(!IsNull($v_5)){Array.add($v_1,$v_5);Mscrm.InlineEditInitializerUtility.associateControlWithParentSection($v_3,$v_5)}}Array.removeAt(this.$15_0,0);$v_0++}Sys.Application.endCreateComponents();Mscrm.InlineEditInitializerBase.$7y($v_1);this.$7z_0($v_1);var$v_2=Mscrm.InlineEditInitializationManager.get_instance();$v_2.fireEvent("PartialInitializationCompleted",newMscrm.InlineEditPartialInitializationEventArgs($v_1));if(!this.$15_0.length){this.setFinishPerformanceMarker();return"Completed"}return"Executing"}</Function>
<Function>anonymous(){if(Mscrm.PageManager.get_isUnloading())return;if(this.$1b_0.length>0){var$v_0=this.$1b_0[0],$v_1=$v_0.initializeControlInChunks();$v_1==="Completed"&&Array.removeAt(this.$1b_0,0)}}</Function>
<Function>anonymous(){returnb.apply(a,arguments)}</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</BrowserUserAgent>
<BrowserLanguage>undefined</BrowserLanguage>
<SystemLanguage>undefined</SystemLanguage>
<UserLanguage>undefined</UserLanguage>
<ScreenResolution>1920x1080</ScreenResolution>
<ClientName>Web</ClientName>
<ClienState>Online</ClienState>
<ClientTime>2016-08-05T14:17:24</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{CA89C345-3F4A-42AC-BAB5-FB64D536A823}</OrgID>
<UserID>{1C0A133D-92BB-E411-80DB-FC15B428DDB0}</UserID>
<CRMVersion>8.0.1.344</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>

<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>inline control initialization failed for control : aston_sendinvoice : with controlMode : normal : and exception details :
Cannot read property 'raw' of undefined</Message>
<Line>0</Line>
<URL>/main.aspx?etc=10016&extraqs=%3f_gridType%3d10016%26etc%3d10016%26id%3d%257bFB8FC137-F63A-E511-8113-C4346BACFBC0%257d%26rskey%3d%257bDD2540B7-CB00-E511-80ED-FC15B4284D68%257d&pagemode=iframe&pagetype=entityrecord&rskey=%7bDD2540B7-CB00-E511-80ED-FC15B4284D68%7d</URL>
<PageURL>/main.aspx?etc=10016&extraqs=%3f_gridType%3d10016%26etc%3d10016%26id%3d%257bFB8FC137-F63A-E511-8113-C4346BACFBC0%257d%26rskey%3d%257bDD2540B7-CB00-E511-80ED-FC15B4284D68%257d&pagemode=iframe&pagetype=entityrecord&rskey=%7bDD2540B7-CB00-E511-80ED-FC15B4284D68%7d</PageURL>
<Function>anonymous(domElement,attributeMetadata,controlMode,initialValue,errorDisplayContainerProvider){if(IsNull(domElement)||domElement.length!==1)throwError.argument("domElement");if(IsNull(attributeMetadata))throwError.argumentNull("attributeMetadata");try{var</Function>
<FunctionRaw>function (domElement,attributeMetadata,controlMode,initialValue,errorDisplayContainerProvider){if(IsNull(domElement)||domElement.length!==1)throw Error.argument("domElement");if(IsNull(attributeMetadata))throw Error.argumentNull("attributeMetadata");try{v</FunctionRaw>
<CallStack>
<Function>anonymous(domElement,attributeMetadata,controlMode,initialValue,errorDisplayContainerProvider){if(IsNull(domElement)||domElement.length!==1)throwError.argument("domElement");if(IsNull(attributeMetadata))throwError.argumentNull("attributeMetadata");try{var$v_0=Mscrm.InlineControlFactory.createControl(domElement,attributeMetadata,initialValue,controlMode);if(!IsNull($v_0)){if(Mscrm.SimpleInlineControlView.isInstanceOfType($v_0))$v_0.$1E_2=errorDisplayContainerProvider;$v_0.renderForRead()}return$v_0}catch($v_1){var$v_2=String.format("inlinecontrolinitializationfailedforcontrol:{0}:withcontrolMode:{1}:andexceptiondetails:\n{2}",attributeMetadata.LogicalName,controlMode,$v_1.message);catchError($v_2,window.location.href,0,true);returnnull}}</Function>
<Function>anonymous(containerElement){var$v_0=$P_CRM(containerElement),$v_1=$v_0.attr(Mscrm.InlineEditConstants.HtmlAttributeForAttributeLogicalName),$v_2=$v_0.attr("data-formid");if(!isNullOrEmptyString($v_1)&&!isNullOrEmptyString($v_2)){$v_0.attr("data-initialized","true");var$v_3=this.$3k_0[$v_2],$v_4=$v_3[$v_1],$v_5=Mscrm.InlineEditUtilities.getLinkedDataObject($v_0);if(!IsNull($v_4)&&!$P_CRM.isEmptyObject($v_5)){var$v_6="normal",$v_7=Mscrm.InlineControlFactory.checkIfComposite($v_0);if($v_7)$v_4.RequiredLevel=Mscrm.InlineEditInitializerUtility.$4s($v_0.attr("compositeRequiredLevel"));if($v_1.startsWith("unbound_")){$v_6="alwaysedit";if($v_5["_entitydisabled"]==="1")$v_6="deactivated";var$v_8=Mscrm.InlineEditInitializerUtility.initializeForDomElement($v_0,$v_4,$v_6,$v_5[$v_1],this.$2z_0),$v_9=$find($v_8.get_dataContext().get_attribute().get_dataAttributeId());$v_9.set_isVirtual(true);return$v_8}else{var$v_A=Mscrm.InlineEditUtilities.isControlDisabled($v_0.attr("id"),$v_5),$v_B=$v_0.attr("data-disabled")==="1";if($v_A||$v_B)$v_6="locked";elseif($v_5["_entitydisabled"]==="1")$v_6="deactivated";var$v_C=$v_6,$v_D=Mscrm.InlineEditInitializerBase.$7D($v_0.attr("id"),$v_5["_hiddencontrols"]);if($v_D){$v_4.RequiredLevel=0;$v_6="deactivated"}var$v_E=Mscrm.InlineEditInitializerUtility.initializeForDomElement($v_0,$v_4,$v_6,$v_5[$v_1],this.$2z_0);if($v_4.AttributeType==="state"){var$v_F=$find($v_E.get_dataContext().get_attribute().get_dataAttributeId());$v_F.set_submitModeValue("never")}$v_D&&$v_E.get_dataContext().setDefaultControlMode($v_C);return$v_E}}}returnnull}</Function>
<Function>anonymous(){if(!this.$3o_0){this.setStartPerformanceMarker();this.$3o_0=true}this.$5K_0();Sys.Application.beginCreateComponents();var$v_0=0,$v_1=newArray(0);while(this.$15_0.length>0&&($v_0<this.get_initializationBatchSize()||this.get_initializationBatchSize()===-1)){var$v_3=this.$15_0[0],$v_4=$P_CRM($v_3).attr("data-initialized");if(isNullOrEmptyString($v_4)){var$v_5=this.initializeSingleInlineEditControl($v_3);if(!IsNull($v_5)){Array.add($v_1,$v_5);Mscrm.InlineEditInitializerUtility.associateControlWithParentSection($v_3,$v_5)}}Array.removeAt(this.$15_0,0);$v_0++}Sys.Application.endCreateComponents();Mscrm.InlineEditInitializerBase.$7y($v_1);this.$7z_0($v_1);var$v_2=Mscrm.InlineEditInitializationManager.get_instance();$v_2.fireEvent("PartialInitializationCompleted",newMscrm.InlineEditPartialInitializationEventArgs($v_1));if(!this.$15_0.length){this.setFinishPerformanceMarker();return"Completed"}return"Executing"}</Function>
<Function>anonymous(){if(Mscrm.PageManager.get_isUnloading())return;if(this.$1b_0.length>0){var$v_0=this.$1b_0[0],$v_1=$v_0.initializeControlInChunks();$v_1==="Completed"&&Array.removeAt(this.$1b_0,0)}}</Function>
<Function>anonymous(){returnb.apply(a,arguments)}</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</BrowserUserAgent>
<BrowserLanguage>undefined</BrowserLanguage>
<SystemLanguage>undefined</SystemLanguage>
<UserLanguage>undefined</UserLanguage>
<ScreenResolution>1920x1080</ScreenResolution>
<ClientName>Web</ClientName>
<ClienState>Online</ClienState>
<ClientTime>2016-08-05T14:17:24</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{CA89C345-3F4A-42AC-BAB5-FB64D536A823}</OrgID>
<UserID>{1C0A133D-92BB-E411-80DB-FC15B428DDB0}</UserID>
<CRMVersion>8.0.1.344</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>

<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>inline control initialization failed for control : aston_attachtimesheet : with controlMode : normal : and exception details :
Cannot read property 'raw' of undefined</Message>
<Line>0</Line>
<URL>/main.aspx?etc=10016&extraqs=%3f_gridType%3d10016%26etc%3d10016%26id%3d%257bFB8FC137-F63A-E511-8113-C4346BACFBC0%257d%26rskey%3d%257bDD2540B7-CB00-E511-80ED-FC15B4284D68%257d&pagemode=iframe&pagetype=entityrecord&rskey=%7bDD2540B7-CB00-E511-80ED-FC15B4284D68%7d</URL>
<PageURL>/main.aspx?etc=10016&extraqs=%3f_gridType%3d10016%26etc%3d10016%26id%3d%257bFB8FC137-F63A-E511-8113-C4346BACFBC0%257d%26rskey%3d%257bDD2540B7-CB00-E511-80ED-FC15B4284D68%257d&pagemode=iframe&pagetype=entityrecord&rskey=%7bDD2540B7-CB00-E511-80ED-FC15B4284D68%7d</PageURL>
<Function>anonymous(domElement,attributeMetadata,controlMode,initialValue,errorDisplayContainerProvider){if(IsNull(domElement)||domElement.length!==1)throwError.argument("domElement");if(IsNull(attributeMetadata))throwError.argumentNull("attributeMetadata");try{var</Function>
<FunctionRaw>function (domElement,attributeMetadata,controlMode,initialValue,errorDisplayContainerProvider){if(IsNull(domElement)||domElement.length!==1)throw Error.argument("domElement");if(IsNull(attributeMetadata))throw Error.argumentNull("attributeMetadata");try{v</FunctionRaw>
<CallStack>
<Function>anonymous(domElement,attributeMetadata,controlMode,initialValue,errorDisplayContainerProvider){if(IsNull(domElement)||domElement.length!==1)throwError.argument("domElement");if(IsNull(attributeMetadata))throwError.argumentNull("attributeMetadata");try{var$v_0=Mscrm.InlineControlFactory.createControl(domElement,attributeMetadata,initialValue,controlMode);if(!IsNull($v_0)){if(Mscrm.SimpleInlineControlView.isInstanceOfType($v_0))$v_0.$1E_2=errorDisplayContainerProvider;$v_0.renderForRead()}return$v_0}catch($v_1){var$v_2=String.format("inlinecontrolinitializationfailedforcontrol:{0}:withcontrolMode:{1}:andexceptiondetails:\n{2}",attributeMetadata.LogicalName,controlMode,$v_1.message);catchError($v_2,window.location.href,0,true);returnnull}}</Function>
<Function>anonymous(containerElement){var$v_0=$P_CRM(containerElement),$v_1=$v_0.attr(Mscrm.InlineEditConstants.HtmlAttributeForAttributeLogicalName),$v_2=$v_0.attr("data-formid");if(!isNullOrEmptyString($v_1)&&!isNullOrEmptyString($v_2)){$v_0.attr("data-initialized","true");var$v_3=this.$3k_0[$v_2],$v_4=$v_3[$v_1],$v_5=Mscrm.InlineEditUtilities.getLinkedDataObject($v_0);if(!IsNull($v_4)&&!$P_CRM.isEmptyObject($v_5)){var$v_6="normal",$v_7=Mscrm.InlineControlFactory.checkIfComposite($v_0);if($v_7)$v_4.RequiredLevel=Mscrm.InlineEditInitializerUtility.$4s($v_0.attr("compositeRequiredLevel"));if($v_1.startsWith("unbound_")){$v_6="alwaysedit";if($v_5["_entitydisabled"]==="1")$v_6="deactivated";var$v_8=Mscrm.InlineEditInitializerUtility.initializeForDomElement($v_0,$v_4,$v_6,$v_5[$v_1],this.$2z_0),$v_9=$find($v_8.get_dataContext().get_attribute().get_dataAttributeId());$v_9.set_isVirtual(true);return$v_8}else{var$v_A=Mscrm.InlineEditUtilities.isControlDisabled($v_0.attr("id"),$v_5),$v_B=$v_0.attr("data-disabled")==="1";if($v_A||$v_B)$v_6="locked";elseif($v_5["_entitydisabled"]==="1")$v_6="deactivated";var$v_C=$v_6,$v_D=Mscrm.InlineEditInitializerBase.$7D($v_0.attr("id"),$v_5["_hiddencontrols"]);if($v_D){$v_4.RequiredLevel=0;$v_6="deactivated"}var$v_E=Mscrm.InlineEditInitializerUtility.initializeForDomElement($v_0,$v_4,$v_6,$v_5[$v_1],this.$2z_0);if($v_4.AttributeType==="state"){var$v_F=$find($v_E.get_dataContext().get_attribute().get_dataAttributeId());$v_F.set_submitModeValue("never")}$v_D&&$v_E.get_dataContext().setDefaultControlMode($v_C);return$v_E}}}returnnull}</Function>
<Function>anonymous(){if(!this.$3o_0){this.setStartPerformanceMarker();this.$3o_0=true}this.$5K_0();Sys.Application.beginCreateComponents();var$v_0=0,$v_1=newArray(0);while(this.$15_0.length>0&&($v_0<this.get_initializationBatchSize()||this.get_initializationBatchSize()===-1)){var$v_3=this.$15_0[0],$v_4=$P_CRM($v_3).attr("data-initialized");if(isNullOrEmptyString($v_4)){var$v_5=this.initializeSingleInlineEditControl($v_3);if(!IsNull($v_5)){Array.add($v_1,$v_5);Mscrm.InlineEditInitializerUtility.associateControlWithParentSection($v_3,$v_5)}}Array.removeAt(this.$15_0,0);$v_0++}Sys.Application.endCreateComponents();Mscrm.InlineEditInitializerBase.$7y($v_1);this.$7z_0($v_1);var$v_2=Mscrm.InlineEditInitializationManager.get_instance();$v_2.fireEvent("PartialInitializationCompleted",newMscrm.InlineEditPartialInitializationEventArgs($v_1));if(!this.$15_0.length){this.setFinishPerformanceMarker();return"Completed"}return"Executing"}</Function>
<Function>anonymous(){if(Mscrm.PageManager.get_isUnloading())return;if(this.$1b_0.length>0){var$v_0=this.$1b_0[0],$v_1=$v_0.initializeControlInChunks();$v_1==="Completed"&&Array.removeAt(this.$1b_0,0)}}</Function>
<Function>anonymous(){returnb.apply(a,arguments)}</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</BrowserUserAgent>
<BrowserLanguage>undefined</BrowserLanguage>
<SystemLanguage>undefined</SystemLanguage>
<UserLanguage>undefined</UserLanguage>
<ScreenResolution>1920x1080</ScreenResolution>
<ClientName>Web</ClientName>
<ClienState>Online</ClienState>
<ClientTime>2016-08-05T14:17:24</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{CA89C345-3F4A-42AC-BAB5-FB64D536A823}</OrgID>
<UserID>{1C0A133D-92BB-E411-80DB-FC15B428DDB0}</UserID>
<CRMVersion>8.0.1.344</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>