Má tá tú iarracht a thabhairt cothrom le dáta an InfoPath xml file trí mhúnla réad i imeachtaí / WebParts nó trí aon mheán.
Cé execting an Item.Update() Beidh chur faoi deara an earráid thíos. Cé go bhfuil an comhad xml InfoPath in ListItem thabhairt cothrom le dáta
an comhad agus ListItem réad dul dícheangailte.
Item.File.Update() Beidh réiteach do cheist.
StackTrace Earráide:
[COMException (0x81020037): Tá an comhad SampleFile / SampleFile_2009-06-11T18_57_00.xml curtha mhodhnú le SharePoint córas ar 13 Meitheamh 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(Teaghrán bstrUrl, Teaghrán bstrListName, Faisnéis Boole, Boole bSystemUpdate, Boole bPreserveItemVersion, Boole bUpdateNoVersion, Int32& plID, Teaghrán& pbstrGuid, Gcrann pbstrNewDocId, Boole bHasNewDocId, BstrVersion Teaghrán, Cuspóir& pvarAttachmentNames, Cuspóir& pvarAttachmentContents, Cuspóir& pvarProperties, Boole bCheckOut, Boole bCheckin, Boole bMigration, Boole bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Teaghrán bstrUrl, Teaghrán bstrListName, Faisnéis Boole, Boole bSystemUpdate, Boole bPreserveItemVersion, Boole bUpdateNoVersion, Int32& plID, Teaghrán& pbstrGuid, Gcrann pbstrNewDocId, Boole bHasNewDocId, BstrVersion Teaghrán, Cuspóir& pvarAttachmentNames, Cuspóir& pvarAttachmentContents, Cuspóir& pvarProperties, Boole bCheckOut, Boole bCheckin, Boole bMigration, Boole bPublish) +203
[SPException: Tá an comhad SampleFile / SampleFile_2009-06-11T18_57_00.xml curtha mhodhnú le SharePoint córas ar 13 Meitheamh 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Teaghrán bstrUrl, Teaghrán bstrListName, Faisnéis Boole, Boole bSystemUpdate, Boole bPreserveItemVersion, Boole bUpdateNoVersion, Int32& plID, Teaghrán& pbstrGuid, Gcrann pbstrNewDocId, Boole bHasNewDocId, BstrVersion Teaghrán, Cuspóir& pvarAttachmentNames, Cuspóir& pvarAttachmentContents, Cuspóir& pvarProperties, Boole bCheckOut, Boole bCheckin, Boole bMigration, Boole bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Faisnéis Boole, Boole bSystem, Boole bPreserveItemVersion, Boole bNoVersion, Boole bMigration, Boole bPublish, Boole bCheckOut, Boole bCheckin, Gcrann newGuidOnAdd, Int32& ulID, Cuspóir& objAttachmentNames, Cuspóir& objAttachmentContents, SuppressAfterEvents Boole) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(Boole bSystem, Boole bPreserveItemVersion, Gcrann newGuidOnAdd, Boole bMigration, Boole bPublish, Boole bNoVersion, Boole bCheckOut, Boole bCheckin, SuppressAfterEvents Boole) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Réad stáit) +70 Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(SecureCode CodeToRunElevated) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(SecureCode WaitCallback, Param Cuspóir) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(SecureCode CodeToRunElevated) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(Cuspóir seoltóir, EventArgs e) +40 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(Teaghrán eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(Teaghrán eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, Teaghrán eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boole includeStagesBeforeAsyncPoint, Boole includeStagesAfterAsyncPoint) +1565 |
Go raibh maith agat as phost seo!
http://www.mstechblogs.com Tá an-fhaisnéiseach. Is é an t-alt scríofa go gairmiúil. Taitneamh a bhaint as mé ag léamh http://www.mstechblogs.com gach lá.
Go raibh maith agat chara!
Yep – Go raibh maith agat as seo. Caithfidh mé a úsáid i ghabháil de iarracht / ghabháil – Tá Item.Update iarracht(). Dealraíonn sé chun an fhadhb seo a eisiúint starnge. An bhfuil sé ceist sporadic ansin?
Thanks.It cabhrú liom….