“该文件已被由SharePoint 系统的改进”的错误,同时更新InfoPath XML文件在SharePoint库

如果您尝试更新的InfoPath的XML对象模型,通过在/的WebParts或通过任何媒介事件文件.

虽然execting的Item.Update() 将导致以下错误. 虽然更新的ListItem的InfoPath XML文件
该文件并ListItem对象断线.

Item.File.Update() 将解决您的问题.

误差的StackTrace:

[COMException (0x81020037): 该文件已被修改SampleFile/SampleFile_2009-06-11T18_57_00.xml由SharePoint 系统 13 六月 2009 00:25:30 +0530.]

Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(弦乐bstrUrl, 弦乐bstrListName, 布尔bAdd, 布尔bSystemUpdate, 布尔bPreserveItemVersion, 布尔bUpdateNoVersion, Int32的& plID, 字符串& pbstrGuid, Guid的pbstrNewDocId, 布尔bHasNewDocId, 弦乐bstrVersion, 对象& pvarAttachmentNames, 对象& pvarAttachmentContents, 对象& pvarProperties, 布尔bCheckOut, 布尔bCheckin, 布尔bMigration, 布尔bPublish) +0

Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(弦乐bstrUrl, 弦乐bstrListName, 布尔bAdd, 布尔bSystemUpdate, 布尔bPreserveItemVersion, 布尔bUpdateNoVersion, Int32的& plID, 字符串& pbstrGuid, Guid的pbstrNewDocId, 布尔bHasNewDocId, 弦乐bstrVersion, 对象& pvarAttachmentNames, 对象& pvarAttachmentContents, 对象& pvarProperties, 布尔bCheckOut, 布尔bCheckin, 布尔bMigration, 布尔bPublish) +203

[SPException: 该文件已被修改SampleFile/SampleFile_2009-06-11T18_57_00.xml由SharePoint 系统 13 六月 2009 00:25:30 +0530.]

Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(弦乐bstrUrl, 弦乐bstrListName, 布尔bAdd, 布尔bSystemUpdate, 布尔bPreserveItemVersion, 布尔bUpdateNoVersion, Int32的& plID, 字符串& pbstrGuid, Guid的pbstrNewDocId, 布尔bHasNewDocId, 弦乐bstrVersion, 对象& pvarAttachmentNames, 对象& pvarAttachmentContents, 对象& pvarProperties, 布尔bCheckOut, 布尔bCheckin, 布尔bMigration, 布尔bPublish) +251

Microsoft.SharePoint.SPListItem.AddOrUpdateItem(布尔bAdd, 布尔bSystem, 布尔bPreserveItemVersion, 布尔bNoVersion, 布尔bMigration, 布尔bPublish, 布尔bCheckOut, 布尔bCheckin, Guid的newGuidOnAdd, Int32的& ulID, 对象& objAttachmentNames, 对象& objAttachmentContents, 布尔suppressAfterEvents) +1026

Microsoft.SharePoint.SPListItem.UpdateInternal(布尔bSystem, 布尔bPreserveItemVersion, Guid的newGuidOnAdd, 布尔bMigration, 布尔bPublish, 布尔bNoVersion, 布尔bCheckOut, 布尔bCheckin, 布尔suppressAfterEvents) +182

Microsoft.SharePoint.SPListItem.SystemUpdate() +97

Peoples.WebControls。<>c__DisplayClass1。<的ExportData>b__0() +993

Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(对象状态) +70

Microsoft.SharePoint程序。<>c__DisplayClass4。<RunWithElevatedPrivileges>b__2() +392

Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated安全码) +152

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(等待回调安全码, 对象参数) +345

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated安全码) +86

Peoples.WebControls.CalendarExport.ExportData() +320

Peoples.WebControls.CalendarExport.ExportCalendar_Click(发送对象, EventArgs五) +40

System.Web.UI.WebControls.Button.OnClick(EventArgs五) +111

System.Web.UI.WebControls.Button.RaisePostBackEvent(弦乐eventArgument) +110

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(弦乐eventArgument) +10

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, 弦乐eventArgument) +13

System.Web.UI.Page.RaisePostBackEvent(的NameValueCollection postData) +36

System.Web.UI.Page.ProcessRequestMain(布尔includeStagesBeforeAsyncPoint, 布尔includeStagesAfterAsyncPoint) +1565

5 意见“的文件已被修改由SharePoint 系统”,同时更新InfoPath XML文件SharePoint库中的错误

给一个答复

你可以使用 这些HTML标签

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>