Przy próbie aktualizacji z pliku XML InfoPath przez model obiektowy w imprezach / WebParts lub za pośrednictwem dowolnego medium.
Podczas execting Item.Update() spowoduje poniżej błędu. Podczas aktualizacji programu InfoPath pliku xml w ListItem
pliku i ListItem obiekt coraz odłączony.
Item.File.Update() rozwiąże problemu.
StackTrace błędu:
[COMException (0x81020037): Plik SampleFile/SampleFile_2009-06-11T18_57_00.xml została zmodyfikowana przez SHAREPOINT system 13 Czerwca 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(bstrUrl String, bstrListName String, Boolean Badd, bSystemUpdate Boolean, bPreserveItemVersion Boolean, bUpdateNoVersion Boolean, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, bstrVersion String, Obiekt& pvarAttachmentNames, Obiekt& pvarAttachmentContents, Obiekt& pvarProperties, bCheckOut Boolean, bCheckin Boolean, bMigration Boolean, Boolean bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(bstrUrl String, bstrListName String, Boolean Badd, bSystemUpdate Boolean, bPreserveItemVersion Boolean, bUpdateNoVersion Boolean, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, bstrVersion String, Obiekt& pvarAttachmentNames, Obiekt& pvarAttachmentContents, Obiekt& pvarProperties, bCheckOut Boolean, bCheckin Boolean, bMigration Boolean, Boolean bPublish) +203
[SPException: Plik SampleFile/SampleFile_2009-06-11T18_57_00.xml została zmodyfikowana przez SHAREPOINT system 13 Czerwca 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(bstrUrl String, bstrListName String, Boolean Badd, bSystemUpdate Boolean, bPreserveItemVersion Boolean, bUpdateNoVersion Boolean, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, bstrVersion String, Obiekt& pvarAttachmentNames, Obiekt& pvarAttachmentContents, Obiekt& pvarProperties, bCheckOut Boolean, bCheckin Boolean, bMigration Boolean, Boolean bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean Badd, bSystem Boolean, bPreserveItemVersion Boolean, bNoVersion Boolean, bMigration Boolean, Boolean bPublish, bCheckOut Boolean, bCheckin Boolean, Guid newGuidOnAdd, Int32& ulID, Obiekt& objAttachmentNames, Obiekt& objAttachmentContents, Boolean suppressAfterEvents) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(bSystem Boolean, bPreserveItemVersion Boolean, Guid newGuidOnAdd, bMigration Boolean, Boolean bPublish, bNoVersion Boolean, bCheckOut Boolean, bCheckin Boolean, Boolean suppressAfterEvents) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(stanu obiektu) +70 Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated SecureCode) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(czekać callback SecureCode, Obiekt param) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated SecureCode) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(Obiekt nadawcy, EventArgs e) +40 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(eventArgument String) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(eventArgument String) +10 System.Web.UI.Page.RaisePostBackEvent(sourceControl IPostBackEventHandler, eventArgument String) +13 System.Web.UI.Page.RaisePostBackEvent(postData NameValueCollection) +36 System.Web.UI.Page.ProcessRequestMain(includeStagesBeforeAsyncPoint Boolean, includeStagesAfterAsyncPoint Boolean) +1565 |
Dziękuję za ten komentarz!
http://www.mstechblogs.com Jest to bardzo praktyczne. Artykuł jest napisany bardzo profesjonalnie. Lubię czytać http://www.mstechblogs.com każdego dnia.
Dzięki kolego!
Tak – Dzięki za ten. Muszę użyć tego w połowach try / catch – spróbuj zawiera Item.Update(). Wydaje się rozwiązać ten problem starnge. Czy jest to sporadyczny problem następnie?
Thanks.It pomaga mi….