Əgər hadisələr / WebParts və ya hər hansı vasitəsilə obyekt model vasitəsilə InfoPath XML faylı yeniləmə denerseniz.
Bu Item.Update execting baxmayaraq() aşağıdakı səhv səbəb olacaq. ListItem olan InfoPath xml file updating baxmayaraq
fayl və ListItem object qaralar almaq.
Item.File.Update() Sizin məsələni həll edəcək.
Səhv StackTrace:
[COMException (0x81020037): Fayl SampleFile/SampleFile_2009-06-11T18_57_00.xml SharePoint sistemi redaktə edilib 13 Jun 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(Simli bstrUrl, Simli bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, Sim& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, Simli bstrVersion, Obyekt& pvarAttachmentNames, Obyekt& pvarAttachmentContents, Obyekt& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Simli bstrUrl, Simli bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, Sim& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, Simli bstrVersion, Obyekt& pvarAttachmentNames, Obyekt& pvarAttachmentContents, Obyekt& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +203
[SPException: Fayl SampleFile/SampleFile_2009-06-11T18_57_00.xml SharePoint sistemi redaktə edilib 13 Jun 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Simli bstrUrl, Simli bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, Sim& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, Simli bstrVersion, Obyekt& pvarAttachmentNames, Obyekt& pvarAttachmentContents, Obyekt& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Obyekt& objAttachmentNames, Obyekt& objAttachmentContents, Boolean suppressAfterEvents) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Obyekt dövlət) +70 Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated SecureCode) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback SecureCode, Obyekt Param) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated SecureCode) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(Obyekt göndərən, EventArgs e) +40 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(Simli eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(Simli eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, Simli eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 |
Bu poçt üçün təşəkkür edirik!
http://www.mstechblogs.com çox məlumat. Məqalədə çox peşəkarcasına yazılıb. I okumalar http://www.mstechblogs.com hər gün.
Thanks dost!
Yep – Bu üçün təşəkkür edirik. Mən cəhd / tutmaq tutmaq bu istifadə etmək – try Item.Update ehtiva(). Bu starnge məsələni həll görünür. Sonra bir zaman məsələ?
Thanks.It mənə kömək edir….