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

Error when changing entities on the navbar

$
0
0

I was asked to tidy up and change the security roles on the xRM system that is being developed, in readiness for the pilot phase next year.  Since removing the OoB security roles that are not required and adding in the roles that are required (changing some of the existing names).  I now get this error;

Microsoft Dynamics CRM Error Report Contents

<CrmScriptErrorReport>
  <ReportVersion>1.0</ReportVersion>
  <ScriptErrorDetails>
   <Message>Unable to get property 'getFormType' of undefined or null reference</Message>
   <Line>213</Line>
   <URL>/dashboards/dashboard.aspx?dashboardId=%7b5d431800-1270-40e9-a90a-c970556cf0fe%7d&dashboardType=1030&pagemode=iframe</URL>
   <PageURL>/dashboards/dashboard.aspx?dashboardId=%7b5d431800-1270-40e9-a90a-c970556cf0fe%7d&dashboardType=1030&pagemode=iframe</PageURL>
   <Function>anonymous(){if(Xrm.Page.ui.getFormType()!==1){varserverUrl=Xrm.Page.context.getClientUrl();if(serverUrl.match(/\/$/)){serverUrl=serverUrl.substring(0,serverUrl.length-1);}varquery="/sfc_employerengagementSet(guid'"+Xrm.Page.data.entity.getId()+"')?$select</Function>
   <FunctionRaw>function () {
        if (Xrm.Page.ui.getFormType() !== 1) {
            var serverUrl = Xrm.Page.context.getClientUrl();

            if (serverUrl.match(/\/$/)) {
                serverUrl = serverUrl.substring(0, serverUrl.length - 1);
          </FunctionRaw>
   <CallStack>
    <Function>anonymous(){if(Xrm.Page.ui.getFormType()!==1){varserverUrl=Xrm.Page.context.getClientUrl();if(serverUrl.match(/\/$/)){serverUrl=serverUrl.substring(0,serverUrl.length-1);}varquery="/sfc_employerengagementSet(guid'"+Xrm.Page.data.entity.getId()+"')?$select=sfc_employerengagement_sfc_engagementtopi/sfc_workprogrammeactivity,sfc_employerengagement_sfc_engagementtopi/sfc_year&$expand=sfc_employerengagement_sfc_engagementtopi";varODataURL=serverUrl+"/XRMServices/2011/OrganizationData.svc"+query;$.ajax({type:"GET",contentType:"application/json;charset=utf-8",datatype:"json",url:ODataURL,beforeSend:function(XMLHttpRequest){XMLHttpRequest.setRequestHeader("Accept","application/json");},success:function(data,textStatus,XmlHttpRequest){varwpa="";$.each(data.d.sfc_employerengagement_sfc_engagementtopi.results,function(index,value){varyear=value.sfc_year.Value;varyearString=year.toString().substr(2,2);yearString+="/";year++;yearString+=year.toString().substr(2,2);yearString+="";wpa+=yearString;wpa+="";wpa+=value.sfc_workprogrammeactivity;wpa+=",";});if(wpa.length>0){wpa=wpa.substr(0,wpa.length-2);}if(wpa!==Xrm.Page.getAttribute("sfc_workprogrammeactivity").getValue()){if(wpa===''&&Xrm.Page.getAttribute("sfc_workprogrammeactivity").getValue()===null){return;}Xrm.Page.getAttribute("sfc_workprogrammeactivity").setValue(wpa);Xrm.Page.data.entity.save();}},error:function(XmlHttpRequest,textStatus,errorObject){////Handleresultfromunsuccessfulexecution//alert("ODataExecutionErrorOccurred");}});}}</Function>
   </CallStack>
  </ScriptErrorDetails>
  <ClientInformation>
   <BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/7.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-GB</SystemLanguage>
   <UserLanguage>en-GB</UserLanguage>
   <ScreenResolution>1455x818</ScreenResolution>
   <ClientName>Web</ClientName>
   <ClienState>Online</ClienState>
   <ClientTime>2015-11-27T09:30:28</ClientTime>
  </ClientInformation>
  <ServerInformation>
    <OrgLanguage>1033</OrgLanguage>
    <OrgCulture>1033</OrgCulture>
    <UserLanguage>1033</UserLanguage>
    <UserCulture>2057</UserCulture>
    <OrgID>{EAE11F30-DF56-E511-93FD-00505687547F}</OrgID>
    <UserID>{DA449788-6A67-E511-93FD-00505687547F}</UserID>
    <CRMVersion>7.0.0.3543</CRMVersion>
  </ServerInformation>
</CrmScriptErrorReport>

Does anyone know how to solve this error please?


Viewing all articles
Browse latest Browse all 55831

Trending Articles



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