没有 javascript 自定义的 Crm 2011 会出现加载错误
我们在几乎所有创建或编辑实体表单中都会收到以下错误。系统根本没有定制,但运行完美:
定制事件字段中存在错误。 字段:窗口 事件:加载 错误:对象不支持此属性或方法
调试错误后,我发现它发生在 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() 是导致的原因发生的错误。 你知道为什么会发生这种情况吗?
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:
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.
do you have any idea why is this happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是服务器端的问题。我不知道为什么会发生这种情况。我们还尝试进行安装修复,但没有解决问题。最后,我们在新服务器上安装了全新的 CRM 2011 副本,导入数据库并运行数据迁移管理器。错误消失了。
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. 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.
奇怪的是,那里肯定有一些垃圾,
这是我们系统中帐户表单上的垃圾。我不知道这是怎么发生的,但我会检查页面的事件(不仅仅是加载)。我还会尝试将带有通用事件的 JavaScript Web 资源添加到 onload,看看通过打开它,系统是否可以自行清理。您可能需要致电 Microsoft 或在 4.0 中找到问题并修复它才能再次重新安装。我对你有这种感觉!
Odd, there is certainly some garbage in there somewhere
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). 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. You may have to call Microsoft or find the issue in your 4.0 and fix it to do another re-install. I feel for you on this one!