KB-1627 Publishing a process model fails with "Neither variable(s) nor rule(s) found" error

Symptoms

When publishing a process model containing a Process Start Form or a User Input Task, the publication fails with an error similar to the following:

This process model could not be published due to the following errors. Please correct them before continuing.
There was an error in an expression in Process Model Properties at Process Start Form : Neither variable(s) nor rule(s) found: <VARIABLE_NAME>

Cause

This error is caused by an uncaught syntax error in the definition of the Interface used by the Process Start Form or User Input Task. The error may not prevent the interface from rendering correctly in the Interface Designer. For example, the error can be triggered by a missing or extra comma in a function call, list, or layout definition similar to the sample code below:

contains(
index(
local!variable,
"id",
{}
)fv!item.id
)

Action

Inspect the code of the underlying Interface for the uncaught syntax error(s) and correct all instances. For example, to resolve the syntax error above, one would add an extra comma between the index() statement and variable reference:

contains(
index(
local!variable,
"id",
{}
),
fv!item.id
)

After correcting the syntax error(s), the Process Model should save and publish without throwing the error.

Affected Versions

This article applies to all versions of Appian.

Last reviewed: August 2018

Related
Recommended