"O arquivo foi modificado pelo sistema SHAREPOINT " Erro ao atualizar arquivo XML do InfoPath no SharePoint Biblioteca

Se você tentar atualizar o arquivo XML do InfoPath através de modelo de objeto em eventos / WebParts ou por qualquer meio.

Enquanto o execting Item.Update() fará com que o erro abaixo. Enquanto a atualização do arquivo XML no InfoPath ListItem
o arquivo e objeto ListItem ficar desconectado.

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

StackTrace do Erro:

[COMException (0x81020037): O arquivo SampleFile/SampleFile_2009-06-11T18_57_00.xml foi modificado pelo sistema SHAREPOINT em 13 Junho 2009 00:25:30 +0530.]

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

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

[SPException: O arquivo SampleFile/SampleFile_2009-06-11T18_57_00.xml foi modificado pelo sistema SHAREPOINT em 13 Junho 2009 00:25:30 +0530.]

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

Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean badd, bSystem Boolean, bPreserveItemVersion Boolean, bNoVersion Boolean, bMigration Boolean, Boolean bPublish, bCheckOut Boolean, bCheckin Boolean, Guid newGuidOnAdd, Int32& ulID, Objeto& objAttachmentNames, Objeto& objAttachmentContents, Boolean suppressAfterEvents) +1026

Microsoft.SharePoint.SPListItem.UpdateInternal(bSystem Boolean, bPreserveItemVersion Boolean, Guid newGuidOnAdd, bMigration Boolean, Boolean bPublish, bNoVersion Boolean, bCheckOut Boolean, bCheckin Boolean, Boolean suppressAfterEvents) +182

Microsoft.SharePoint.SPListItem.SystemUpdate() +97

Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993

Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(estado do objeto) +70

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

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

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(esperar SecureCode callback, param Object) +345

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

Peoples.WebControls.CalendarExport.ExportData() +320

Peoples.WebControls.CalendarExport.ExportCalendar_Click(objeto remetente, 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 Boolean, includeStagesAfterAsyncPoint Boolean) +1565

5 Comentários para "O arquivo tenha sido modificado por SHAREPOINT system" Erro ao atualizar arquivo XML do InfoPath no SharePoint Biblioteca

Deixe uma resposta

Você pode usar estes tags HTML

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