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.
The error appears when deploying a Workflow package: "The following Errors occurred while compiling the process (with Framework Version 4.0)" .
You will see the following when opening the full error log:
"The field 'SmartForms Designer Runtime SSL' used in the Event Item on the 'ClientEvent' Event does not exist in the environment library. Create the required field where necessary."
To resolve the issue, ensure that the "ClientEvent" event is configured to use the correct environment field, then repackage the solution.
Alternatively, recreate the environment field in the target environment. After this, you should be able to deploy with no issues.