Jekk inti tipprova li taġġorna l-fajl XML permezz InfoPath mudell oġġett fl-avvenimenti / WebParts jew permezz ta 'kwalunkwe mezz.
Filwaqt li l-execting Item.Update() se tikkawża l-iżball hawn taħt. Filwaqt li taġġorna l-fajl XML InfoPath fil ListItem
l-oġġett fajl u ListItem jkollna skonnettjata.
Item.File.Update() ser issolvi l-kwistjoni.
StackTrace ta 'Error:
[COMException (0x81020037): Il-SampleFile/SampleFile_2009-06-11T18_57_00.xml fajl ġie modifikat mill SharePoint sistema fuq 13 Ġunju 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, BstrListName String, Boolean bAdd, Boolean bSystemUpdate, BPreserveItemVersion Boolean, BUpdateNoVersion Boolean, Int32& plID, String& pbstrGuid, Gwida pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Għan& pvarAttachmentNames, Għan& pvarAttachmentContents, Għan& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, BstrListName String, Boolean bAdd, Boolean bSystemUpdate, BPreserveItemVersion Boolean, BUpdateNoVersion Boolean, Int32& plID, String& pbstrGuid, Gwida pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Għan& pvarAttachmentNames, Għan& pvarAttachmentContents, Għan& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +203
[SPException: Il-SampleFile/SampleFile_2009-06-11T18_57_00.xml fajl ġie modifikat mill SharePoint sistema fuq 13 Ġunju 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, BstrListName String, Boolean bAdd, Boolean bSystemUpdate, BPreserveItemVersion Boolean, BUpdateNoVersion Boolean, Int32& plID, String& pbstrGuid, Gwida pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Għan& pvarAttachmentNames, Għan& pvarAttachmentContents, Għan& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, BPreserveItemVersion Boolean, BNoVersion Boolean, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Gwida newGuidOnAdd, Int32& ulID, Għan& objAttachmentNames, Għan& objAttachmentContents, Boolean suppressAfterEvents) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, BPreserveItemVersion Boolean, Gwida newGuidOnAdd, Boolean bMigration, Boolean bPublish, BNoVersion Boolean, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Istat Għan) +70 Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated SecureCode) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(stenna SecureCode callback, Param Għan) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated SecureCode) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(mittent Għan, 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(IPostBackEventHandler sourceControl, EventArgument String) +13 System.Web.UI.Page.RaisePostBackEvent(PostData NameValueCollection) +36 System.Web.UI.Page.ProcessRequestMain(includeStagesBeforeAsyncPoint Boolean, includeStagesAfterAsyncPoint Boolean) +1565 |
Grazzi għall-istazzjonar dan!
http://www.mstechblogs.com huwa ferm informattiva. L-artikolu huwa ħafna professjonalment bil-miktub. I igawdu qari http://www.mstechblogs.com kuljum.
Grazzi buddy!
Yep – Thanks for this. I have to use this in the catch of try/catch – try contains Item.Update(). Seems to solve this starnge issue. Is it a sporadic issue then?
Thanks.It is helping me….