ItemAdded事件接收器未间歇触发 [英] ItemAdded Event Receiver not firing intermittently

查看:54
本文介绍了ItemAdded事件接收器未间歇触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在2010服务器场中安装了Nintex工作流程2010.

即使已设置为在添加项目时触发,特定站点中的某个库工作流程有时也不会触发.

大多数情况下会触发,但会随机失败.对于没有可识别模式的其他帐户(没有一个系统帐户,我没有意识到该问题),它会失败.

工作流所附加的库是InfoPath表单库,并且可以通过存储在不同aspx页面上的InfoPath Viewer Webpart访问表单本身.随时提交表单都是没有问题的. /p>

我假设Nintex和SPD工作流都使用相同的现成的ItemAdded事件接收器来启动工作流,这就是我在其他运行良好的库工作流(在SharePoint Manager中查看)所能看到的全部. /p>

ULS日志未提供任何注释.任何人有任何想法吗?谢谢

解决方案

请尝试执行以下操作:

1.将工作流批处理大小增加到20000(已设置为100).

•启动SP 2010管理中心
•应用程序管理(从左侧导航)
•服务应用程序"部分>管理服务器上的服务
•Microsoft SharePoint Foundation工作流计时器服务.
•设置工作流程计时器批处理大小.

2调整网站集上工作流服务的空闲设置.

开始>所有程序> Microsoft SharePoint 2010产品>右键单击SharePoint 2010命令行管理程序>以管理员身份运行.执行以下每个命令:
 
stsadm -o getproperty -pn job-workflow -url http://sitecollectionurl.com (检查此设置是否设置,如果显示为否",请执行下面的下一个命令.在我们的示例中,其显示为否",因此下一条命令已执行并成功执行.)

stsadm -o setproperty -pn job-workflow -url http://sitecollectionurl.com -pv"0到59之间的每2分钟"

stsadm -o getproperty -pn Working-Eventdelivery-throttle -url http://sitecollectionurl.com (检查此设置是否设置,如果显示为否",请执行下面的下一个命令.在我们的示例中,其显示为否",因此下一条命令已执行并成功执行.)

stsadm -o setproperty -pn Working-Eventdelivery-throttle -url http://sitecollectionurl.com -pv"25"

或者我们可以使用事件接收器代替工作流来满足您的需求.

最好的问候,

丹尼斯


We have Nintex workflow 2010 installed on our 2010 Farm.

One of the library workflows in a specific site does not fire sometimes, even though it is set to fire upon an item being added.

It fires most of the time, but will randomly fail. It fails for different accounts (none are the system account, im aware of that issue) with no discernible pattern.

The library to which the workflow is attached is an InfoPath form library, and the form itself is accessed via an InfoPath Viewer webpart stored on a different aspx page. There is no issue submitting the form at any time.

I assume that both Nintex and SPD workflows use the same out-of-the-box ItemAdded event receiver for initiating workflows, as that is all I can see on other library workflows that work fine (looking in SharePoint Manager).

The ULS logs don't offer up anything of note. Anyone got any ideas? thanks

解决方案

Hi,

Please try to do as follows:

1.Increase workflow batch size to 20000 (it was set to 100).

•Launch SP 2010 Central Administration
•Application Management (from the left navigation)
•Service Applications section > Manage services on server
•Microsoft SharePoint Foundation Workflow Timer Service.
•Set Workflow Timer Batch Size.

2 Adjusting the idle settings of the workflow service on the site collection.

Start > All Programs > Microsoft SharePoint 2010 Products > Right-click SharePoint 2010 Management Shell > Run as administrator.  Execute each of these commands:
 
stsadm -o getproperty -pn job-workflow -url http://sitecollectionurl.com (Checks to see if this setting is set, if it says "No", execute the next command below.  In our case, it said "No", so the next command was executed and it went successfully.)

stsadm -o setproperty -pn job-workflow -url http://sitecollectionurl.com -pv "every 2 minutes between 0 and 59"

stsadm -o getproperty -pn workflow-eventdelivery-throttle -url http://sitecollectionurl.com (Checks to see if this setting is set, if it says "No", execute the next command below.  In our case, it said "No", so the next command was executed and it went successfully.)

stsadm -o setproperty -pn workflow-eventdelivery-throttle -url http://sitecollectionurl.com -pv "25"

Or we can use event receiver to instead of the workflow to achieve your requirement.

Best Regards,

Dennis


这篇关于ItemAdded事件接收器未间歇触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆