Joseph Michael Pesch
VP Programming

Deploying SharePoint Workflow Feature to Server Farm

by 11. January 2012 11:52


Assume you are trying to deploy the workflow feature to a sub-site:



To setup the Visual Studio Solution, change the URL located in three areas:

1.       Project -> Site URL -> http://ServerNameHere/sites/SubSiteNameHere

2.       Web References -> ExcelWebService -> Web Reference URL -> http://ServerNameHere/sites/SubSiteNameHere/_vti_bin/excelservice.asmx

3.       Web References -> ListService -> Web Reference URL -> http://ServerNameHere/sites/SubSiteNameHere/_vti_bin/lists.asmx


When deploying the workflow feature on the server (either through Visual Studio right-click and “Deploy”; or, via Power Shell script shown below) I received the following error message:


Error occurred in deployment step 'Activate Features': Feature with Id '{GUID}' is not installed in this farm, and cannot be added to this scope.


Power Shell Deployment Script:

rem NOTE: Make sure the "Sharepoint 2010 Administration" service is NOT running.

rem We are using the execadmsvcjobs to execute rather than letting th Timer service run them.


rem ADDING...

cd "c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN"

stsadm -o addsolution -filename "C:\VSS\ExcelRefreshWorkflow\bin\Debug\ExcelRefreshWorkflow.wsp"

stsadm -o deploysolution -name "ExcelRefreshWorkflow.wsp" -immediate -allowgacdeployment -allowcaspolicies

stsadm -o execadmsvcjobs

stsadm -o activatefeature -name "ExcelRefreshWorkflow_Feature1" -url http://ServerNameHere/sites/SubSiteNameHere


NOTE: This feature is being deployed to “Scope = Site”, not Farm, Web or Web Application scope.


If you are running a single server instance of Sharepoint this should not happen (i.e. your deployment should be completed successfully).  In the case of a Sharepoint server farm you will need to perform the following steps manually to complete the installation.


1.       From the “SharePoint 2010 Central Administration” site:

a.       Navigate to: “System Settings” -> “Manage farm solutions”

b.      Click on “excelrefreshworkflow.wsp”

c.       Click on “Deploy Solution” and complete the deployment screen (schedule or run immediately).

d.      Refresh the farm solutions screen until the solution management screen until the status column shows “Deployed” (note, the “Deployed To” column should show “Globally deployed.”).

e.      NOTE: Make sure the “SharePoint 2010 Timer” service is running; otherwise, this step will not complete.

2.       Open the normal SharePoint site and from the top level site:

a.       Navigate to: “Site Actions” -> “Site Settings” -> “Site Collection Administration” -> “Site collection features”

b.      Click the “Activate” button associated with the “ExcelRefreshWorkflow” item in the list.

c.       NOTE: Repeat this step on every sub-site that you want to use the workflow in.

3.       At this point the installation is complete.  You can now navigate to the sub-site and configure the workflow on the appropriate Library and activate it on the appropriate documents in the library.

a.       From the sub-site home page, navigate to: “Library Tools” -> “Library” -> “Library Settings” -> “Workflow Settings”.

b.      From this screen you should see the “ExcelRefreshWorkflow” item in the “Select a workflow template:” list.  Select that item, complete the remaining configuration settings and click “OK”.

c.       For each document desired, click on the document dropdown and select “Workflows”.

                                                   i.      Click on the “ExcelRefreshWorkflow”

                                                 ii.      Setup the appropriate configuration settings and click the “Start Workflow” button.

                                                iii.      NOTE: All activity related to the workflow (including the execution history) will be stored in the associated “Workflow History”.



Comments are closed