Workflow Manager 1.0 Register-SPWorkflowService Error
I have successfully installed Workflow Manager (and latest updates) and all required components on the same dev server as sharepoint 2013 sp1 on a server 2008 r2. SharePoint is functioning properly with no errors, When I run get-wffarmstatus everything
shows as running with no errors in the logs. I can browse to both workflow management sites (http://localhost:12991 and
https://localhost:12990 and receive the expected xml, however, when I run the cmd in the sharepoint shell
Register-SPWorkflowService -spsite http://devsites01 -workflowhosturi
http://spdevserver01:12991 -allowoauthhttp
I get the following error:
Register-SPWorkflowService -spsite http://devsites01 -
workflowhosturi http://spdevserver01:12991 -allowoauthhttp
Register-SPWorkflowService : Unable to connect to the remote service at
http://spdevserver01:12991/SharePoint/. See InnerException for more details.
Client ActivityId : eaedfcf9-9172-4756-a285-22dbaf929ab9.
At line:1 char:1
+ Register-SPWorkflowService -spsite http://devsites01 -workflowhosturi
http:/ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...WorkflowService:
RegisterSPWorkflowService) [Register-SPWorkflowService], WorkflowEndpointN
otFoundException
+ FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell
.RegisterSPWorkflowService
Here is the error from the ULS log:
Microsoft.Workflow.Client.WorkflowEndpointNotFoundException: Unable to connect to the remote service
at http://spdevserver01:12991/SharePoint/. See InnerException for more details. Client ActivityId : eaedfcf9-9172-4756-a285-22dbaf929ab9. ---> System.Net.WebException: Unable to connect to the remote
server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it [::1]:12991
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) -
-- End of inner exception stack trace ---
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) -
-- End of inner exception stack trace ---
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.ScopeManager.Get()
at Microsoft.SharePoint.WorkflowServices.WorkflowServerPairingContext.RegisterFarm()
at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService.InternalProcessRecord()
at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord()
If browse to http://localhost:12291/sharepoint I get a 404 page not found error. I have compared the configuration with this dev server vs my functioning lab server and can't seem to determine what the
difference is that is causing this error, nor have I found much in bing/google searches for this specific error. Has anyone encountered this or have any suggestions on resolving this issue?
http://sharepoint.stackexchange.com/questions/90933/no-connection-between-sp2013-and-workflow-manger
do you have SharePoint Developer tools Preview for VS 12 installed on the server, if yes? you have to uninstall it, reboot it and run the register command again.
SharePoint 2013 Workflow Manager error when I register workflow service
Also make sure ports are not blocked by firewall. and try to browse the endpoint URI url in the browser.
If this helped you resolve your issue, please mark it Answered
Similar Messages
-
Register-SPWorkflowService error: The underlying connection was closed
I have a three server workflow manager farm. I'm using hardware load balancing across the three servers. I've associated a hostname in DNS with the VIP on the NLB.
When I run Register-SPWorkflowService and point at the hostname for the -WorkflowHostUri parameter, I get the error:
Register-SPWorkflowService The underlying connection was closed An unexpected error occurred on a receive.
If I put that URL into a browser on the SP machine where I'm running this cmdlt, it responds with the correct XML. So I know that the NLB is routing regular http requests to my machines in the quorum.
Also, if I use the actual machine name of one of the three machines in the workflow manager quorum, the cmdlt works.
I know very little about NLB hardware. Is there something I need to tell the guys configuring the NLB to do so that the connection doesn't close?Yes, I actually had done that before using a host file entry to replace the DNS mapping from the NLB VIP to the IP of one of the machines in the WFM quorum. It worked from the standpoint of registering and SharePoint shows that the farm is "connected". However,
when I go to create an SP 2013 workflow, it still only shows 2010 workflows in the dropdown (in SPD.)
I also put Fiddler on the SharePoint machine that I'm using to register the WFM quorum to SharePoint. It shows that when the register cmdlt is executed, several calls to the
/SharePoint/ web service endpoint are made, initially getting a 401 asking for an authentication, and then after creds are passed, getting a 200. But then a call to
/SharePoint/$Activities is called and a 401 occurs twice, after which the registration cmdlt fails. -
Workflow Manager won't register
I am unable to get workflow manager to register in my farm, I have installed the workflow manager on the application server and the client on the 2 WFE's.
The Workflow mgt app pool is running, workflow mgt site is running, the service application proxy is started, the workflow timer service is started, the workflow manager backend service is running in the service msc, the sercurity token service application
is running, but I am unable to get the service to register.
I am also able to open the URL for the service in a browser running as an admin http://server:12291/ and see the XML.
when I run Get-WFFarmstatus it shows the frontend and backend service status as running.
the error I get is
Register-SPWorkflowService : Failed to query the OAuth S2S metadata endpoint at URI 'http://site collection URL/_layouts/15/metadata/json/1'. Error details: 'An error occurred while sending the request.' HTTP headers received from the server - ActivityID:
51f844c9-a6b7-40a1-a381-9972506beb0c. NodeId: 20sp7. Scope: /SharePoint. Client ActivityId: 32ea0817-17b8-46a2-8418-bba5438b1a20.
The service account is a local admin, it has full control over the web application.
I also ran the
$config = (Get-SpSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.AllowMetadataOverHtto = $true
$config.Update()
before running the register command still getting the same error.
I have disconnected the workflowmanager from the farm and reconnected it, even uninstalled it, the service bus and workflow client and deleted all the DB's and reinstalled it. Everything seems to be running just will not allow me to register it.
Please try to browse the following URL and see if it gives you option to download 1.json
http://siteurl/_layouts/15/metadata/json/1
Please share entries found in ULS Logs while running the command.
Also try using -Force switch while running the command and check the behavior.
Check below link:
http://consulting.risualblogs.com/blog/2013/05/24/sharepoint-2013-and-workflow-manager-farms/
http://sharepointdeal.wordpress.com/2013/07/08/register-spworkflowservice-failed-to-query-the-oauth-s2s-metadata-error/
Thanks, Bravo -
Workflow Manager and SharePoint Designer publishing error
Hello all,
I'm hoping for some help in fixing this issue.
I've been trying to publish a workflow using SharePoint Designer only to find that I get this error:
"Errors were found when compilint the workflow. The workflow files were saved but cannot be run."
After clicking on the advanced button it shows error:
System.InvalidOperationException: Operation failed with error Microsoft.Workflow.Client.WorkflowCommunicationException: The request was aborted: The request was canceled. Client ActivityId : 6a78ad9c-6ac6-f03a-0680-003bd46e5f68. ---> System.Net.WebException:
The request was aborted: The request was canceled. ---> Microsoft.SharePoint.SPException: The requested operation requires an HTTPS (SSL) channel.
Ensure that the target endpoint address supports SSL and try again.
Target endpoint address:
Note: the message cuts off after the "Target endpoint address".
Looking on the SharePoint server, when I try and pull up the Workflow Manager site (https://localhost:12290/) I get this response:
<?xml version="1.0"?>
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>AuthorizationError</Code><message><Message>The caller does not have the necessary
permissions required for this operation. Permissions granted: None. Required permissions: ReadScope.</Message></message></Error>
I am running this farm with HTTPS and I have registered the SP workflow service with the appropriate application. I have also set the Workflow Management Site bindings in IIS to utilize the same certificate as the default SharePoint site.
At this point, I don't know if the error that I received from Designer is related to the Site error, although I do know that I also have a Development environment that is able to publish workflows just fine. However, this farm uses HTTP rather than HTTPS
so I can only assume that the differences are what's causing the issue. I would appreciate any help that anyone can offer. Thanks!Hi,
As I understand, you encountered the issue when you published a workflow on SharePoint 2013 workflow platform.
I wonder does it work well before when using 2013 workflow platform? If it works before, did you install any updates or change the configuration to the workflow related settings?
If this is the first time after you installed workflow manager 2013, then I’d recommend you try re-registering workflow service per the link below and post the result:
http://technet.microsoft.com/en-us/library/jj663115(v=office.15).aspx
http://technet.microsoft.com/en-us/library/jj658588(v=office.15).aspx
From the message you accessed workflow host uri, please make sure the account to wfsetup and wfservice account are both in wfadmins group.
http://blogs.msdn.com/b/briangre/archive/2013/02/20/least-privilege-configuration-for-windows-azure-workflow-with-sharepoint-2013.aspx
Regards,
Rebecca Tu
TechNet Community Support -
Configure Workflow Manager 1.0 in Project Server 2013 with FBA
Hi,
Please suggest the ways to configure Workflow manger in Project server 2013 where PWA using FBA
we have tried for below situation, but no luck!!
The workflow manager configured using windows login account, we are associating a FBA site with workflow manager which is
Register-SPWorkflowService -SPSite 'http://FBAsite' -WorkflowHostUri 'http://workflowmanagerapplication:12291'
Following steps are taken care while creating workflow.
We have added users to the user service profile services
User profile synchronization is started
The user by whom we are logged is available in User Profile list
we are not running workflow with share point system account
Final step full synchronization of User Profile Application
Below the error we are getting when workflow run
Resume this workflow
RequestorId: 879e36f9-9db0-3c16-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["440"],"SPRequestGuid":["879e36f9-9db0-3c16-a91c-356d29becb34"],"request-id":["879e36f9-9db0-3c16-a91c-356d29becb34"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4605"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Sun, 15 Jun 2014 12:44:03 GMT"],"Server":["Microsoft-IIS\/7.5"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
executor, BookmarkManager bookmarkManager, Location resultLocation)Hi Mafeer,
Since this issue is related to Project Server, I would like to recommend you to post there for more effective support:
Project Server General Questions and Answers
Thanks for your understanding. -
Hi
I tried to uninstall the workflow manger 1.0 by leaving the farm using Workflow Configuration wizard. But when i click on "Leave Workflow Manager Farm" it throws an error that 'Microsoft.Workflow.Deployment.ConfigWizard" stopped working...
How to unistall it?
Regards,
SivaHi Siva,
Please "run as Administrator" on the workflow configuration wizard, see if it could work.
If above doesn't work, please check workflow management log for troubleshooting.
http://sladescross.wordpress.com/2013/03/12/workflow-manager-stopped-working/
http://technet.microsoft.com/en-us/library/jj193526.aspx
Thanks
Daniel Yang
TechNet Community Support -
Hi
I have SharePoint 2013 farm and installed Workflow Manager 1.0 and configured it and have been runing fine for several months. I upgraded this farm to SP 1 and then started having some issue with publish WF 2013 with task in SPD.
I re-Registered using Register-SPWorkflowService command and that fixed the problem and WorkFlow Manager running again OK. It has been couple of monthle and now I am having the problem again but with a different error on SPD
So doing what I did before, I tried to re-Registered WFM but this time getting the error below
Register-SPWorkflowService : The data or messaging layer is unavailable. Please retry
after 300 seconds.
The only possible resolution that I found is to add the -AllowOAuthHttp in my Register-SPWorkflowService cmdlet but that didnot not resolve the problem. I tried that anyway eventhough we do not allow http.
I did some checking for status and configuration and Get-SBFarmstatus showing all WFM services are running OK
I browsed to the WFM server https://servername:12290 and get the same error
- <Errorxmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>UnexpectedError</Code>
<Message>The data or messaging layer is unavailable. Please retry after 300
seconds.</Message>
</Error>
If anyone have advise / suggestion to resolve this issue, please share
Thanks in advance for all comments
SwanlHi Swanl,
Please refer to the article below for troubleshooting actions for workflow manager:
http://blogs.msdn.com/b/vincent_runge/archive/2014/01/07/troubleshooting-actions-for-sharepoint-2013-workflows.aspx
Moreover, activate workflow manager logs and see if there is any error message that could be help.
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
401 Unauthorized Error when Registering Workflow Manager
I have installed the workflow manager successfully. However, when I try to run Register-SPWorkflowService I get a 401 Unauthorized error. I am running SharePoint 2013 Management Shell as administrator.
When I use internet explorer to browse to https://FQDNofServer:12290 I get prompted for my password 3 times and then get the Not Authorized Error here as well. I have tried this from the local host as well as remote machines with the same result therefore,
I don't think I need to disable loopback check.
My user is a member of the Workflow AdminGroup as well as a local admin, farm administrator and I also added my account as an administrator for the Workflow Service Application in Central Administration. I also tried giving the workflow service account full
read on the web application.
I cannot find anything in the ULS logs or windows event viewer logs when the login fails. Any help would be appreciated.
Thank You.Hi,
Glad to hear that you solve this issue, thanks for your sharing.
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
In a multi-server FARM deployment, I’m struggling to get the workflow manager to finalise via the PowerShell command, Register-SPWorkflowService.
When executing the command (Register-SPWorkflowService – SPSite
http://[FQDNSite] –WorkflowHostUri http://[FQDN]:12291/ -AllowOAuthHttp –Force), I get the error mentioned in the title.
When digging deeper into the logs (Applications and Services
à Microsoft Workflow à Operations) I get the following warnings and errors:
(Warning)
Failed SQL command after 1 tries with error '18456'. Exception: System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
(Error)
Error processing management request. Method: GET, RequestUri: http://[FQDN]:12291/ServiceManagement/$System/$Metadata/json/1/, Error: System.Data.SqlClient.SqlException
(0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
It is my understanding that the PowerShell command takes the context of the logged on user for this command.
I’m logged in as “FARM” account and the script window was opened under “Run as Administrator” instruction.
All checks have been completed and all services are running as expected.
GET-WFFarm and GET-WFFarmStatus returns normal. All services are running under domain accounts with sufficient privileges.
Workflow Manager CU2 to get 1.0 Refresh and Workflow Manager 1.0 Refresh is currently NOT installed as it didn’t work before when these updates
were installed.
Under the CA patch level page, I did pick up the following KB being required under Microsoft Workflow Solutions Framework (http://support.microsoft.com/kb/2880963).
Installing this is my next step.
Is there anything else I should try or is the patch the next best step?
http://fhpienaar.wordpress.com/ (BLOG) http://www.mint.co.za/ (Company WEB)Looks like C# code and you've posted to the Visual Basic forum.
Anyway, an error 500 means that there is a problem accessing the resource in the web request. There could be many reasons for this so I would verify that the web request is correct first and if it continues to fail then the resource (web page?) needs to
be fixed before your code will function.
Visual C# forum
Paul ~~~~ Microsoft MVP (Visual Basic) -
My Fellow SharePoint 2013 Engineers,
For the past two days I have been struggling to setup the SharePoint 2013 Workflow Manager. After following the detailed steps provided by
Harbar.net when I reach the final step to register the workflow service for a site, I get the below error.
Below is the powershell command that I am running.
Register-SPWorkflowService -SPSite "http://service.domain.com" -Workflowhosturi "http://wfm.domain.com:12291" -AllowAuthHttp -force
Our SharePoint farm comprises of two WFE servers and two web application servers all of which are setup. You can see the configuration across our farm after I run the following commands
Import-Module WorkflowManager
Get-WFFarm
Get-WFFarmStatus
FarmType : Workflow
WFFarmDBConnectionString : Data Source=sp13-sql-01;Initial Catalog=WFManagementDB;Integrated Security=True;Encrypt=False
RunAsAccount : domain\svc_wfman
AdminGroup : BUILTIN\Administrators
Hosts : {Name: SP13-APP-01.domain.com, Configuration State: HostConfigurationCompleted, Name: SP13-APP-02.domain.com, Configuration State:
HostConfigurationCompleted, Name: SP13-WEB-01.domain.com, Configuration State: HostConfigurationCompleted, Name: SP13-WEB-02.domain.com,
Configuration State: HostConfigurationCompleted}
InstanceDBConnectionString : Data Source=sp13-sql-01;Initial Catalog=WFInstanceManagementDB;Integrated Security=True;Asynchronous Processing=True;Encrypt=False
ResourceDBConnectionString : Data Source=sp13-sql-01;Initial Catalog=WFResourceManagementDB;Integrated Security=True;Asynchronous Processing=True;Encrypt=False
HttpPort : 12291
HttpsPort : 12290
OutboundCertificate : Thumbprint: B40221F8511412CF8509DB8873815E793D3B6AC5, IsGenerated: True
Endpoints : {https://SP13-APP-01.domain.com:12290/, https://SP13-APP-02.domain.com:12290/, https://SP13-WEB-01.domain.com:12290/, https://SP13-WEB-02.domain.com:12290/}
SslCertificate : Thumbprint: D1F9BF5D83B5CC93D7639A84FEB29A3EC72EEE0F, IsGenerated: True
EncryptionCertificate : Thumbprint: D1F9BF5D83B5CC93D7639A84FEB29A3EC72EEE0F, IsGenerated: True
PS C:\> get-wffarmstatus
HostName Service
ServiceStatus
SP13-APP-01.domain.com WorkflowServiceBackend
Running
SP13-APP-01.domain.com WorkflowServiceFrontEnd
Running
SP13-APP-02.domain.com WorkflowServiceBackend
Running
SP13-APP-02.domain.com WorkflowServiceFrontEnd
Running
SP13-WEB-01.domain.com WorkflowServiceBackend
Running
SP13-WEB-01.domain.com WorkflowServiceFrontEnd
Running
SP13-WEB-02.domain.com WorkflowServiceBackend
Running
SP13-WEB-02.domain.com WorkflowServiceFrontEnd
Running
When I go Central Administration>Service Applications>Workflow Service Application Proxy, below is what I see
Thanks in advance for your help.
Daniel Christian (MCTS)Since I didn't get any response back, I turned on all the loggin on our SharePoint environment and ran the powershell command again. I got the same error. I searched for the Client ActivityID on the log file and found the below. Can anyone shed some light
on it?
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. --->
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) --- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) at System.Net.Connection.ReadCallback(IAsyncResu... ce3bb4ef-40ff-4db8-b6a3-517fd5d1fbf5
11/22/2013 11:45:05.10* PowerShell.exe (0x0874) 0x337C SharePoint Foundation PowerShell
6tf2 High ...lt asyncResult) --- End of inner exception stack trace --- at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result) at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) --- End of inner exception stack
trace --- at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.ScopeManager.Get() at Microsoft.SharePoint.WorkflowServices.WorkflowServerPairingContext.RegisterFarm() at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowSe... ce3bb4ef-40ff-4db8-b6a3-517fd5d1fbf5
11/22/2013 11:45:05.10* PowerShell.exe (0x0874) 0x337C SharePoint Foundation PowerShell
6tf2 High ...rvice.InternalProcessRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() ce3bb4ef-40ff-4db8-b6a3-517fd5d1fbf5
Daniel Christian (MCTS) -
Errors when installing Workflow Manager
I am trying to install WF Manager, but with no success.
On the same machine, I have installed SQL Server 2014, SharePoint 2013 with SP1 and WF Manager.
I installed WF manager (account that runs WF manager is sp farm admin) and registered with command
Register-SPWorkflowService -SPSite "http://dev/" -WorkflowHostUri "http://localhost:12291" -AllowOAuthHttp
In Central Admin, when I click on "Workflow Service Application Proxy ", I get message that WF is connected. Backend service is running. In SP Designer, I can create 2013 Workflow and publish it, but that WF does not work, it break instantly.
In SP logs, I get this error when I try to activate feature that contains workflow (solution that contains WF created in Visual Studio):
http://radioaddictsanonymous.com/view/635399286724222582163282/error-while-deploying-sp2013-workflow-from-vs2012-nullreferenceexception
So, I deleted WF manager and service bus and reinstalled it, but with no luck. Now backedn service is not working, and I can't start it, getting this error:
"The Workflow Manager Backend service could not be started A system error has occurred System error 1067 has occurred"
In Event Viewer I have this error:
https://social.technet.microsoft.com/Forums/office/en-US/de554aed-c9ae-4725-82fa-251446bacc20/workflow-manager-10-sharepoint-2013-the-process-was-terminated-due-to-an-unhandled-exception?forum=sharepointgeneral
I have tried to reinstall everything couple of times, but it doesn't work. I think that I am not deleting everything related to workflow before reinstallation. How can I unregister already registered WF service and reinstall everything correctly??Hi,I had already done disableloopbackcheck and it did not matter.No problem with creating scopes (using powershell) but pairing fails anyway.Here is the config from a local explorer connection to the HTTPS port:(And following it, you may see the result of
a scope enumerator script)
<?xml version="1.0"?>
<ScopeInfo xmlns="http://schemas.microsoft.com/workflow/2012/xaml/activities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ChildScopeCount>3</ChildScopeCount>
<DefaultWorkflowConfiguration/>
<Description>For / sample only</Description>
<LastModified>2013-11-08T21:22:00.967</LastModified>
<LastRevised>2013-11-08T00:04:31.88</LastRevised>
<Path>/</Path>
<SecurityConfigurations>
<ScopedSecurityConfiguration i:type="WindowsSecurityConfiguration">
<Name>Microsoft.Workflow.Management.Security.WindowsSecurityConfiguration</Name>
<WorkflowAdminGroupName>altemis\WorkflowAdmins</WorkflowAdminGroupName>
</ScopedSecurityConfiguration>
</SecurityConfigurations><
Status>Active</Status>
</ScopeInfo>
PS C:\Shared> C:\Shared\WF Script-Enumaret Scopes.ps1
Name:
Path: /
Status: Active
User Comments: For / sample only
Parent: None
Children: 3
Exception calling "GetChildScopes" with "0" argument(s): "Scope '/$ChildScopes' was not found. HTTP headers received from
the server - ActivityId: 616224db-0321-450a-92ef-f03384c008a2. NodeId: ALTEMIS-SVR02. Scope: /$ChildScopes. Client
ActivityId : 649dba85-dc89-0002-d9bf-9d6489dcce01."
At C:\Shared\WF Script-Enumaret Scopes.ps1:21 char:9
+ $manager.GetChildScopes() | % { WriteScopeInfo $scopeUri $_.Path $scope. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ScopeNotFoundException
Muharrem -
How to re-register Workflow Service in workflow manager 1.0?
I am using SharePoint 2013 Management Shell to re-register my Workflow Service due the following error I am having in Sharepoint Designer 2013:
Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot set unknown member 'CompositeTask.RelatedContentLinkListItemIntegerId'. HTTP headers received from the server - ActivityId: e8e6d4fe-2a4e-41df-a046-a88e93e89e27.
NodeId: FS0008. Scope: /SharePoint/default/5985c481-dbed-409b-ada8-2aa2bfc64a47/08f0ee16-a466-4797-9ee0-4cdc56b27fe7. Client ActivityId : 403fe49c-6f29-f019-9b9c-d69dcbbedef6. ---> System.Net.WebException: The remot
Problem is that I don't seem to have connection when it comes to indicate the WorkflowUri
Can this error be fixed in any other way?First you have to clean up
The clean up process is pretty easy, but as always I warn you against making changes to your systems if you are unsure of
the repercussions of doing it incorrectly. Additionally, removing / un-registering Workflow Services can halt, break, etc Workflows in the Farm.
Un-register the Workflow Service for the site
Navigate to Central Administration > Security > Manage Trust
Highlight the row by clicking the anchor link, it doesn’t work like other row selections in SharePoint (rather annoyingly)
Click Delete from the ribbon
Repeat steps 2 and 3 until all the “unfriendly” entries (assuming you’re not already using some)
Enjoy the nice clean Manage Trust pane
Next register it again with below PS command
Register-SPWorkflowService -SPSite 'https://myhost/mysite' -WorkflowHostUri 'https://workflowhost:12990' -
When I try with Register-SPWorkflowService for SP2013 integration or run C# samples for workflow manager 1.0 I get
"The remote server returned an error: (404) Not found".
With C# sample code runs,
Scope '/$Activities' was not found. HTTP headers received from the server - ActivityId: e268765f-9d95-47ed-81fd-c4b38f40bfe0. NodeId: XXXX. Scope: /$Activities/...
The inner exception is:
The remote server returned an error: (404) Not Found.
We have got stuck here for a couple of days and...
The workflow server runs on a dedicated machine than the SQL server for workflow farm DBs...
I found one similar complain for the pre-release versions of the workflow and service bus etc.
Help please...
muharrem
MuharremHi,I had already done disableloopbackcheck and it did not matter.No problem with creating scopes (using powershell) but pairing fails anyway.Here is the config from a local explorer connection to the HTTPS port:(And following it, you may see the result of
a scope enumerator script)
<?xml version="1.0"?>
<ScopeInfo xmlns="http://schemas.microsoft.com/workflow/2012/xaml/activities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ChildScopeCount>3</ChildScopeCount>
<DefaultWorkflowConfiguration/>
<Description>For / sample only</Description>
<LastModified>2013-11-08T21:22:00.967</LastModified>
<LastRevised>2013-11-08T00:04:31.88</LastRevised>
<Path>/</Path>
<SecurityConfigurations>
<ScopedSecurityConfiguration i:type="WindowsSecurityConfiguration">
<Name>Microsoft.Workflow.Management.Security.WindowsSecurityConfiguration</Name>
<WorkflowAdminGroupName>altemis\WorkflowAdmins</WorkflowAdminGroupName>
</ScopedSecurityConfiguration>
</SecurityConfigurations><
Status>Active</Status>
</ScopeInfo>
PS C:\Shared> C:\Shared\WF Script-Enumaret Scopes.ps1
Name:
Path: /
Status: Active
User Comments: For / sample only
Parent: None
Children: 3
Exception calling "GetChildScopes" with "0" argument(s): "Scope '/$ChildScopes' was not found. HTTP headers received from
the server - ActivityId: 616224db-0321-450a-92ef-f03384c008a2. NodeId: ALTEMIS-SVR02. Scope: /$ChildScopes. Client
ActivityId : 649dba85-dc89-0002-d9bf-9d6489dcce01."
At C:\Shared\WF Script-Enumaret Scopes.ps1:21 char:9
+ $manager.GetChildScopes() | % { WriteScopeInfo $scopeUri $_.Path $scope. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ScopeNotFoundException
Muharrem -
Hello All , Request your help on the below issue ,
We have a single server farm SP 2013 where workflow was working as expected but its broken now , Not sure
what caused this. Workflow manager is installed alongside Service Bus. Workflow Manager client is installed on the same SP server.
We are able to create and publish the workflows from SP Designer without errors but when we start the workflow from SharePoint list we get an error " Sorry something went wrong". We have tried creating new workflows but the same problem.
We receive the below error in event viewer.
Error processing management request. Method: PUT, RequestUri: http://server URL:12291/$Workflows/89c767d2-82d2-4bd9-8e5e-dcace81d844f, Error: System.ArgumentException: The remote server returned an error: (400) Bad Request. ---> System.Net.WebException:
The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.EndGetResponse(GetAsyncResult`1 thisPtr, IAsyncResult ar)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
--- End of inner exception stack trace ---
Server stack trace:
Exception rethrown at [0]:
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Gateway.HttpAsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Gateway.WorkflowServiceGateway.<>c__DisplayClass6a.<EndCreateOrUpdateWorkflow>b__69()
at Microsoft.Workflow.Gateway.WorkflowServiceGateway.ExceptionFilter[T](Func`1 body)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
ULS logs give below error
Error 1 - Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. HTTP headers received from the server - ActivityId: ba6e77cb-aaae-41a0-9cc8-1ea817d0045e. NodeId: Servername.
Scope: /SharePoint/default/bc694777-7bbb-473e-ab2d-20087221a97a/5229793b-31a1-44b1-9b0b-374f38b762fd. Client ActivityId : a6daec9c-7139-7034-b4ee-edeb1f96ec2a. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) -
-- End of inner exception stack trace ---
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManager.Publish(WorkflowDescription description, Boolean terminateActiveInstances)
at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishWorkflow(String serviceGroupName, WorkflowDescription workflow)
at Microsoft.SharePoint.WorkflowServices.WorkflowProxy.CreateDefinitionSubscription(String subscriptionName, String eventSource, List`1 eventTypes, String definitionName, IDictionary`2 metadata, WorkflowEventContext eventContext) StackTrace:
at Microsoft.Office.Server.Native.dll: (sig=35339f9c-8871-4ef1-9118-9c1bd0cb6598|2|microsoft.office.server.native.pdb, offset=131CE)
at Microsoft.Office.Server.Native.dll: (offset=21B4D)
Error 2 - Error publishing workflow subscription (republish or retry publish) information: Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. HTTP headers received
from the server - ActivityId: ba6e77cb-aaae-41a0-9cc8-1ea817d0045e. NodeId:
ServerName. Scope: /SharePoint/default/bc694777-7bbb-473e-ab2d-20087221a97a/5229793b-31a1-44b1-9b0b-374f38b762fd. Client ActivityId : a6daec9c-7139-7034-b4ee-edeb1f96ec2a. ---> System.Net.WebException: The remote server returned an error: (500)
Internal Server Error.
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) -
-- End of inner exception stack trace ---
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManager.Publish(WorkflowDescription description, Boolean terminateActiveInstances)
at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishWorkflow(String serviceGroupName, WorkflowDescription workflow)
at Microsoft.SharePoint.WorkflowServices.WorkflowProxy.CreateDefinitionSubscription(String subscriptionName, String eventSource, List`1 eventTypes, String definitionName, IDictionary`2 metadata, WorkflowEventContext eventContext)
at Microsoft.SharePoint.WorkflowServices.FabricSubscriptionService.<>c__DisplayClass1.<CreateDefinitionSubscription>b__0()
at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)
at Microsoft.SharePoint.WorkflowServices.FabricSubscriptionService.CreateDefinitionSubscription(String subscriptionName, Guid eventSourceId, String eventSource, List`1 eventNames, String definitionName, IDictionary`2 metadata, WorkflowEventContext eventContext)
at Microsoft.SharePoint.WorkflowServices.WorkflowSubscriptionStorageEventReceiver.ItemUpdating(SPItemEventProperties properties)
Error3 - Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. HTTP headers received from the server - ActivityId: ba6e77cb-aaae-41a0-9cc8-1ea817d0045e. NodeId: ServerName.
Scope: /SharePoint/default/bc694777-7bbb-473e-ab2d-20087221a97a/5229793b-31a1-44b1-9b0b-374f38b762fd. Client ActivityId : a6daec9c-7139-7034-b4ee-edeb1f96ec2a. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at SPRequest.AddOrUpdateItem: UserPrincipalName=i:0).w|s-1-5-21-182846760-3036401646-508972453-351846, AppPrincipalName= ,bstrUrl=http://sharepointsite ,bstrListName={48A21758-9123-48F0-9BDE-9EB632B07BC6} ,bAdd=False ,bSystemUpdate=False ,bPreserveItemVersion=False
,bPreserveItemUIVersion=False ,bUpdateNoVersion=False ,pbstrNewDocId=00000000-0000-0000-0000-000000000000 ,bHasNewDocId=False ,bstrVersion=16 ,bCheckOut=False ,bCheckin=False ,bUnRestrictedUpdateInProgress=True ,bMigration=False ,bPublish=False ,bstrFileName=<null>
Any help appreciated. Thanks in advance.Hi,
As I understand, you encountered the issue when you published a workflow on SharePoint 2013 workflow platform.
I wonder does it work well before when using 2013 workflow platform? If it works before, did you install any updates or change the configuration to the workflow related settings?
If this is the first time after you installed workflow manager 2013, then I’d recommend you try re-registering workflow service per the link below and post the result:
http://technet.microsoft.com/en-us/library/jj663115(v=office.15).aspx
http://technet.microsoft.com/en-us/library/jj658588(v=office.15).aspx
From the message you accessed workflow host uri, please make sure the account to wfsetup and wfservice account are both in wfadmins group.
http://blogs.msdn.com/b/briangre/archive/2013/02/20/least-privilege-configuration-for-windows-azure-workflow-with-sharepoint-2013.aspx
Regards,
Rebecca Tu
TechNet Community Support -
Hello, I am getting error while publishing the 2013 workflow via designer. Also, under sharepoint designer if I try to delete any workflow then the page just refreshes and the workflow does not get deleted.
I checked the services.msc and found that the workflow backend service was stopped. (this happened as the password of the user under which this serivce was running had changed).
So, the network admin changed the service user to LOCAL SYSTEM and started the service.
Now, the workflow backend service is started. We have run the iisreset also.
However, I am still getting the same error:-
System.IO.InvalidDataException: A response was returned that did not come from the Workflow Manager. Status code = 503:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Service Unavailable</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Service Unavailable</h2>
<hr><p>HTTP Error 503. The service is unavailable.</p>
</BODY></HTML>
Client ActivityId : ee94689c-4e08-b055-fe9c-268d7a94
Please find attached snapshot.
Is the error as a result of the change in service user? Can you tell me what priviledges should the account running the workflow backend service must have?
UPDATE 1:-
We have set the workflow service backend account user as farm admin and also tried to set it to site admin. The service is re-started. Now, for a new web application,
I can delete workflows. However, for existing site, I am not able to delete the existing workflows.. Also, I am not able to publish workflows (present under new and previous sites) and the error is same as described earlier.Hi Nachiket,
According to your description, my understanding is that you got an error while publishing the 2013 workflow via SharePoint 2013 Designer.
As you have changed the password of this service. Please open IIS and make sure identify of the WorkflowMgmtPool is correct, you can re-type the identify. Then make this pool is started.
Open Services, find Service Bus Message Broker service and Windows Fabric Host Service. Make sure they are running. If not, firstly, start Windows Fabric Host Service, then start Service Bus Message Broker service. If Service Bus Message Broker service is
started, stop and re-start it.
Here are some similar posts for you to take a look at:
http://developers.de/blogs/damir_dobric/archive/2012/10/23/deploying-sharepoint-workflows.aspx
http://developers.de/blogs/damir_dobric/archive/2012/09/18/servicebus-message-broker-service-is-starting-and-starting.aspx
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support
Maybe you are looking for
-
Questions about Using Lightroom and Print Studio Pro
I want to use Print Studio pro via the lightroom plugin since as I understand it, that is the only way to ensure a 16-bit file is being passed to the printer (on Windows). However, I am a little confused about how the image is being rendered. Is li
-
My computer is no longer responding to my iPod && my iPod is not charging.
Please help me. I don't know why, but on the 26th, I downloaded songs onto my iPod, but today, my iPod won't charge, my computer won't respond to my iPod, and under devices on iTunes, my iPod is no longer there. Also, this question is all over the bo
-
The selected context node does not have attributes - Message no. SWDP_WB_TO
Hello, I am trying out the example in web dynpro documentation -> Creating a Simple Flight Info Application and in part 3 steps 11 - 13 I get the following error The selected context node does not have attributes and the associated message class and
-
Downloadhelper won't work in Youtube & Firefox 19.02
I am on a Mac..up until a few days ago -before I upgraded my Firefox to 19.02 - Download Helper on Youtube was working fine. Since the upgrade, nothing happens when I click on any of the drop-down menus. The tri-balls on the bottom right are grayed o
-
My Time Capsule will light up amber, but quickly shuts down. Ideas?