"Файл було змінено SHAREPOINT System" помилка при оновленні 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 System на 13 Червень 2009 00:25:30 +0530.]

Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Булевих Бадда, Булевих bSystemUpdate, Булевих bPreserveItemVersion, Булевих bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Булевих bHasNewDocId, String bstrVersion, Об'єктів& pvarAttachmentNames, Об'єктів& pvarAttachmentContents, Об'єктів& pvarProperties, Булевих bCheckOut, Булевих bCheckin, Булевих bMigration, Булевих bPublish) +0

Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Булевих Бадда, Булевих bSystemUpdate, Булевих bPreserveItemVersion, Булевих bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Булевих bHasNewDocId, String bstrVersion, Об'єктів& pvarAttachmentNames, Об'єктів& pvarAttachmentContents, Об'єктів& pvarProperties, Булевих bCheckOut, Булевих bCheckin, Булевих bMigration, Булевих bPublish) +203

[SPException: SampleFile/SampleFile_2009-06-11T18_57_00.xml файл був змінений SHAREPOINT System на 13 Червень 2009 00:25:30 +0530.]

Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Булевих Бадда, Булевих bSystemUpdate, Булевих bPreserveItemVersion, Булевих bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Булевих bHasNewDocId, String bstrVersion, Об'єктів& pvarAttachmentNames, Об'єктів& pvarAttachmentContents, Об'єктів& pvarProperties, Булевих bCheckOut, Булевих bCheckin, Булевих bMigration, Булевих bPublish) +251

Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Булевих Бадда, Булевих 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 SecureCode) +152

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(чекати зворотного виклику SecureCode, Об'єкт параметрів) +345

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated SecureCode) +86

Peoples.WebControls.CalendarExport.ExportData() +320

Peoples.WebControls.CalendarExport.ExportCalendar_Click(Об'єкт відправника, EventArgs E) +40

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

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

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

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

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection PostData) +36

System.Web.UI.Page.ProcessRequestMain(Булевих includeStagesBeforeAsyncPoint, Булевих includeStagesAfterAsyncPoint) +1565

5 Коментарі до "файл був змінений SHAREPOINT System" помилка при оновленні 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>