莫斯问题:您的更改与同时进行的更改冲突

发布于 2024-08-13 21:28:56 字数 476 浏览 3 评论 0原文

我想在激活某些功能时更新列表的某些查找字段。为了解决这个问题,我为该功能制作了一个 SPFeatureReceiver。我调试我的代码,一切都很完美,直到我这样做:

sourceField.SchemaXml = sourceField.SchemaXml.Replace("列表=\"\"", string.Format("列表=\"{0}\"", targetGuid));

我不明白为什么会发生这种情况,因为我将 AllowUnsafeUpdate 设置为 true。

我得到的例外是:

[Microsoft.SharePoint.SPException] = {"Save Conflict\n\n您的更改与其他用户同时进行的更改冲突。如果您希望应用更改,请在 Web 浏览器中单击“返回”,然后刷新页面,然后重新提交您的更改。”}

请尽快帮助我,谢谢

Abel

I want to update some lookup field of a list when some feature is activated. To deal with this I made a SPFeatureReceiver for the feature. I debug my code and every thing was perfect until I do this:

sourceField.SchemaXml =
sourceField.SchemaXml.Replace("List=\"\"",
string.Format("List=\"{0}\"",
targetGuid));

I dont understand why this happens because I am setting the AllowUnsafeUpdate to true.

The exception that I get is:

[Microsoft.SharePoint.SPException] = {"Save Conflict\n\nYour changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes."}

Please help me asap, thanks

Abel

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文