使用SharePoint Workflow HttpSend活动通过Web服务通过自己的内容Db创建网站集 [英] Site Collection creation with own Content Db through Webservice using SharePoint Workflow HttpSend Activity

查看:59
本文介绍了使用SharePoint Workflow HttpSend活动通过Web服务通过自己的内容Db创建网站集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的所有人,

我们有一项要求(SharePoint 2016)使用自己的数据库创建网站集.这将在工作流程任务批准后发生.所以我们创建了一个REST 服务(使用服务器端代码)来创建内容数据库并将其附加到新的网站集.该REST服务将从工作流Httpsend"活动中调用.

We have a requirement (SharePoint 2016) to create the Site collection with own database. This would happen upon a workflow task approval. So we created a REST service (which uses Server Side Code) to create the content database and attach it to a new site collection. This REST service will be called from The workflow Httpsend activity.

不幸的是,当我们只有一个盒开发环境.当我们移至UAT时(已订阅了2台前端服务器,1台DB服务器 到Workflow服务器场).此REST服务托管在最小角色服务器(Sharepoint 2016)中.

Unfortunately this all worked when we had the single box development environment. As we moved to the UAT ( with 2 Front end servers, 1 DB server, subscribed to Workflow farm). This REST service is hosted in a min role server (Sharepoint 2016).

&s

使用工具调用此REST服务即可正常工作例如POSTMAN,Fiddler.

This REST service works fine when called using tools such as POSTMAN, Fiddler.

&s

但是,当从工作流程(HTTP发送活动),它引发如下令人讨厌的错误.

&s

1.从服务器接收结果时发生传输级错误. (提供者:TCP提供程序,错误:0-指定的网络名称不再可用.) | InnerException:System.ComponentModel.Win32Exception(0x800040

1. A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) | InnerException: System.ComponentModel.Win32Exception (0x800040

&s

2.消息:当前命令发生严重错误.   结果(如果有的话)应丢弃.

2. Message: A severe error occurred on the current command.  The results, if any, should be discarded.

当前命令发生了严重错误.   结果(如果有的话)应丢弃. | InnerException

A severe error occurred on the current command.  The results, if any, should be discarded. | InnerException

&s

3.无法打开数据库"ContentDB_00017";登录要求.登录失败.

3. Cannot open database "ContentDB_00017" requested by the login. The login failed.

用户'< Farm Account>登录失败;'.

&s

4. id< GUID>  正在使用. 名为"ContentDB_00017"的Microsoft.SharePoint.Administration.SPContentDatabase;正在使用与名为"ContentDB_00017"的新对象相同的ID.

4. The id <GUID> is in use.  An Microsoft.SharePoint.Administration.SPContentDatabase named "ContentDB_00017" is using the same id as the new object named "ContentDB_00017".

&s

请告诉我们是否正在做某事错误.

推荐答案

请尝试执行以下操作:

1.使用调用Http Web服务"创建SharePoint设计器工作流;检查它是否有效的操作.

1. Create a SharePoint designer workflow with "Call Http Web Service" action to check if it works.

https://dev.office.com/sharepoint/docs/general-development/working-with-web-services-in-sharepoint-workflows-using-sharepoint-designer

2.尝试使用Visual Studio 2013调试SharePoint 2013工作流解决方案.

2. Try to debug your SharePoint 2013 workflows solution using Visual Studio 2013.

https://blogs.msdn.microsoft.com/officeapps/2013/10/30/debugging-sharepoint-2013-workflows-using-visual-studio-2013/

3.尝试在SharePoint服务器中使用PowerShell部署解决方案.

3. Try to deploy your solution using PowerShell in SharePoint server.

最好的问候,

丹尼斯


这篇关于使用SharePoint Workflow HttpSend活动通过Web服务通过自己的内容Db创建网站集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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