This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Issue

You receive errors when performing a clean installation of K2 Blackpearl 4.7.

Symptoms

You receive the following errors when performing a clean installation of K2 Blackpearl 4.7:

> Target did not complete successfully: Management.kspx

 Target did not complete successfully: DocuSign_Feature_Activation.kspx

Target did not complete successfully: K2 Package and Deployment for SharePoint.kspx

Target did not complete successfully: K2 for SharePoint 2013.kspx

Target did not complete successfully: SmartForms Tester Collateral.kspx

Doing a repair does not resolve these errors.

Resolution

This issue could be caused by the fact that K2 service account does not have access to the following directory:

%ProgramData%\SourceCode\Temp

This requirement is not mentioned in K2 Service Account Required Permissions section of K2 documentation at the moment. You can verify if these permissions are indeed missing by means of trying to deploy one of these packages manually using the Package and Deployment tool.

To do this, navigate to "C:\Program Files (x86)\K2 Blackpearl\Setup" and double click one of these packages and try to deploy it, e.g. click on Management.kspx. When preparing the package stage before analysis, an error appear indicating insufficient access rights on a file system level, which will look similar to this:

Access the path 'C:\ProgramData\SourceCode\Temp\{randomcharacters}.kspx\{guid}' is denied. Service: PackageDeploymentService

To correct this you need to grant K2 service account Full Control on the "C:\ProgramData\SourceCode\Temp" folder.

Next clear up the contents of this folder, run K2 Blackpearl Setup Manager from installation media and select Configure.

It should now be able to successfully deploy packages in the process.