本文介绍了如何删除工作流历史列表的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试清除工作流历史记录列表的内容,其中有一些工作流添加了数千条评论(稍后我将修复工作流程!)。我担心此列表中的大量条目会降低网站性能。在这个阶段
我不需要任何这些条目用于任何审计或其他目的。我不确定最好的解决方法。

I'm trying to purge the contents of the workflow history list which has thousands of comments added by the some workflows (I will fix the workflows later!). I'm worried that the huge number of entries in this list is slowing down the site performance. At this stage I do not need any of these entries for any audting or other purpose. I'm not sure of the best way to go about this.

我当前的策略是依赖工作流autoclean sp计时器作业,在第一次运行一些代码来设置AutoCleanupDays属性之后SPWorkflowAssociation。我希望,一旦我在运行工作流
的站点中的所有文档库上运行此操作,我就可以使用Sharepoint Web UI删除工作流历史列表"删除此列表"。超链接。

My current strategy is to rely on the workflow autoclean sp timer job, after first running some code to set the AutoCleanupDays property of the SPWorkflowAssociation. I'm hoping that once I have run this on all the document libraries in my site where workflows have been run I will then be able to delete the Workflow History list using the Sharepoint Web UI "Delete this list" hyperlink.

当我这样做的时候,我收到如下错误:

 

操作已中止(HRESULT异常:0x80004004( E_ABORT))   Microsoft.SharePoint.Library.Library.Library.Library。 .DeleteList(String bstrUrl,String bstrListName,UInt32 dwDeleteOp,Guid& pgDeleteTransactionId)

如果有人能确认这种方法是否有效或是否有更好的方法这样做我会很开心!

If anyone can confirm whether this approach will work or if there is a better way to do this I will be very happy!

推荐答案

 

您可以通过
历史
 
然后将其删除,例如删除公共列表。

You can go to the workflow history list throughhttp://sharepointsite/lists/workflow history and then delete it like deleting a common list.

 

但我不建议您这样做,您只需更改计时器作业计划就可以更频繁地运行它。

 

希望它有用!


这篇关于如何删除工作流历史列表的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 08:51