Field Service 升级后,未定义 refreshMembershipStatusIcons

after Field Service upgrade, refreshMembershipStatusIcons is not defined

从版本 7.5.9.91 升级到版本 8.8.11.19 后,我在 UCI 上打开项目实体 msdyn_project 时开始遇到以下错误:

ReferenceError: refreshMembershipStatusIcons is not defined
    at eval (eval at executeFunction (https://ORGNAME.crm.dynamics.com/uclient/scripts/app.js?v=1.4.831-2005.2:1279:2768), <anonymous>:1:13)
    at eval (<anonymous>)
    at Nu.executeFunction (https://ORGNAME.crm.dynamics.com/uclient/scripts/app.js?v=1.4.831-2005.2:1279:2768)
    at Nu.execute (https://ORGNAME.crm.dynamics.com/uclient/scripts/app.js?v=1.4.831-2005.2:1279:2428)
    at iu (https://ORGNAME.crm.dynamics.com/uclient/scripts/app.js?v=1.4.831-2005.2:1271:62)
    at https://ORGNAME.crm.dynamics.com/uclient/scripts/app.js?v=1.4.831-2005.2:1275:23166
    at Array.map (<anonymous>)
    at Cu._getEventHandlerList (https://ORGNAME.crm.dynamics.com/uclient/scripts/app.js?v=1.4.831-2005.2:1275:22978)
    at Object.execute (https://ORGNAME.crm.dynamics.com/uclient/scripts/app.js?v=1.4.831-2005.2:1275:16253)
    at O._executeSyncAction (https://ORGNAME.crm.dynamics.com/uclient/scripts/app.js?v=1.4.831-2005.2:841:692) 

你知道这里可能出了什么问题吗?

转到项目实体表单的表单编辑器,验证表单属性,表单加载中可能注册了一个事件方法来触发来自特定库的此refreshMembershipStatusIcons方法。

可能这个 method/library 已经停用或重命名,并且依赖关系没有正确删除。尝试删除该事件处理程序并查看。 Read more

我们设法找到了答案 - Project 实体上的一个表单对其中一个 OOB js 函数处理程序进行了重复注册。 请检查给定实体中的所有表单,并确认每个函数仅注册一次。