We are using SP2013 on-premise enterprise edition. Recently we patched our farm and receive this error:
Error UpgradeWorkflowServiceActivities. Run Copy-SPLocalActivitiesToWorkflowService manually to complete this action.
So I tried to fix it by the PowerShell according this question.
I ran following:
$credential = [System.Net.CredentialCache]::DefaultNetworkCredentials $site = Get-SPSite("https://sites.sharepoint.com/") $proxy = Get-SPWorkflowServiceApplicationProxy $svcAddress = $proxy.GetWorkflowServiceAddress($site) Copy-SPActivitiesToWorkflowService -WorkflowServiceAddress $svcAddress -Credential $credential -Force $true
I ran above script on SPWEB01 (we also have SPWEB02, SPAPP01, SPAPP02, two OWA server and 1 SQL) The last command return follow error:
Copy-SPActivitiesToWorkflowService : Scope '/SharePoint' was not found. HTTP headers received from the server - ActivityId: f2122b2c-5f0b-4c58-a8d9-3bb283e39561. NodeId: SPAPP01. Scope: /SharePoint. Client ActivityId : b69d9ccf-051f-48c7-8985-bdfe37d887c4. At line:1 char:1
I have no clue what it means. Could I have your advice?
[UPDATE]: I found following in the upgrade error log. Seems related with the issue:
SharePoint Foundation Upgrade UpgradeWorkflowServiceActivities (126.96.36.199) 0 WARNING Error UpgradeWorkflowServiceActivities. Run Copy-SPLocalActivitiesToWorkflowService manually to complete this action. Error: Microsoft.Workflow.Client.WorkflowEndpointNotFoundException: Unable to connect to the remote service at http://SPAPP01:12291/SharePoint/. See InnerException for more details.