locked
CRM 2011 upgrade very strange error onsaveandclose RRS feed

  • Question

  • I'm working on an upgrade from CRM 4.0 to 2011. I set up a test environment to do the upgrade. It went off without a problem, but I needed to update some of the JScripts on the account and contact entities. All of that has gone well and I figured I was done and had the client test but they've come across an unusual problem:

    On the account and contact entities, if you open the form, click on any of the associated view links, then return the the general view, then saveandclose, you get the error at the bottom of this post. Bear in mind, no information or relationships on the form or to the entity are being updated. The IsDirty property of the form is returning false. I was unable to reproduce this error from my browser, but when I tried it from a few other computers, it would happen intermittently. I've disabled all of the JScript events and am the administrator in the environment. Any ideas on the origins of this error? Thanks in advanced for your help.

    Microsoft Dynamics CRM Error Report Contents

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Permission denied</Message>
       <Line>1</Line>
       <URL>/_static/_common/scripts/main.js?ver=2010643609</URL>
       <PageURL>/main.aspx?etc=1&extraqs=%3f_gridType%3d1%26etc%3d1%26id%3d%257b871630B0-B7A8-E011-AA91-005056A86AA5%257d%26pagemode%3diframe%26preloadcache%3d1332964115023%26rskey%3d223615519&pagetype=entityrecord</PageURL>
       <Function>anonymous($p0,$p1){try{if(!IsNull($p0)){var$v_0=String.format("Timestamp:Loaded={0},Updated={1},Saved={2}{3}{4}",this.$X_3.toString(),!IsNull(this.$J_3)?this.$J_3.toString():(newDate).toString(),!IsNull(this.$R_3)?this.$R_3.toString():"",this.$2_3,$p0);th</Function>
       <CallStack>
        <Function>anonymous($p0,$p1){try{if(!IsNull($p0)){var$v_0=String.format("Timestamp:Loaded={0},Updated={1},Saved={2}{3}{4}",this.$X_3.toString(),!IsNull(this.$J_3)?this.$J_3.toString():(newDate).toString(),!IsNull(this.$R_3)?this.$R_3.toString():"",this.$2_3,$p0);this.get_element().setAttribute(this.$P_3,$v_0)}}catch($$e_1_0){var$v_1=String.format("Timestamp:Loaded={0},Updated={1},Saved={2}{3}{4}",this.$X_3.toString(),this.$J_3.toString(),!IsNull(this.$R_3)?this.$R_3.toString():"",this.$2_3,$p1);this.get_element().setAttribute(this.$P_3,$v_1)}this.get_element().save("RVItems")}</Function>
        <Function>anonymous($p0){$p0=$p0.trim();for(var$v_0=$p0.split(this.$2_3),$v_1=newArray(0),$v_2=newArray(0),$v_3=false,$v_4=0;$v_4<$v_0.length;$v_4++){var$v_5=$v_0[$v_4].split(this.$3_3);try{var$v_6=parseInt($v_5[0]);if($v_6===1)$v_2[$v_2.length]=$v_0[$v_4];else$v_1[$v_1.length]=$v_0[$v_4]}catch($v_7){$v_3=true}}if($v_2.length>this.$C_3){var$v_8=$v_2.length-this.$C_3;$v_2.sort(this.$T);for(var$v_9=0;$v_9<this.$C_3;$v_9++)$v_2[$v_9]=$v_2[$v_9+$v_8];$v_2.length=this.$C_3;$v_3=true}if($v_1.length>this.$B_3){var$v_A=$v_1.length-this.$B_3;$v_2.sort(this.$T);for(var$v_B=0;$v_B<this.$B_3;$v_B++)$v_1[$v_B]=$v_1[$v_B+$v_A];$v_1.length=this.$B_3;$v_3=true}if($v_3){var$v_C=$v_2.join(this.$2_3);$v_C=$v_C+this.$2_3+$v_1.join(this.$2_3);$v_C=$v_C.trim();this.$G_3($v_C,$v_C);$p0=$v_C}return$p0}</Function>
        <Function>anonymous($p0){this.$X_3=this.$18_3;var$v_0=this.$g_3($p0);$v_0=this.$13_3($v_0);this.$G_3($v_0,$v_0);for(var$v_1=0;$v_1<this.$I_3.length;$v_1++){var$v_2=this.$I_3[$v_1];$v_2($v_0)}this.$I_3=newArray(0);return$v_0}</Function>
        <Function>anonymous($p0,$p1){var$v_0=null;if($p0.Success){$v_0=$p0.ReturnValue;this.$15_3($v_0)}this.$k_3=false}</Function>
        <Function>anonymous(){returnb.apply(a,arguments)}</Function>
        <Function>readyStateChanged()</Function>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 3.0.30729)</BrowserUserAgent>
       <BrowserLanguage>en-us</BrowserLanguage>
       <SystemLanguage>en-us</SystemLanguage>
       <UserLanguage>en-us</UserLanguage>
       <ScreenResolution>1920x1200</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2012-03-28T13:48:39</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>1033</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>1033</UserCulture>
        <OrgID>{55AE7891-3D5F-E111-A17C-3408042A42B9}</OrgID>
        <UserID>{86A8CF9B-3D5F-E111-A17C-3408042A42B9}</UserID>
        <CRMVersion>5.0.9690.1992</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Permission denied</Message>
       <Line>1</Line>
       <URL>/_static/_controls/LookupMru/LookupMruList.js?ver=2010643609</URL>
       <PageURL>/main.aspx?etc=1&extraqs=%3f_gridType%3d1%26etc%3d1%26id%3d%257b871630B0-B7A8-E011-AA91-005056A86AA5%257d%26pagemode%3diframe%26preloadcache%3d1332964115023%26rskey%3d223615519&pagetype=entityrecord</PageURL>
       <Function>anonymous($p0){var$v_0=null;try{$v_0=this.$k_3();if(!IsNull($p0)){var$v_1=String.format("Timestamp:Loaded={0},Updated={1},Saved={2}{3}{4}",this.$H_3.toString(),!IsNull(this.$A_3)?this.$A_3.toString():(newDate).toString(),!IsNull(this.$9_3)?this.$9_3.toStr</Function>
       <CallStack>
        <Function>anonymous($p0){var$v_0=null;try{$v_0=this.$k_3();if(!IsNull($p0)){var$v_1=String.format("Timestamp:Loaded={0},Updated={1},Saved={2}{3}{4}",this.$H_3.toString(),!IsNull(this.$A_3)?this.$A_3.toString():(newDate).toString(),!IsNull(this.$9_3)?this.$9_3.toString():"","\n",$p0);this.get_element().setAttribute(this.$J_3,$v_1)}}catch($$e_1_0){if(!IsNull($v_0)){var$v_2=String.format("Timestamp:Loaded={0},Updated={1},Saved={2}{3}{4}",this.$H_3.toString(),this.$A_3.toString(),!IsNull(this.$9_3)?this.$9_3.toString():"","\n",$v_0);this.get_element().setAttribute(this.$J_3,$v_2)}}this.get_element().save("LookupMruItems")}</Function>
        <Function>anonymous($p0){this.$H_3=this.$19_3;var$v_0=this.$14_3($p0);$v_0=this.$15_3($v_0);this.$W_3($v_0);for(var$v_1=0;$v_1<this.$F_3.length;$v_1++){var$v_2=this.$F_3[$v_1];$v_2($v_0)}this.$F_3=newArray(0);return$v_0}</Function>
        <Function>anonymous($p0,$p1){var$v_0=null;if($p0.Success){$v_0=$p0.ReturnValue;this.$16_3($v_0)}this.$j_3=false}</Function>
        <Function>anonymous(){returnb.apply(a,arguments)}</Function>
        <Function>readyStateChanged()</Function>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 3.0.30729)</BrowserUserAgent>
       <BrowserLanguage>en-us</BrowserLanguage>
       <SystemLanguage>en-us</SystemLanguage>
       <UserLanguage>en-us</UserLanguage>
       <ScreenResolution>1920x1200</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2012-03-28T13:48:39</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>1033</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>1033</UserCulture>
        <OrgID>{55AE7891-3D5F-E111-A17C-3408042A42B9}</OrgID>
        <UserID>{86A8CF9B-3D5F-E111-A17C-3408042A42B9}</UserID>
        <CRMVersion>5.0.9690.1992</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>'undefined' is null or not an object</Message>
       <Line>228</Line>
       <URL>/%7B634683642270000000%7D/WebResources/Account_main_library.js?ver=2010643609</URL>
       <PageURL>/userdefined/edit.aspx?_gridType=1&etc=1&id=%7b871630B0-B7A8-E011-AA91-005056A86AA5%7d&pagemode=iframe&preloadcache=1332964115023&rskey=223615519</PageURL>
       <Function>anonymous(){if(iframe.readyState=="complete"){varpicklist,option;variframeDoc=iframe.contentWindow.document;switch(sArea){case"areaActivityHistory":picklist=iframeDoc.all.actualend[0];option=HistoryOptions.All;break;case"areaActivities":picklist=iframeDoc</Function>
       <CallStack>
        <Function>anonymous(){if(iframe.readyState=="complete"){varpicklist,option;variframeDoc=iframe.contentWindow.document;switch(sArea){case"areaActivityHistory":picklist=iframeDoc.all.actualend[0];option=HistoryOptions.All;break;case"areaActivities":picklist=iframeDoc.all.scheduledend[0];option=ActivityOptions.All;break;default:return;}picklist.value=option;picklist.FireOnChange();}}</Function>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 3.0.30729)</BrowserUserAgent>
       <BrowserLanguage>en-us</BrowserLanguage>
       <SystemLanguage>en-us</SystemLanguage>
       <UserLanguage>en-us</UserLanguage>
       <ScreenResolution>1920x1200</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2012-03-28T13:48:50</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>1033</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>1033</UserCulture>
        <OrgID>{55AE7891-3D5F-E111-A17C-3408042A42B9}</OrgID>
        <UserID>{86A8CF9B-3D5F-E111-A17C-3408042A42B9}</UserID>
        <CRMVersion>5.0.9690.1992</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>

     


    ME

    Wednesday, March 28, 2012 7:57 PM

Answers

  • Hi,

                    I would check what it is in the line 228 on the Account_main_library.js webresource, maybe adding a debugger before that line would help you identify the undefined variable on that script. Notice that even when you disable the script the reference you have will still load as part of the form.


    Regards,
    Damian Sinay

    Thursday, March 29, 2012 6:40 AM

All replies

  • Hi,

                    I would check what it is in the line 228 on the Account_main_library.js webresource, maybe adding a debugger before that line would help you identify the undefined variable on that script. Notice that even when you disable the script the reference you have will still load as part of the form.


    Regards,
    Damian Sinay

    Thursday, March 29, 2012 6:40 AM
  • Hi. Like I said, I've disabled the script and even gone so far now as to remove the webresource entirely but I'm still getting the permission denied error. Even if I just X out of the form, closing w/o saving, I can still get it.

    ME

    Thursday, March 29, 2012 2:58 PM
  • crm_question_guy -

    Have you tried clearing your IE Cache?  It is possible that some controls are cached from V4 and the browser is attempting to use them in Crm 2011.  Post back if that does not resolve your issue.

    Thanks,

    Brandon

    Thursday, March 29, 2012 10:09 PM