导航机会相关实体时,CRM Outlook Client会引发错误

时间:2013-10-21 09:34:50

标签: javascript exception dynamics-crm-2011 outlook-addin

如果在远程或在线的Outlook for CRM2011客户端上导航,在关闭机会表单后,在我单击“相关”部分后,会随机出现两条不同的错误消息。

我点击哪个相关项目无关紧要,每一个都会发生。

第一个错误:

   <Message>Object doesn't support this action</Message>
   <Line>1</Line>
   <URL>/_static/_common/scripts/PageLoader.js?ver=24974061</URL>
   <PageURL>/main.aspx?etc=3&extraqs=%3fetc%3d3%26id%3d%257bED62CF68-7336-E311-B2FB-00155DCE57C4%257d%26pagemode%3diframe%26preloadcache%3d1382347798987&pagetype=entityrecord</PageURL>
   <Function>executeAction(action)</Function>
   <CallStack>
    <Function>executeAction(action)</Function>
   </CallStack>
  </ScriptErrorDetails>
  <ClientInformation>
   <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MSNIE9A; Microsoft Outlook 14.0.6126)</BrowserUserAgent>
   <BrowserLanguage>en-US</BrowserLanguage>
   <SystemLanguage>de-DE</SystemLanguage>
   <UserLanguage>de-DE</UserLanguage>
   <ScreenResolution>1920x1200</ScreenResolution>
   <ClientName>Outlook Laptop - Online</ClientName>

第二个错误:

ScriptErrorDetails>
   <Message>Object doesn't support this action</Message>
   <Line>1</Line>
   <URL>/_static/_controls/ribbon/ribbon.js?ver=24974061</URL>
   <PageURL>/main.aspx?etc=3&extraqs=%3fetc%3d3%26id%3d%257bED62CF68-7336-E311-B2FB-00155DCE57C4%257d%26pagemode%3diframe%26preloadcache%3d1382347474700&pagetype=entityrecord</PageURL>
   <Function>anonymous(){try{$$t_4.$8D_3($p0,$p1)}catch($v_1){if($v_1.number!==-2146823277)throw$v_1}}</Function>
   <CallStack>
    <Function>anonymous(){try{$$t_4.$8D_3($p0,$p1)}catch($v_1){if($v_1.number!==-2146823277)throw$v_1}}</Function>
   </CallStack>
  </ScriptErrorDetails>
  <ClientInformation>
   <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MSNIE9A; Microsoft Outlook 14.0.6126)</BrowserUserAgent>
   <BrowserLanguage>en-US</BrowserLanguage>
   <SystemLanguage>de-DE</SystemLanguage>
   <UserLanguage>de-DE</UserLanguage>
   <ScreenResolution>1920x1200</ScreenResolution>
   <ClientName>Outlook Laptop - Online</ClientName>

我尝试在机会表单上禁用所有自定义JS代码,但仍然出现错误。

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

我修好了。

在我们的结构中,我们为每个实体获得了JS合同和控制器。 在本设计之后,我们在contrat上使用了Enable Rules,它在Controller中调用了真正的启用规则。

由于某些原因,在启用启用规则时,可能未在Moment上加载Controller。所以我们得到了奇怪的ribbon.js错误。

在合同中移动启用规则后一切正常。