An Activity with a client event should at least have one destination

遇到K2 SERVER MANAGER平台错误报障:An Activity with a client event should at least have one destination

解决办法如下:


if(K2.ProcessInstance.ID.ToString()=="471247")
{
K2.Destinations.Add(DestinationType.Queue,'TmpDestinationQueue');
}
else
{
//原代码块
}

参考资料如下:

An exception occurs when trying to resolve an Active Directory Group to users in K2.net™ Studio, or “An Activity with a client event should at least have one destination” error is shown in the K2.net™ 2003 Service Manager

This article highlights a known issue when resolving User names from Active Directory if special characters are contained in the username or the user’s group or organizational unit. This issue may be experienced as an “Unknown Error” in K2.net™ 2003 Studio, or an “An Activity with a client event should at least have one destination” error in K2.net™ 2003 Server.
 

Issue:

There is a known issue with regards to Active Directory user names, organizational units or groups which contain special characters. The issue will present itself in the following ways:

1)  In K2.net® 2003 Studio, you may see an "Unknown Error" error when you right-click the Active Directory Group in the destination queue, and select "Resolve to Users":

  


  

2)  You may see an error in K2.net® 2003 Service Manager's Error Profiles that states: "An Activity with a client event should at least have one destination"
  
In these cases a username, Organizational Unit or Group Name in the Active Directory structure may contain special characters. These characters are not handled properly by the .NET Framework classes that query Active Directory,, therefore an exception is thrown. This will result in the error in K2 Studio, or a Destination Queue being empty on the K2.net® 2003 Server.
 
Resolution:
1)  This issue has been addressed in K2.net 2003 with SP 2. To resolve the issue, update your current K2.net 2003 installation with Service Pack 2 or with the most current service pack release..
2)  Remove the special characters from the Active Directory entries where required and use the K2.net® Service Manager to refresh the destination queue:

  

Note: It is advised that you maintain your K2.net 2003 with the most current updates and service packs. These enable you to take full advantage of the enhancements and new features that are available.
Once you have implemented one of the options discussed above you can then proceed to repair the error as described below.
 
To Repair the error:  Use the "Repair Error" option in the K2.net Service Manager's Error Profiles to repair the "An Activity with a client event should at least have one destination" error:

  

K2.net 2003 Service Pack 2 has been tested with the following special characters and supports their use:
来源:http://help.k2.com/kb000093

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ice_baili

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值