Os ydych yn ceisio diweddaru y ffeil xml InfoPath drwy fodel gwrthrych mewn digwyddiadau / WebParts neu drwy unrhyw gyfrwng.
Er bod y Item.Update execting() Bydd yn achosi i'r gwall isod. Er bod diweddaru y ffeil xml InfoPath yn ListItem
y gwrthrych ffeil ac ListItem chael datgysylltu.
Item.File.Update() Bydd datrys eich mater.
StackTrace o Gwall:
[COMException (0x81020037): Mae'r SampleFile/SampleFile_2009-06-11T18_57_00.xml ffeil wedi ei addasu gan SharePoint system ar 13 Mehefin 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(Llinynnol bstrUrl, BstrListName Llinynnol, Boole bAdd, Boole bSystemUpdate, Boole bPreserveItemVersion, Boole bUpdateNoVersion, Int32& plID, Llinynnol& pbstrGuid, Guid pbstrNewDocId, Boole bHasNewDocId, Llinynnol bstrVersion, Gwrthrych& pvarAttachmentNames, Gwrthrych& pvarAttachmentContents, Gwrthrych& pvarProperties, Boole bCheckOut, Boole bCheckin, BMigration Boole, Boole bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Llinynnol bstrUrl, BstrListName Llinynnol, Boole bAdd, Boole bSystemUpdate, Boole bPreserveItemVersion, Boole bUpdateNoVersion, Int32& plID, Llinynnol& pbstrGuid, Guid pbstrNewDocId, Boole bHasNewDocId, Llinynnol bstrVersion, Gwrthrych& pvarAttachmentNames, Gwrthrych& pvarAttachmentContents, Gwrthrych& pvarProperties, Boole bCheckOut, Boole bCheckin, BMigration Boole, Boole bPublish) +203
[SPException: Mae'r SampleFile/SampleFile_2009-06-11T18_57_00.xml ffeil wedi ei addasu gan SharePoint system ar 13 Mehefin 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Llinynnol bstrUrl, BstrListName Llinynnol, Boole bAdd, Boole bSystemUpdate, Boole bPreserveItemVersion, Boole bUpdateNoVersion, Int32& plID, Llinynnol& pbstrGuid, Guid pbstrNewDocId, Boole bHasNewDocId, Llinynnol bstrVersion, Gwrthrych& pvarAttachmentNames, Gwrthrych& pvarAttachmentContents, Gwrthrych& pvarProperties, Boole bCheckOut, Boole bCheckin, BMigration Boole, Boole bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boole bAdd, Boole bSystem, Boole bPreserveItemVersion, Boole bNoVersion, BMigration Boole, Boole bPublish, Boole bCheckOut, Boole bCheckin, Guid newGuidOnAdd, Int32& ulID, Gwrthrych& objAttachmentNames, Gwrthrych& objAttachmentContents, Boole suppressAfterEvents) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(Boole bSystem, Boole bPreserveItemVersion, Guid newGuidOnAdd, BMigration Boole, Boole bPublish, Boole bNoVersion, Boole bCheckOut, Boole bCheckin, Boole suppressAfterEvents) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Gwrthrych y wladwriaeth) +70 Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(SecureCode CodeToRunElevated) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(aros SecureCode alwad yn ôl, Param Gwrthrych) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(SecureCode CodeToRunElevated) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(Gwrthrych anfonwr, EventArgs e) +40 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(EventArgument Llinynnol) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(EventArgument Llinynnol) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, EventArgument Llinynnol) +13 System.Web.UI.Page.RaisePostBackEvent(PostData NameValueCollection) +36 System.Web.UI.Page.ProcessRequestMain(Boole includeStagesBeforeAsyncPoint, Boole includeStagesAfterAsyncPoint) +1565 |
Diolch am bostio hwn!
http://www.mstechblogs.com yn llawn gwybodaeth. Mae'r erthygl yn broffesiynol iawn ysgrifenedig. Rwy'n mwynhau darllen http://www.mstechblogs.com bob dydd.
Diolch gyfaill!
Yep – Diolch am hyn. Mae'n rhaid i mi ddefnyddio hyn yn y ddalfa o gais / dal – ceisiwch cynnwys Item.Update(). Seems i ddatrys y mater hwn starnge. A yw'n fater achlysurol, yna?
Thanks.It yn fy helpu….