简体   繁体   English

没有javascript自定义的CRM 2011会出现加载错误

[英]Crm 2011 with no javascript customizations gives onload errors

we are getting the following error in almost all create or edit entity forms. 我们几乎在所有创建或编辑实体形式中都遇到以下错误。 the systems is not customized at all and it works perfectly: 这些系统根本不是定制的,并且可以完美地工作:

There was an error in the fields customized event. 字段自定义事件中存在错误。 field:window event:onload error: object doesn't support this property or method 字段:窗口事件:加载错误: 对象不支持此属性或方法

after debugging the error I found out that it is happening in FormScript.js.aspx page in the following code block: 调试错误后,我发现在以下代码块的FormScript.js.aspx页中发生了该错误:

var eContext=Mscrm.FormUtility.constructExecutionObject(eventObj,0,null,null);
eContext=Mscrm.FormUtility.constructExecutionObject(eventObj,0,null,eContext)
Mscrm.Form_onload();

Mscrm.Form_onload() is what causing the error to happen. Mscrm.Form_onload()是导致错误发生的原因。 do you have any idea why is this happening? 你知道为什么会这样吗?

It was a server side problem. 这是一个服务器端的问题。 I don't know exactly why it happens. 我不知道为什么会这样。 we also tried to do an installation repair but that didn't solve it. 我们也试图做一个安装维修,但没有解决问题。 Finally, we installed a fresh CRM 2011 copy on a new server, imported the database and ran Data migration manager. 最后,我们在新服务器上安装了新的CRM 2011副本,导入了数据库并运行了数据迁移管理器。 and the error disappeared. 错误消失了。

Are you absolutely positive there is no script attached to run on load of any of the entities that are having issues? 你绝对肯定就没有附着于任何被有问题的实体负荷运行脚本? That particular function should just run any custom script you have on the entity, so I don't see any other cause. 这种特定的功能应该只是运行您对实体的任何自定义脚本,所以我没有看到任何其他原因。

Odd, there is certainly some garbage in there somewhere 奇怪的是,那里肯定有一些垃圾

function crmForm_window_onload_handler(eventObj,eventArgs){
  try{
    var eContext=Mscrm.FormUtility.constructExecutionObject(eventObj,0,null,null);
    eContext=Mscrm.FormUtility.constructExecutionObject(eventObj,0,null,eContext)
    loadInsideView();
    eContext=Mscrm.FormUtility.constructExecutionObject(eventObj,1,null,eContext)
    CEI.Initialize();
  } catch(e) {
    displayError('window', 'onload', e.description);
  }
}

Here is one from our system on the account form. 这是来自我们系统上的帐户表格之一。 I have no idea how this could have happened, but I would check the events for the page (not just the onload). 我不知道这是怎么发生的,但是我会检查页面的事件(不仅仅是onload)。 I would also try adding a JavaScript web resource with a generic event to the onload to see if by toggling it on, the system might clean itself up. 我还将尝试将具有通用事件的JavaScript Web资源添加到onload,以查看是否通过切换将其清理干净。 You may have to call Microsoft or find the issue in your 4.0 and fix it to do another re-install. 您可能必须致电Microsoft或在您的4.0中找到问题,然后修复它以进行其他重新安装。 I feel for you on this one! 我对你感到这一点!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM