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 workflow, the following error appears:

"The expression ""[expression]"" cannot be evaluated."

Image

Symptoms

There is an environment field that stores javascripts that you commonly used in your SmartForms, and in your javascripts you are using double quotes (").

Image

Resolution

Replace the double quotes with single quotes (') for all environment fields that are storing javascripts, then redeploy your workflow again.

Image