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

An error appears when deploying the ITServiceRequest.Workflow.Approval Process from K2 SmartStarter: IT Service Request using Package and Deployment.

System.Reflection.TargetInvocationException

The following errors occurred while compiling the process (with framework version 4.5): C:\ProgramData\Temp\xxxxxxxxxxxxxx\Project\ITServiceRequest.Workflow.Approval.kprx(0,0) :

Error : Unable to validate the environment field '[Environment Field]'. The environment library is not connected.

Symptoms

The following errors occurred while compiling the process (with framework version 4.5):
Fail com.K2.App\ITServiceRequest.Workflow.Approval 
C:\ProgramData\Temp\xxxxxxxxxxxxxx\Project\ITServiceRequest.Workflow.Approval.kprx(0,0): error : Unable to validate the environment field '[Environment Field]'. The environment library is not connected.

Troubleshooting Steps

To resolve the issue complete the following steps:

  1. Restart the K2 Blackpearl service

  2. Perform an iisreset.