- 添加了事件接收器项目 - 保存冲突 - 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 (将#修改为@)