locked
Script error that driving us crazy !!! RRS feed

  • Question

  • We have been dealing with this script error since our organisation upgrade to CRM 2013 online from 2011 online. the frequency of this error occurring varies from  users/systems to users/systems.  clearing browser cache and temp files doesn't seem to work on this.  We are using only IE for now.

    I have posted the error details and screen shot of this .. if some one could help me with this that would be great.. 

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Object expected</Message>
       <Line>36</Line>
       <URL>/_common/JsProvider.ashx?IsRefreshForm=true&ids=1545465446-1759665639-1968334880-202661451-1547461133-1992083491-1000289424-159335543-1025323794-1376927455-1030632819-1181113682-1793205875-1314140682-1194605645-1380222012-1039841082-513446117-1710907082-1625018438-1460109179-1088147315-706656670-342519603-330369912-232397045-468302605-1405388298-1731109441-2029667886-202888856-542820515-1946640899-1603536461-1220618931-511599809-1264077421-1188909594-783705869-374257838-502328314-2050812538-512064351&ver=-159368148</URL>
       <PageURL>/main.aspx?etc=3&extraqs=%3f_gridType%3d3%26etc%3d3%26id%3d%257bDD7468CF-0D7D-E311-9B80-D89D6776EA18%257d%26rskey%3d70508875&pagemode=iframe&pagetype=entityrecord&rskey=70508875</PageURL>
       <Function>anonymous(result,command){if(result.get_success()&&!isNullOrEmptyString(result.get_returnValue())){var$v_0=XUI.Xml.LoadXml(result.get_returnValue());this.SetProperty("pagingCookie",XUI.Xml.GetText(XUI.Xml.SelectSingleNode($v_0,"gridXml/pagingCookie",null)</Function>
       <CallStack>
        <Function>anonymous(result,command){if(result.get_success()&&!isNullOrEmptyString(result.get_returnValue())){var$v_0=XUI.Xml.LoadXml(result.get_returnValue());this.SetProperty("pagingCookie",XUI.Xml.GetText(XUI.Xml.SelectSingleNode($v_0,"gridXml/pagingCookie",null)));this.setGridData(XUI.Xml.GetText(XUI.Xml.SelectSingleNode($v_0,"gridXml/gridHtml",null)),true);var$v_1=newArray(3);$v_1[0]="effectiveFetchXml";$v_1[1]="isFetchXmlNotFinal";$v_1[2]="fetchXmlForFilters";$v_1[3]="viewts";for(var$v_2=this.GetParameter("viewts"),$v_4=0;$v_4<$v_1.length;$v_4++){var$v_5=XUI.Xml.SelectSingleNode($v_0,String.format("gridXml/gridParams/div[@id='{0}']",$v_1[$v_4]),null);$v_5&&this.SetParameter(XUI.Xml.GetText($v_5.attributes.getNamedItem("id")),XUI.Xml.GetText($v_5))}var$v_3=this.GetParameter("viewts");this.cacheValidation($v_2,$v_3)}elsethis.displayFailedMessage();this.fireEvents(command);this.$2N_3(null);this.$2k_3=newDate;this.$1I_3=false;Mscrm.Utilities.addControlMarker(this.get_id(),"Subgrid","FinishLoadTimestamp",(newDate).getTime().toString())}</Function>
        <Function>anonymous(){this.finishShowLoadingMessage();this.refreshComplete(this.$2C_3,this.$2B_3);this.$7S_4()}</Function>
        <Function>anonymous(result,command){this.$2C_3=result;this.$2B_3=command;Mscrm.Utilities.isRefreshForm()&&this.$4O_4();this.$78_4()}</Function>
        <Function>anonymous(){returnb.apply(a,arguments)}</Function>
        <Function>anonymous(){if(this.$2T_0.readyState===4){this.$2T_0.onreadystatechange=null;if(!this.$3m_0.$1e_0&&this.$2T_0.status){var$v_0=newMscrm.RemoteCommandXmlResult(this.$3m_0,this.$2T_0,true);this.$5S_0($v_0,this.$3m_0);this.$2T_0.abort()}}}</Function>
        <Function>anonymous(){returnb.apply(a,arguments)}</Function>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)</BrowserUserAgent>
       <BrowserLanguage>en-us</BrowserLanguage>
       <SystemLanguage>en-us</SystemLanguage>
       <UserLanguage>en-us</UserLanguage>
       <ScreenResolution>1366x768</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2014-01-26T18:42:16</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>1033</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>1033</UserCulture>
        <OrgID>{XXXXXXXXXXXXXXXXXXXXXXXX}</OrgID>
        <UserID>{XXXXXXXXXXXXXXXXXXXXXXXX}</UserID>
        <CRMVersion>6.0.1.61</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>
     
    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Object expected</Message>
       <Line>36</Line>
       <URL>/_common/JsProvider.ashx?IsRefreshForm=true&ids=1545465446-1759665639-1968334880-202661451-1547461133-1992083491-1000289424-159335543-1025323794-1376927455-1030632819-1181113682-1793205875-1314140682-1194605645-1380222012-1039841082-513446117-1710907082-1625018438-1460109179-1088147315-706656670-342519603-330369912-232397045-468302605-1405388298-1731109441-2029667886-202888856-542820515-1946640899-1603536461-1220618931-511599809-1264077421-1188909594-783705869-374257838-502328314-2050812538-512064351&ver=-159368148</URL>
       <PageURL>/main.aspx?etc=3&extraqs=%3f_gridType%3d3%26etc%3d3%26id%3d%257bDD7468CF-0D7D-E311-9B80-D89D6776EA18%257d%26rskey%3d70508875&pagemode=iframe&pagetype=entityrecord&rskey=70508875</PageURL>
       <Function>anonymous(result,command){if(result.get_success()&&!isNullOrEmptyString(result.get_returnValue())){var$v_0=XUI.Xml.LoadXml(result.get_returnValue());this.SetProperty("pagingCookie",XUI.Xml.GetText(XUI.Xml.SelectSingleNode($v_0,"gridXml/pagingCookie",null)</Function>
       <CallStack>
        <Function>anonymous(result,command){if(result.get_success()&&!isNullOrEmptyString(result.get_returnValue())){var$v_0=XUI.Xml.LoadXml(result.get_returnValue());this.SetProperty("pagingCookie",XUI.Xml.GetText(XUI.Xml.SelectSingleNode($v_0,"gridXml/pagingCookie",null)));this.setGridData(XUI.Xml.GetText(XUI.Xml.SelectSingleNode($v_0,"gridXml/gridHtml",null)),true);var$v_1=newArray(3);$v_1[0]="effectiveFetchXml";$v_1[1]="isFetchXmlNotFinal";$v_1[2]="fetchXmlForFilters";$v_1[3]="viewts";for(var$v_2=this.GetParameter("viewts"),$v_4=0;$v_4<$v_1.length;$v_4++){var$v_5=XUI.Xml.SelectSingleNode($v_0,String.format("gridXml/gridParams/div[@id='{0}']",$v_1[$v_4]),null);$v_5&&this.SetParameter(XUI.Xml.GetText($v_5.attributes.getNamedItem("id")),XUI.Xml.GetText($v_5))}var$v_3=this.GetParameter("viewts");this.cacheValidation($v_2,$v_3)}elsethis.displayFailedMessage();this.fireEvents(command);this.$2N_3(null);this.$2k_3=newDate;this.$1I_3=false;Mscrm.Utilities.addControlMarker(this.get_id(),"Subgrid","FinishLoadTimestamp",(newDate).getTime().toString())}</Function>
        <Function>anonymous(){this.finishShowLoadingMessage();this.refreshComplete(this.$2C_3,this.$2B_3);this.$7S_4()}</Function>
        <Function>anonymous(result,command){this.$2C_3=result;this.$2B_3=command;Mscrm.Utilities.isRefreshForm()&&this.$4O_4();this.$78_4()}</Function>
        <Function>anonymous(){returnb.apply(a,arguments)}</Function>
        <Function>anonymous(){if(this.$2T_0.readyState===4){this.$2T_0.onreadystatechange=null;if(!this.$3m_0.$1e_0&&this.$2T_0.status){var$v_0=newMscrm.RemoteCommandXmlResult(this.$3m_0,this.$2T_0,true);this.$5S_0($v_0,this.$3m_0);this.$2T_0.abort()}}}</Function>
        <Function>anonymous(){returnb.apply(a,arguments)}</Function>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)</BrowserUserAgent>
       <BrowserLanguage>en-us</BrowserLanguage>
       <SystemLanguage>en-us</SystemLanguage>
       <UserLanguage>en-us</UserLanguage>
       <ScreenResolution>1366x768</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2014-01-26T18:42:17</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>1033</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>1033</UserCulture>
        <OrgID>{XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}</OrgID>
        <UserID>{XXXXXXXXXXXXXXXXXXXXXXXXXXXX}</UserID>
        <CRMVersion>6.0.1.61</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>


    • Edited by Pradeep47 Sunday, January 26, 2014 1:52 PM
    Sunday, January 26, 2014 1:49 PM

All replies

  • Hi,

    This error is coming from the internal javascript of Dynamics CRM - if you disable all of your custom webresources do you still get the error?

    I would suggest opening up a support case with Microsoft about it.

    Scott


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Sunday, January 26, 2014 4:07 PM
    Answerer
  • Use this setting !!


    Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Monday, January 27, 2014 3:41 AM
  • Hi we are having exactly same error, did you find the resolution to this?
    Tuesday, September 30, 2014 2:39 PM
  • Hi,

    The error is <Message>Object expected</Message> which means the js try to do some dom action but find the object is missing.

    Have you removed any field on the form? Then the script error will show after then.

    Thursday, October 2, 2014 7:11 AM
  • In my case, I get this error when I have an iFrame in the form, If I remove it the error is gone. Still trying to find out how to add the iFrame without get the exception.
    Thursday, October 2, 2014 7:53 AM
  • hello,

    please try to follow Santosh's comment and try to change the option to automatically send error to Microsoft. This will remove the alert when errors happen.

    and for long term fix, raise a call with Microsoft support as Scott suggested. It is also worth checking your IE version and try with compatibility mode turned on/off.

    regards,

    Jithesh

    Thursday, October 2, 2014 8:47 AM
  • Yes, I'll do that in our LIVE instance, however can't do that in DEVELOPMENT environment, as that's not a solution.

    I get the error with Chrome and Firefox, so don't think is an IE problem. Thanks,

    Thursday, October 2, 2014 8:51 AM