Error deleting discussion Item
I have a sharepoint site where I utilized the out-of-the-box (List View) Discussion web part. I can add threads with no issues, however if i try to delete a thread I get the following error.
[COMException (0x80004005): Cannot complete this action.
Please try again.]
Microsoft.SharePoint.Library.SPRequestInternalClass.GetFolderContentTypeId(String bstrUrl, String bstrFolderUrl, Object& pvarContentTypeId) +0
Microsoft.SharePoint.Library.SPRequest.GetFolderContentTypeId(String bstrUrl, String bstrFolderUrl, Object& pvarContentTypeId) +117
[SPException: Cannot complete this action.
Please try again.]
Microsoft.SharePoint.Library.SPRequest.GetFolderContentTypeId(String bstrUrl, String bstrFolderUrl, Object& pvarContentTypeId) +164
Microsoft.SharePoint.SPList.GetContentTypeIdByUrl(String url) +114
Microsoft.SharePoint.SPViewContext.get_FolderContentTypeId() +698
Microsoft.SharePoint.SPList.SetViewRenderQueryParameters(HttpContext context, String currentUrl, SPWeb web, String listName, String viewGuid, SPView designerView, Boolean gridview, String& instanceID, String& selectedID, String& filterString,
String& rootFolder, String& folderCtId, String& paged, StringBuilder& pagingTokens, Int32& lastFilterIndex) +5026
Microsoft.SharePoint.WebPartPages.ListViewWebPart.RenderView() +3774
Microsoft.SharePoint.WebPartPages.ListViewWebPart.EnsureData(Int32 token) +907
Microsoft.SharePoint.WebPartPages.SharePointDataProvider.Execute() +291
Microsoft.SharePoint.WebPartPages.SPWebPartManager.ActivateV2ConnectionsAndSharePointDataFetch() +175
Microsoft.SharePoint.WebPartPages.SPWebPartManager.ActivateConnections() +87
System.Web.UI.WebControls.WebParts.WebPartManager.OnPageLoadComplete(Object sender, EventArgs e) +55
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnLoadComplete(EventArgs e) +8695206
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +735
When this error occurs it does actually delete the thread i am attempting to but it gives me this really ugly error. At first I believed the issue had to do with my particular site but after some testing and googleing I found that a number of people have
had the same issue with this web part. Does anyone have a fix for this issue? Any feedback or help would be greatly appreciated.
Here are steps to reproduce:
Create/View a standard Community Discussion web part on a sharepoint page.
Click "Add New Discussion" link to add a discussion.
Enter a subject and body.
Click "OK" to create.
View the Discussion web part .
Click on the link of the discussion you just created in the webpart.
Click on "view properties" from the tool bar.
Click on "Delete Item" from the tool bar.
Click "OK" button.
Error appears.
Shahejad Shaikh, Sr. SharePoint Developer, Gateway TechnoLabs.
May 28th, 2010 2:54pm
Community Discussion web part ? I do not know there is an out of the box web part named this.
Could you please clarify that?Sincerely,
Lambert Qin
Posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
May 31st, 2010 12:00pm
Hi,
I could reproduce your issue in a Farm with SP2 applied, but cannot reproduce it with SP2+Feb 2010 CU.
I think the issue was resolved within one of the CU between them, but I could not confirm which one.
If possible, please update you SharePoint farm with latest CU found in
Updates Resource Center for SharePoint Products and Technologies.
Or a workaround is to ignore the error (because the item has been deleted) or use other way to delete the item.
-lambertSincerely,
Lambert Qin
Posting is provided "AS IS" with no warranties, and confers no rights.
June 2nd, 2010 6:07am