Si vous essayez de mettre à jour le fichier xml par modèle d'objet InfoPath à un événement ou WebParts ou par tout moyen.
Bien que l'execting Item.Update() fera l'erreur ci-dessous. Bien que la mise à jour le fichier xml dans InfoPath ListItem
le fichier et ListItem objet déconnexion.
Item.File.Update() résoudra votre problème.
StackTrace d'erreur:
[COMException (0x81020037): Le SampleFile/SampleFile_2009-06-11T18_57_00.xml fichier a été modifié par SHAREPOINT system sur 13 Juin 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(bstrUrl String, bstrListName String, Boolean badd, bSystemUpdate booléenne, bPreserveItemVersion booléenne, bUpdateNoVersion booléenne, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, bstrVersion String, Objet& pvarAttachmentNames, Objet& pvarAttachmentContents, Objet& pvarProperties, bCheckOut booléenne, bCheckin booléenne, bMigration booléenne, Boolean bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(bstrUrl String, bstrListName String, Boolean badd, bSystemUpdate booléenne, bPreserveItemVersion booléenne, bUpdateNoVersion booléenne, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, bstrVersion String, Objet& pvarAttachmentNames, Objet& pvarAttachmentContents, Objet& pvarProperties, bCheckOut booléenne, bCheckin booléenne, bMigration booléenne, Boolean bPublish) +203
[SPException: Le SampleFile/SampleFile_2009-06-11T18_57_00.xml fichier a été modifié par SHAREPOINT system sur 13 Juin 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(bstrUrl String, bstrListName String, Boolean badd, bSystemUpdate booléenne, bPreserveItemVersion booléenne, bUpdateNoVersion booléenne, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, bstrVersion String, Objet& pvarAttachmentNames, Objet& pvarAttachmentContents, Objet& pvarProperties, bCheckOut booléenne, bCheckin booléenne, bMigration booléenne, Boolean bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean badd, bSystem booléenne, bPreserveItemVersion booléenne, bNoVersion booléenne, bMigration booléenne, Boolean bPublish, bCheckOut booléenne, bCheckin booléenne, Guid newGuidOnAdd, Int32& ulID, Objet& objAttachmentNames, Objet& objAttachmentContents, Boolean suppressAfterEvents) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(bSystem booléenne, bPreserveItemVersion booléenne, Guid newGuidOnAdd, bMigration booléenne, Boolean bPublish, bNoVersion booléenne, bCheckOut booléenne, bCheckin booléenne, Boolean suppressAfterEvents) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(état de l'objet) +70 Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated SecureCode) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(d'attente de rappel SecureCode, param Object) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated SecureCode) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(Object sender, 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 booléenne, includeStagesAfterAsyncPoint booléenne) +1565 |
Merci de signaler ce!
http://www.mstechblogs.com est très instructif. L'article est écrit de façon très professionnelle. J'aime lire http://www.mstechblogs.com tous les jours.
Merci copain!
Oui – Merci pour cette. Je dois l'utiliser dans la prise de try / catch – try contient Item.Update(). Semble résoudre ce problème starnge. Est-ce une question sporadiques, puis?
Thanks.It m'aide….