"Datoteka je modificirana prema SharePoint system" Greška pri ažuriranju InfoPath xml datoteke u SharePoint biblioteci

Ako pokušate ažuriranje InfoPath xml datoteke kroz objektni model u događajima / WebParts ili kroz bilo koji medij.

Dok execting na Item.Update() će uzrokovati pogrešku ispod. Dok ažuriranje datoteke u InfoPath xml ListItem
datoteku i ListItem objekt uzimajući rastavljen.

Item.File.Update() će riješiti vaš problem.

StackTrace od Error:

[COMException (0x81020037): File SampleFile/SampleFile_2009-06-11T18_57_00.xml je izmijenjena SharePoint sustava na 13 Lipnja 2009 00:25:30 +0530.]

Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Booleova bAdd, Booleova bSystemUpdate, Booleova bPreserveItemVersion, Booleova bUpdateNoVersion, Int32& PLID, Niz& pbstrGuid, Guid pbstrNewDocId, Booleova bHasNewDocId, String bstrVersion, Objekt& pvarAttachmentNames, Objekt& pvarAttachmentContents, Objekt& pvarProperties, Booleova bCheckOut, Booleova bCheckin, Booleova bMigration, Booleova bPublish) +0

Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Booleova bAdd, Booleova bSystemUpdate, Booleova bPreserveItemVersion, Booleova bUpdateNoVersion, Int32& PLID, Niz& pbstrGuid, Guid pbstrNewDocId, Booleova bHasNewDocId, String bstrVersion, Objekt& pvarAttachmentNames, Objekt& pvarAttachmentContents, Objekt& pvarProperties, Booleova bCheckOut, Booleova bCheckin, Booleova bMigration, Booleova bPublish) +203

[SPException: File SampleFile/SampleFile_2009-06-11T18_57_00.xml je izmijenjena SharePoint sustava na 13 Lipnja 2009 00:25:30 +0530.]

Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Booleova bAdd, Booleova bSystemUpdate, Booleova bPreserveItemVersion, Booleova bUpdateNoVersion, Int32& PLID, Niz& pbstrGuid, Guid pbstrNewDocId, Booleova bHasNewDocId, String bstrVersion, Objekt& pvarAttachmentNames, Objekt& pvarAttachmentContents, Objekt& pvarProperties, Booleova bCheckOut, Booleova bCheckin, Booleova bMigration, Booleova bPublish) +251

Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Booleova bAdd, Booleova bSystem, Booleova bPreserveItemVersion, Booleova bNoVersion, Booleova bMigration, Booleova bPublish, Booleova bCheckOut, Booleova bCheckin, Guid newGuidOnAdd, Int32& ulID, Objekt& objAttachmentNames, Objekt& objAttachmentContents, Booleova suppressAfterEvents) +1026

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

Microsoft.SharePoint.SPListItem.SystemUpdate() +97

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

Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Objekt država) +70

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

Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated SecureCode) +152

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback SecureCode, Objekt param) +345

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

Peoples.WebControls.CalendarExport.ExportData() +320

Peoples.WebControls.CalendarExport.ExportCalendar_Click(Objekt pošiljatelja, 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(Booleova includeStagesBeforeAsyncPoint, Booleova includeStagesAfterAsyncPoint) +1565

5 comments to “The file has been modified by SHAREPOINT\system” Error while Updating InfoPath xml file in SharePoint Library

Dopust jedan Odgovor

Možete koristiti te tags HTML

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