Register-SPworkflowservice unable to connect to the remote service during registering the Workflow Manager in SharePoint 2013

I have been installed the Workflow Manager by following the mentioned instructions in Install and Configure Workflow Manager In SharePoint 2013? that had been installed properly,

But when I tried to configure the SharePoint host to use a workflow service via running  Register-SPWorkflowService cmdlet, I got the following error!

Register-SPworkflowservice : unable to connect to the remote service

unable to connect to the remote service at

Cause:

This Issue usually occurs because of using incorrect port (12990) in “WorkflowHostUri” parameter within Register-SPWorkflowService cmdlet that should be the same port that was provided during configuring the Workflow Manager port as shown below.

Configure WF Ports

Keep in mind,

  • By default, The port (12290) is for HTTPs and (12291) for HTTP.
  • It shouldn’t be like the mentioned example in Microsoft TechNet where it mentioned “12990”, not as default port “12290” as shown below.

regester-spworkflow command from technet

Solution :

I investigated this issue by doing the following:

  • Check if the used port in “WorkflowHostUri” parameter within Register-SPWorkflowService is opened via “telnet” command.
    • Open Command prompt as administrator.Run CMD As Administrator
    • Telnet the port as this syntax “telnet  ServerIP  Port“,
      • If it is unable to connect, that mean the provided port is not the same as the port that provided during configuring workflow manager.

If Telnet command was not recognized, you should check ‘telnet’ is not recognized as an internal or external command, operable program or batch file to enable it.

check port connectivity via telnet command.png

  • Now, you should try again to Register-SPWorkflowService using the provided port that set during configuring the Workflow Manager!
    • If you didn’t remember the used port, you should run the following cmdlet to get the workflow configuration details.
Get-WFFarm | select httpport,httpsport

Get-WFFarm

  • Now, Register your workflow with the shown port based on it is HTTP or HTTPS.

SPSite: Specifies a site collection to configure.

It seems that each site collection needs to be registered with workflow service. But actually it’s not 100% correct, once you have registered a workflow service to any SharePoint site collection within the farm, it will be enabled for all SharePoint web applications / site collections. I am pretty sure from this behavior and that what I got on my farm.

WorkflowHostUri: Specifies a string of the full URI for the Workflow Service.

The provided ports must be the same provided ports in the Configure Ports step as above mentioned by default it’s 12291 for HTTP and 12290 for HTTPS.

Register-SPWorkflowService -SPSite 'https://myhost/mysite' -WorkflowHostUri 'http://workflowhost:12291'
  • The workflow should now be registered properly.

regester-spworkflow command

In next section, I will demonstrate How to check the Workflow Manager Connectivity Status?

Method 1:

  • Open IIS > From left side expand Sites > Workflow Management Site.

IIS workflow managemnt site

  • From right side > Click Browse.

browse wofkflow management url

  • The following page should be shown and that mean the workflow manager has been connected and registered properly.

workflow manager url working

Method 2:

  • Open SharePoint Designer > Workflows > Create Site Workflow > In Platform Type the SharePoint 2013 Workflow should be listed.

workflow in sharepoint designer

Method 3:

  • Open Central Administration > Application Management > Application Services > Click on Workflow Service Application Proxy.

WS application proxy

  • The Workflow should be Connected.workflow is connected

Enjoy 🙂

See also, How to Install and Configure Workflow Manager In SharePoint 2013?

Advertisements

2 thoughts on “Register-SPworkflowservice unable to connect to the remote service during registering the Workflow Manager in SharePoint 2013

    1. Hi dear,

      No, it’s not an error in Microsoft article, but as above mentioned, you should use the same provided port during configuring The Workflow Manager.Meanwhile, I prefer if Microsoft mentions the default value in their articles

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s