"O arquivo foi modificado por SharePoint system" Erro ao actualizar InfoPath ficheiro xml en SharePoint da Biblioteca

Se tentar actualizar o arquivo xml InfoPath mediante modelo de obxecto en eventos / WebParts ou a través de calquera medio.

Mentres o execting Item.Update() fará que o erro abaixo. While updating the InfoPath xml file in ListItem
the file and ListItem object getting disconnected.

Item.File.Update() vai resolver o seu problema.

StackTrace of Error:

[COMException (0x81020037): The file SampleFile/SampleFile_2009-06-11T18_57_00.xml has been modified by SHAREPOINTsystem on 13 Jun 2009 00:25:30 +0530.]

Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(Cadea bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, Corda& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Obxecto& pvarAttachmentNames, Obxecto& pvarAttachmentContents, Obxecto& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +0

Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Cadea bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, Corda& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Obxecto& pvarAttachmentNames, Obxecto& pvarAttachmentContents, Obxecto& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +203

[SPException: The file SampleFile/SampleFile_2009-06-11T18_57_00.xml has been modified by SHAREPOINTsystem on 13 Jun 2009 00:25:30 +0530.]

Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Cadea bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, Corda& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Obxecto& pvarAttachmentNames, Obxecto& pvarAttachmentContents, Obxecto& 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, Obxecto& objAttachmentNames, Obxecto& 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(Estado do obxecto) +70

Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392

Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(SecureCode CodeToRunElevated) +152

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(esperar SecureCode callback, Paran obxecto) +345

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(SecureCode CodeToRunElevated) +86

Peoples.WebControls.CalendarExport.ExportData() +320

Peoples.WebControls.CalendarExport.ExportCalendar_Click(obxecto remitente, EventArgs e) +40

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111

System.Web.UI.WebControls.Button.RaisePostBackEvent(Cordas eventArgument) +110

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(Cordas eventArgument) +10

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler SourceControl, Cordas eventArgument) +13

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36

System.Web.UI.Page.ProcessRequestMain(includeStagesBeforeAsyncPoint Booleana, includeStagesAfterAsyncPoint Booleana) +1565

5 Comentarios a "O ficheiro foi modificado por SharePoint system" erro durante a actualización do arquivo xml InfoPath no SharePoint Biblioteca

Deixe unha resposta

Pode usar estas etiquetas HTML

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>