Register sharepoint workflow service

Tevon2.0 1,106 Reputation points
2023-01-27T19:16:18.9633333+00:00

How should I fill in this command in order to register the sp workflow service? I got the error below when I tried.

Register-SPWorkflowService -SPSite 'https://webapp.domain.com/managedpath/sitecollection' -WorkflowHostUri 'http://workflowhost.domain.com:12991' –AllowOAuthHttp

PS C:\Users\sp_farmadmin> Register-SPWorkflowService -SPSite 'http://lgempctr/SitePages/Home.aspx' -WorkflowHostUri 'http://workflowhost.domain.com:12991' -AllowOAuthHttp
Register-SPWorkflowService : Could not load file or assembly 'Microsoft.Workflow.Client, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file
specified.
At line:1 char:1
+ Register-SPWorkflowService -SPSite 'http://lgempctr/SitePages/Home.as ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...WorkflowService:RegisterSPWorkflowService) [Register-SPW
   orkflowService], FileNotFoundException
    + FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService
Microsoft 365 and Office SharePoint For business Windows
{count} votes

4 answers

Sort by: Most helpful
  1. Yanli Jiang - MSFT 31,596 Reputation points Microsoft External Staff
    2023-01-30T10:41:28.33+00:00

    Hi @Tevon2.0 ,

    May I know the version of SharePoint Server you used? Is it SharePoint Server 2019?

    According to your description, let's do some troubleshooting:

    1, It must be https for both URLs or http for both URLs. It can’t be mixed.

    2, Do following steps:

    Install the CU of the WFM Client on all of your SharePoint Servers

    On the application server hosting Workflow Manager 2013, stop and restart these services:

    Service Bus GatewayService

    Bus Message Broker

    Workflow Manager Backend

    Lastly, restart IIS on the WFEs.

    3, You can refer to these articles to confirm whether there is a problem with the previous steps.

    https://andreasglaser.com/blog/sharepoint-workflow-manager

    https://spgeeks.devoworx.com/configure-workflow-manager-sharepoint-2016/#register-sharepoint-2016-workflow-manager-service

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    4, If all of the above methods still cannot solve the problem, you can provide the ULS log to better solve the problem.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Yanli Jiang - MSFT 31,596 Reputation points Microsoft External Staff
    2023-02-01T10:06:13.3433333+00:00

    Hi @Tevon2.0 ,

    Have you tried the methods provided in the answer?

    If you want to try Power Automate, yes, you can.

    To work with Power Automate in SharePoint server 2019, we need to install on-premises gateways and connect to Power Automate cloud then implement the solutions.
    For more information on setting up and configuring on-premises data gateway, see:
    https://learn.microsoft.com/en-us/power-automate/gateway-reference
    https://www.cloudsecuritea.com/2018/10/using-on-premises-data-gateway-with-sharepoint-2019-and-microsoft-flow/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Yanli Jiang - MSFT 31,596 Reputation points Microsoft External Staff
    2023-02-02T09:04:02.6166667+00:00

    Hi @Tevon2.0 ,

    I found an update for sharepoint workflow manager for your reference:

    To ensure users can continue to use SharePoint 2013 platform workflows with their SharePoint Server environments, the SharePoint Product Group has released a new SharePoint Workflow Manager application to replace Service Bus and Microsoft Workflow Manager (Classic WFM). This new workflow application is only designed for SharePoint Server scenarios, and it’s recommended that users switch to this for new and existing Workflow Manager installations.

    Users can download the public builds from here: https://www.microsoft.com/en-us/download/details.aspx?id=104867

    SharePoint Workflow Manager is compatible with SharePoint 2013, 2016, 2019, and Subscription Edition. We recommend that SharePoint customers replace their existing Microsoft Workflow Manager deployments with SharePoint Workflow Manager once it's released because we'll focus any future investments and maintenance on SharePoint Workflow Manager rather than Microsoft Workflow Manager.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  4. 杨建宇 86 Reputation points MVP
    2023-02-13T15:58:15.07+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.