यदि आप ऑब्जेक्ट मॉडल के माध्यम से / घटनाओं WebParts में या किसी भी माध्यम से InfoPath xml फ़ाइल अद्यतन करने की कोशिश.
जबकि Item.Update execting() नीचे त्रुटि का कारण होगा. जबकि ListItem में InfoPath xml फ़ाइल अद्यतन
फ़ाइल और ListItem वस्तु डिस्कनेक्ट हो रही.
Item.File.Update() अपने मुद्दे को हल करेंगे.
के StackTrace त्रुटि:
[COMException (0x81020037): फ़ाइल SampleFile/SampleFile_2009-06-11T18_57_00.xml SharePoint प्रणाली द्वारा संशोधित किया गया है पर 13 जून 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(स्ट्रिंग bstrUrl, स्ट्रिंग bstrListName, बूलियन bAdd, बूलियन bSystemUpdate, बूलियन bPreserveItemVersion, बूलियन bUpdateNoVersion, Int32& plID, स्ट्रिंग& pbstrGuid, Guid pbstrNewDocId, बूलियन bHasNewDocId, स्ट्रिंग bstrVersion, वस्तु& pvarAttachmentNames, वस्तु& pvarAttachmentContents, वस्तु& pvarProperties, बूलियन bCheckOut, बूलियन bCheckin, बूलियन bMigration, बूलियन bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(स्ट्रिंग bstrUrl, स्ट्रिंग bstrListName, बूलियन bAdd, बूलियन bSystemUpdate, बूलियन bPreserveItemVersion, बूलियन bUpdateNoVersion, Int32& plID, स्ट्रिंग& pbstrGuid, Guid pbstrNewDocId, बूलियन bHasNewDocId, स्ट्रिंग bstrVersion, वस्तु& pvarAttachmentNames, वस्तु& pvarAttachmentContents, वस्तु& pvarProperties, बूलियन bCheckOut, बूलियन bCheckin, बूलियन bMigration, बूलियन bPublish) +203
[SPException: फ़ाइल SampleFile/SampleFile_2009-06-11T18_57_00.xml SharePoint प्रणाली द्वारा संशोधित किया गया है पर 13 जून 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(स्ट्रिंग bstrUrl, स्ट्रिंग bstrListName, बूलियन bAdd, बूलियन bSystemUpdate, बूलियन bPreserveItemVersion, बूलियन bUpdateNoVersion, Int32& plID, स्ट्रिंग& pbstrGuid, Guid pbstrNewDocId, बूलियन bHasNewDocId, स्ट्रिंग bstrVersion, वस्तु& pvarAttachmentNames, वस्तु& pvarAttachmentContents, वस्तु& pvarProperties, बूलियन bCheckOut, बूलियन bCheckin, बूलियन bMigration, बूलियन bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(बूलियन bAdd, बूलियन bSystem, बूलियन bPreserveItemVersion, बूलियन bNoVersion, बूलियन bMigration, बूलियन bPublish, बूलियन bCheckOut, बूलियन bCheckin, Guid newGuidOnAdd, Int32& ulID, वस्तु& objAttachmentNames, वस्तु& objAttachmentContents, बूलियन suppressAfterEvents) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(बूलियन bSystem, बूलियन bPreserveItemVersion, Guid newGuidOnAdd, बूलियन bMigration, बूलियन bPublish, बूलियन bNoVersion, बूलियन bCheckOut, बूलियन bCheckin, बूलियन suppressAfterEvents) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(ऑब्जेक्ट राज्य) +70 Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated SecureCode) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(कॉलबैक SecureCode इंतजार, ऑब्जेक्ट परम) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated SecureCode) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(वस्तु प्रेषक, ई EventArgs) +40 System.Web.UI.WebControls.Button.OnClick(ई EventArgs) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(स्ट्रिंग eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(स्ट्रिंग eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, स्ट्रिंग eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(बूलियन includeStagesBeforeAsyncPoint, बूलियन includeStagesAfterAsyncPoint) +1565 |
Thank you for posting this!
http://www.mstechblogs.com is very informative. The article is very professionally written. I enjoy reading http://www.mstechblogs.com every day.
Thanks buddy!
Yep – Thanks for this. I have to use this in the catch of try/catch – try contains Item.Update(). Seems to solve this starnge issue. Is it a sporadic issue then?
Thanks.It is helping me….