While running the Registry command getting an Error.
When we run the below registry command in the SharePoint management
shell we got the below errors.
Registry command:
Register Workflow Manager to SharePoint farm Administrative
SharePoint Management Shell, run the below command.
Example:
Register-SPWorkflowService
-SPSite "http://Webapplicationurl.com"
-WorkflowHostUrl "http://WFM.SharePoint.com:12290/SharePoint "
-AllowOAuthhttp -force
Or
Register-SPWorkflowService
-SPSite "http://Webapplicationurl.com"
-WorkflowHostUrl "http://WFM.SharePoint.com:12290/SharePoint "
-scopename" " -AllowOAuthhttp -force
Error 1: Register-SPWorkflowService : The HTTP request
has timed out after 200000 milliseconds
Warning :
Warning: Overwriting existing scope named "SharePoint" in
the workflow server. If another SharePoint farm was registered using this
scope., that farm may not be able to continue working with the workflow server
unless re-registered under another scope name.
Solution
1:
1.
Verify Workflow Proxy Service from
Manage services from Central administrator showing error. Click on workflow
manager server proxy and you can see the errors.
2.
Delete Workflow Proxy Service from
Manage services from Central administrator.
3.
Proceed to run the registry command
again in SharePoint Management PowerShell.
Error 2:
Register-SPWorkflowService
: No Workflow server endpoint was found
at "http://endpoint:12290/SharePoint".
Please ensure the hostname and port number is correct and that the workflow
server gateway is running.
Solution
1:
1.
Verify Workflow Proxy Service from
Manage services from Central administrator showing error. Click on workflow
manager server proxy and you can see the errors.
2.
Delete Workflow Proxy Service from
Manage services from Central administrator.
3.
Proceed to run the registry command
again in SharePoint Management PowerShell.
Error 3: While
run Register-SPWorkflowService or run new-wfscope, We got 404
error. This is fiddler trace shows 404 message directly from IIS
Solution
1:
The 404
error shall come from Workflow Manager, but when the IIS is misconfigured, IIS
will overwrite the 404 from workflow Manager which causes Workflow Manager not
able to recognize the error.
Note:
Need to
delete URL scan3.1 in IIS "ISAPI Filters" in order to register
Workflow Manager to SharePoint and run Workflow Manager QuickTest Successfully.
When URL scan is enabled -- caused 404 errors.
Error 4: Register-SPWorkflowService : A Response was returned that did not come from the Workflow Manager. Statuscode = 500.
Error 5: Register-SPWorkflowService
: A Response was returned that did not come from the Workflow Manager.
Statuscode = 200.
Error 6: Register-SPWorkflowService The
Caller doesn’t have the necessary permissions required for this operation
Permissions granted: None. Required permissions: WriteScope. HTTP headers
received from the server – ActivityId:
Solution
1:
1.
Verify service account is added in the "BUILTIN\ADMINISTRATORS" group, If not add.
2.
Try to register again.
0 Comments