微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

- 添加了事件接收器项目 - 保存冲突 - Sharepoint 2019

如何解决- 添加了事件接收器项目 - 保存冲突 - Sharepoint 2019

我有 itemAdded EventReceiver 的奇怪问题仅当 ListItem 有附件时。所谓的保存冲突错误当然会停止 EventReceiver。如果新的 ListItem 没有附件,则一切正常。

请看一下我的代码。也许你会找到解决它的方法

我已经尝试过allowunsafeupdates、eventfiringEnable/disable、item.SystemUpdate() 或.UpdateOverwriteVersion() 等。

这个 ER 的目标只是从其他列表中收集一些数据,计算附件等。 itemAdded 最适合的正常操作。

此外,我将触发与列表工作流(从 SharePoint Designer - 设置为手动)相关联的 - 分享您关于如何执行此操作的想法。

Sharepoint Server 2019 的最新更新(6 月 21 日)。

logops 方法用于保存一些日志 - 它不是我的 - 只是在网络中找到。

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,when an unkNown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries,but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

'''

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。