SharePoint 审批工作流程问题

发布于 2024-08-20 07:52:01 字数 1050 浏览 5 评论 0原文

我有启用了发布功能的 SharePoint 网站。我有一个自定义内容类型,配置了开箱即用的审批工作流程。在工作流程设置中,最后一个选项“更新审批状态(使用此工作流程控制内容审批)”已被选中。配置内容类型的列表未选择“需要内容批准”选项。

我的问题:是否需要勾选“更新审批状态”选项才能享受内容审批的好处?

添加到列表中的所有内容都需要获得批准,但此配置似乎会导致工作流程出现错误。审批方面工作正常,但每个工作流程均出现错误:“审批工作流程中发生错误”。我读到这是由于上述配置造成的。作为记录,ULS 日志显示此错误:

工作流程基础设施
98d4 意外的 System.ArgumentNullException: 值不能为空。参数名称: 姓名在 System.Resources.ResourceManager.GetString(字符串 名称、CultureInfo 文化)位于 Microsoft.Office.Workflow.LocUtil.GetResourceString(SPWeb 网络,字符串资源ID)位于 Microsoft.Office.Workflow.ReviewRouting.SetItemMetadata(对象 发送者、EventArgs e) at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent,对象发送者, 事件参数 e) at Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.Execute(ActivityExecutionContext 上下文)在 System.Workflow.ComponentModel.ActivityExecutor1.Execute(T 活动、ActivityExecutionContext 执行上下文)在 System.Workflow.ComponentModel.ActivityExecutor1.Execute(活动 活动、ActivityExecutionContext ...

I have SharePoint site with publishing features enabled. I have a custom content type with the out of the box approval workflow configured. In the Workflow settings, the final option to "Update the approval status (use this workflow to control content approval)" has been checked. The lists on which the content type is configured do not have the "require content approval" option selected.

My question: is it necessary to "Update the approval status" option checked to enjoy the benefit of content approval?

All content added to the lists needs to be approved but this configuration appears to be causing an error on the workflows. The approval aspect works correctly but then each workflow errors: "An error has occured in Approval Workflow". I have read that this is because of the configuration described above. For the record, the ULS logs show this error:

Workflow Infrastructure
98d4 Unexpected System.ArgumentNullException:
Value cannot be null. Parameter name:
name at
System.Resources.ResourceManager.GetString(String
name, CultureInfo culture) at
Microsoft.Office.Workflow.LocUtil.GetResourceString(SPWeb
web, String resourceId) at
Microsoft.Office.Workflow.ReviewRouting.SetItemMetadata(Object
sender, EventArgs e) at
System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty
dependencyEvent, Object sender,
EventArgs e) at
Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.Execute(ActivityExecutionContext
context) at
System.Workflow.ComponentModel.ActivityExecutor1.Execute(T
activity, ActivityExecutionContext
executionContext) at
System.Workflow.ComponentModel.ActivityExecutor
1.Execute(Activity
activity, ActivityExecutionContext ...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北座城市 2024-08-27 07:52:01

作为参考,这是我发现的:

为了使批准功能正常工作,列表应具有:

  • 选中“需要内容批准”选项(此选项在列表的版本控制设置中可用)。
  • 在工作流程配置中,选中“更新审批状态(使用此工作流程控制内容审批)”选项。

如果工作流配置为控制内容审批,但列表上未配置内容审批,则 SharePoint 会生成上述错误。

For reference, this is what i've found:

For the approval functionality to work correctly, the list should have:

  • "Require Content Approval" option checked (this option is available in Versioning Settings for the list).
  • In the workflow configuration, check the "Update the approval status (use this workflow to control content approval)" option.

If the workflow is configured to control content approval but the list does not have content approval configured on it, SharePoint generates the above error.

错々过的事 2024-08-27 07:52:01

根据错误以及您提供的有关自定义内容类型的信息判断,代码可能会尝试将全球化应用于自定义内容类型列或任何其他列,并且:

  • 您安装的语言包未与
  • 您仅拥有的 当前版本同步例如,为该语言安装的 MOSS 而非 WSS 的语言包
  • 您当前的安装由于某些其他原因缺少正确的 resx 文件

检查您当前的版本是否有任何修补程序(或服务包),如果存在则同步所有语言包你还没有,看看这是否有帮助。

Judging by the error and with the information on the custom content type you provided, the code might be trying to apply globalization the custom content-type column or any other column and:

  • you have language packs intalled not synced with the current version
  • you have only the language pack for say, MOSS and not WSS installed for the language
  • your current installation is missing the correct resx file for some other reason

Check if your current version has any hotfixes ahead of it (or service packs), sync all the language packs if you haven't and see if that helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文