質問 CRM 2011 ribbon.js error

  • Monday, July 30, 2012 12:43 PM
     
      Has Code

    Need help on the following error which occurs when I close a form which contains Activity.

    Note: We have migrated from CRM 4 to CRM 2011. If the Grid is invisible on the form there si no error.

    -------------------------------------------------------------------------------------------------------------

    Microsoft Dynamics CRM Error Report Contents

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Object doesn't support property or method '$find'</Message>
       <Line>1</Line>
       <URL>/_static/_controls/ribbon/ribbon.js?ver=2076115191</URL>
       <PageURL>/userdefined/areas.aspx?oId=%7bdc85e2a2-7a1a-e011-838c-00155d015d07%7d&oType=10006&roleOrd=1&security=852023&tabSet=areapo_po_mobilityteam_contact_3rdparty_mgr</PageURL>
       <Function></Function>
       <CallStack>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8; .NET CLR 1.1.4322)</BrowserUserAgent>
       <BrowserLanguage>en-us</BrowserLanguage>
       <SystemLanguage>en-us</SystemLanguage>
       <UserLanguage>en-us</UserLanguage>
       <ScreenResolution>1920x1080</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2012-07-27T15:44:36</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>1033</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>1033</UserCulture>
        <OrgID>{B9522563-4A3D-E111-8A64-0050568192AD}</OrgID>
        <UserID>{8F53D09C-20B9-E011-9FE5-00155D015E07}</UserID>
        <CRMVersion>5.0.9690.2243</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>

All Replies

  • Monday, July 30, 2012 1:34 PM
     
     

    maybe there is a usage of jQuery in the original crm 4 function '$find'

    Jaimie

  • Monday, July 30, 2012 3:33 PM
     
     

    Hey first of all thanks Jaimie for your quick reply, Yes the JQuery is used, but i dont understand what could be the problem if the jquery is used?

    Pravin

  • Tuesday, July 31, 2012 9:34 AM
     
     

    Here is the error details which occur on IE8 the above one error was found on IE9

    ---------------------------------------------------------------------------------

    Microsoft Dynamics CRM Error Report Contents

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Object doesn't support this property or method</Message>
       <Line>1</Line>
       <URL>/_static/_controls/ribbon/ribbon.js?ver=2076115191</URL>
       <PageURL>/userdefined/areas.aspx?oId=%7bdc85e2a2-7a1a-e011-838c-00155d015d07%7d&oType=10006&roleOrd=1&security=852023&tabSet=areapo_po_mobilityteam_contact_3rdparty_mgr</PageURL>
       <Function>anonymous(){if(IsNull(this.$3K_2)){this.$3K_2={};for(var$v_0=0;$v_0<this.$1W_2.TrimList.length;$v_0++){var$v_1=this.$1W_2.TrimList[$v_0];this.$3K_2[$v_1]=true;if(!IsNull(Mscrm.RibbonLayout.menuSectionAndGroupControls)){var$v_2=Mscrm.RibbonLayout.menuSecti</Function>
       <CallStack>
        <Function>anonymous(){if(IsNull(this.$3K_2)){this.$3K_2={};for(var$v_0=0;$v_0<this.$1W_2.TrimList.length;$v_0++){var$v_1=this.$1W_2.TrimList[$v_0];this.$3K_2[$v_1]=true;if(!IsNull(Mscrm.RibbonLayout.menuSectionAndGroupControls)){var$v_2=Mscrm.RibbonLayout.menuSectionAndGroupControls[$v_1];if(!isNullOrEmptyString($v_2)){var$v_3=Mscrm.RibbonLayout.menuSectionAndGroupCounts[$v_2]-1;Mscrm.RibbonLayout.menuSectionAndGroupCounts[$v_2]=$v_3;if($v_3<=0){this.$3K_2[$v_2]=true;var$v_4=Mscrm.RibbonLayout.menuSectionAndGroupControls[$v_2];if(!isNullOrEmptyString($v_4)){var$v_5=Mscrm.RibbonLayout.tabGroupCount[$v_4]-1;Mscrm.RibbonLayout.tabGroupCount[$v_4]=$v_5;if($v_5<=0){var$v_6=this.$Cw_2($v_4);this.$3K_2[$v_6]=true}}}}}}if(this.$F9_2()){var$v_7=window.parent.$find("crmRibbonData");if($v_7&&isInstanceOfTypeAcrossFrames($v_7,Mscrm.RibbonData)){var$v_8=$v_7.get_$6i(),$$dict_4_0=$v_8;for(var$$key_4_1in$$dict_4_0){var$v_9={key:$$key_4_1,value:$$dict_4_0[$$key_4_1]};this.$3K_2[$v_9.key]=$v_9.value}}}}returnthis.$3K_2}</Function>
        <Function>anonymous(){Mscrm.RibbonData.callBaseMethod(this,"initialize");this.$68_2={};this.$6u_2={};this.$2E_2={};this.$5j_2={};this.$AK_2=Mscrm.RibbonLayout.isInvalid;for(var$v_0=0;$v_0<this.$1W_2.TabList.length;$v_0++){var$v_1=this.$1W_2.TabList[$v_0],$v_2=$v_1.TabId,$v_3=this.get_$4U()[$v_2];if(!IsNull($v_3)&&$v_3.TabExists){if(!isNullOrEmptyString($v_3.TabCommand))this.$2E_2[$v_3.TabCommand]=false;if(!isNullOrEmptyString($v_3.ContextGroupCommand))this.$5j_2[$v_3.ContextGroupCommand]=false}var$v_4=this.$Cw_2($v_2);if(IsNull(this.get_$6i()[$v_4])){this.$68_2[$v_2]=true;if(!IsNull($v_3)&&$v_3.IsContextual&&!isNullOrEmptyString($v_3.ContextualGroupId))this.$6u_2[$v_3.ContextualGroupId]=true}}!IsNull(this.$5B_2)&&this.$GT_2($get(this.$5B_2.get_id()))}</Function>
        <Function>anonymous(){this._updating=false;if(!this._initialized)this.initialize();this.updated()}</Function>
        <Function>anonymous(){varb=this._secondPassComponents;for(vara=0,d=b.length;a<d;a++){varc=b[a].component;Sys$Component$_setReferences(c,b[a].references);c.endUpdate()}this._secondPassComponents=[];this._creatingComponents=false}</Function>
        <Function>anonymous(){vara=this.get_events().getHandler("init");if(a){this.beginCreateComponents();a(this,Sys.EventArgs.Empty);this.endCreateComponents()}}</Function>
        <Function>anonymous(){if(!this.get_isInitialized()&&!this._disposing){Sys._Application.callBaseMethod(this,"initialize");this._raiseInit();if(this.get_stateString){if(Sys.WebForms&&Sys.WebForms.PageRequestManager){this._beginRequestHandler=Function.createDelegate(this,this._onPageRequestManagerBeginRequest);Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(this._beginRequestHandler);this._endRequestHandler=Function.createDelegate(this,this._onPageRequestManagerEndRequest);Sys.WebForms.PageRequestManager.getInstance().add_endRequest(this._endRequestHandler)}vara=this.get_stateString();if(a!==this._currentEntry)this._navigate(a);elsethis._ensureHistory()}this.raiseLoad()}}</Function>
        <Function>b()</Function>
        <Function>anonymous(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",a);b()}}</Function>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)</BrowserUserAgent>
       <BrowserLanguage>en-us</BrowserLanguage>
       <SystemLanguage>en-us</SystemLanguage>
       <UserLanguage>en-us</UserLanguage>
       <ScreenResolution>1366x768</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2012-07-30T21:11:57</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>1033</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>1033</UserCulture>
        <OrgID>{B9522563-4A3D-E111-8A64-0050568192AD}</OrgID>
        <UserID>{8F53D09C-20B9-E011-9FE5-00155D015E07}</UserID>
        <CRMVersion>5.0.9690.2243</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>


    Pravin K. Patil

  • Tuesday, July 31, 2012 1:54 PM
     
      Has Code

    Hi Pravin,

    I doubt you must have used Javascriptfunction on ribbon button. And your script is depended upon some JQuery library.

    For ex. below

    <JavaScriptFunction Library="$WebResource:new_shared_functions.js" FunctionName="NaN" />
    <JavaScriptFunction Library="$WebResource:new_account_form_examples.js" FunctionName="AccountFormOnLoad" />


    Just add the JQuery library with FunctionName="NaN" and you're good to go.

    Regards,

    Hiren.



  • Monday, October 29, 2012 9:22 AM
     
     

    Hi,

    i got the same error  in IE 8  

    ........

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Object doesn't support this property or method</Message>
       <Line>1</Line>

    <URL>/_static/_controls/ribbon/ribbon.js?ver=2076115191</URL>

    <PageURL>/userdefined/areas.aspx?oId=%7bdc85e2a2-7a1a-e011-838c-00155d015d07%7d&oType=10006&roleOrd=1&security=852023&tabSet=areaExampleRelationshipEntityName</PageURL>

    and so on

    .....................................................

    i  am in .aspx  page and calling ../userdefined/areas.aspx in iframe that time i am getting the error like the above in IE8

    so

    i have included the following line of code in my .aspx inside the body tag

      <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>

    or

    <asp:ScriptManager ID="ScriptManager1" runat="server">

    <Services>
          <asp:ServiceReference  Path="Your Web service path " />
     </Services>   

    </asp:ScriptManager>

    just include this line of code in your .aspx page and you don't get this error .

    change the  tabset  entity name as per  your relationship entity .

     

    Regards,

    Ram