Hero Banner

Products Discussions

Share best practices and get the latest Microsoft product info

Reply
Highlighted
Level 1 Contributor

SharePoint 2016事件接收器无法触发问题

问题描述:
我们在sharepoint服务器场中发布了一个包含事件接收器的feature,用于接收子站点日程添加、修改、删除的事件。成功发布于场中,并且在子站点中激活功能,但接收器并没有无法触发问题,也没有相关的日志信息。

尝试解决:
目前的sharepoint版本是2016,由原sharepoint2010升级到sharepoint 2013后再次升级上来的。
初步检查后我们发现,在升级状态里面提示“数据库是最新的,但部分网站没有完全升级。”于是尝试升级。通过sharepoint powershell升级时,提示报错。

从日志中提取出的相关错误信息如下:
ERROR:
Feature upgrade incomplete for Feature 'SocialDataStore' (Id: 15/'fa8379c9-791a-4fb0-812e-d0cfcac809c8') in Site 'http://eip.hhcp.com.cn/location/hhcp_xiexm'. Exception: 值不在预期的范围内。
Feature upgrade action 'CustomUpgradeAction.CreateSitesDocumentsView' threw an exception upgrading Feature 'SocialDataStore' (Id: 15/'fa8379c9-791a-4fb0-812e-d0cfcac809c8') in Site 'http://eip.hhcp.com.cn/location/hhcp_xiexm': 值不在预期的范围内。
SocialDataStoreFeatureReceiver.FeatureUpgrading(http://eip.hhcp.com.cn/location/hhcp_xiexm) FAILED: System.ArgumentException: 值不在预期的范围内。 在 Microsoft.SharePoint.SPListTemplateCollection.get_Item(String strName) 在 Microsoft.SharePoint.Portal.SocialDataStoreFeatureReceiver.CreateSitesDocumentsView(SPWeb web) 在 Microsoft.SharePoint.Portal.SocialDataStoreFeatureReceiver.FeatureUpgrading(SPFeatureReceiverProperties properties, String upgradeActionName, IDictionary`2 parameters)
WARNING:
Feature could not be upgraded. Exception: 功能定义 ID“e8389ec7-70fd-4179-a1c4-6fcb4342d7a0”无法找到。
Exception occured when querying feature with id [a3ad0ebd-6366-4c7b-87a1-e5b1e85c5ac0], skipping. Microsoft.SharePoint.SPException: Failed to find the XML file at location '16\Template\Features\HHPortal.SharePoint2016.ProjectSystem_Projects\feature.xml' 在 Microsoft.SharePoint.SPXmlDocCache.GetGlobalXmlDocument(String pathTemplateRelativeXml, SPFeatureDefinition featdef, Int32 compatibilityLevel) 在 Microsoft.SharePoint.Administration.SPFarmFeatureDefinitionContext.LoadFileAsXmlDocument(SPFeatureDefinition featdef, String featureRelativePath) 在 Microsoft.SharePoint.Administration.SPFeatureDefinition.EnsureGlobalDefinition() 在 Microsoft.SharePoint.Administration.SPFeatureDefinition.get_Scope() 在 Microsoft.SharePoint.Upgrade.SPUpgradeSession.PopulateFeaturesTable(StringBuilder sqlstr)

猜测:
1、事件接收器没有触发可能由于版本升级不完全导致。
2、升级失败均提示与名为SocialDataStore的feature有关,目前不确定该feature是否影响网站正常运行,所以没有暂时没有做操作。

1 ACCEPTED SOLUTION

Accepted Solutions
Level 6 Contributor
1 REPLY 1
Level 6 Contributor