Failed to register because the farm is already registered with a workflow service

Failed to register because the farm is already registered with a workflow service

In this post, we will explain how to solve the “Register-SPWorkflowService: Failed to register because the farm is already registered with a workflow service” issue in SharePoint Workflow Manager. Also, we’ll learn how to Reregister SharePoint Workflow Manager Service.


Failed to register because the farm is already registered with a workflow service

In SharePoint 2016, I tried to rerun the Register-SPWorkflowService cmdlet on a farm that already has the Workflow Manager installed and registered!

My goal is to reregister SharePoint Workflow Manager Service! but the SharePoint workflow manager service is failed to register, I got the below error:

Error: Register-SPWorkflowService: Failed to register because the farm is already registered with a workflow service.

Failed to register because the farm is already registered with a workflow service
Failed to register because the farm is already registered with a workflow service

Why did the SharePoint workflow service failed to register?

Most importantly, you should know that It’s not allowed to register the SharePoint workflow manager service on the same web application more than one time. So if your SharePoint Workflow Service is already registered, and you have tried to run Register-SPWorkflowService cmdlet for the same web application, you will get this error “Register-SPWorkflowService: Failed to register because the farm is already registered with a workflow service.

How to Reregister SharePoint Workflow Service?

Firstly, to reregister workflow manager service on the SharePoint farm, you should do the following:

  1. Delete the Workflow Service Application Proxy.
  2. Run the Register-SPWorkflowService cmdlet on the server that you have the workflow manager installed.

Delete the SharePoint Workflow Service Application Proxy

  • Open Central Administration.
  • Below “Application Management“, click on “Manage Service Applications“.
Application Management - Manage Service Applications
  • Select the “Workflow Service Application Proxy“.
  • From the above ribbon, Click on “Delete“.
Delete Workflow Manager Service Application Proxy

Run the Register-SPWorkflowService cmdlet

  • Using a farm account or workflow admin account, Log in to the server that you configured the workflow manager on it.
  • Run SharePoint Management Shell as Administrator.
Run SharePoint Management Shell As Administrator
  • Register the SharePoint Workflow Manager service by running the below cmdlet with your own value.
Register-SPWorkflowService -SPSite 'http://sitecollectionurl' -WorkflowHostUri 'http://site:12291' -AllowOAuthHttp -force
  • The workflow manager service should be registered successfully now and the “Failed to register because the farm is already registered with a workflow service” is gone!
Resister SharePoint Workflow Manager

Register Register-SPWorkflowService Known Issues

Below are also known Issues that you may face when you run Register-SPWorkflowService.


Conclusion

In conclusion, we have learned it’s not allowed to rerun the “Register-SPWorkflowService” cmdlet on a farm that already registered with the workflow service.

Additionally, we have learned

  • How to Reregister SharePoint Workflow Manager Service,
  • How to solve “Failed to register the workflow manager because the farm is already registered with a workflow service.
Applies to
  • SharePoint 2019.
  • SharePoint 2016.
  • SharePoint 2013.
  • Workflow Manager.
You might also like to read
Have a Question?

If you have any related questions, please don’t hesitate to ask it at deBUG.to Community.

4 thoughts on “Failed to register because the farm is already registered with a workflow service”

  1. Pingback: Workflow Manager: Port is blocked | SPGeeks

  2. Pingback: Register-SPWorkflowService: Timeout Issue | SPGeeks

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top