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

When attempting to deploy a package via the package and deployment tool, the initial analysis phase appears to be fine. The initial deployment fails with an error in relation to the Smartforms Runtime environment library field.

If you go into the environment library you will see that a newly created Smartforms URL has been created with exactly the same name as the original Smartform Runtime URL after this deployment, which may cause conflicts. This should not happen if the option within the package and deployment tool chosen is "Use Existing" in regards to the environment library field.

Symptoms

The error that can be seen here is the following:


“The Environment Field ‘Smartforms Runtime’ already exists on the system. Specify a different name.”

Troubleshooting Steps

It appears that this issue may occur after performing an upgrade to another version of K2 such as 5.1 or 5.2.

The way to workaround this issue would be to remove the duplicate entry from the environment fields.

The best way to do this would be via the K2 Management page > Environment Library > development or production (depending on which environment) and from here remove the  duplicate SmartForms runtime URL. After this has been completed you should be able to deploy the package successfully.

Please note: This has been logged as a bug and will be addressed within a future version of K2.