“該文件已被修改由SharePoint 系統”的錯誤,同時更新InfoPath XML文件在SharePoint庫

如果您嘗試更新InfoPath XML文件對象模型,通過在活動 /或通過任何媒介的WebParts.

雖然 execting的Item.Update() 將導致以下錯誤. 在更新的InfoPath XML文件的ListItem
該文件並 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>