KB-2050 Script task outputs are the same despite different inputs when using load()

Symptoms

When executing an expression or rule in a script task, and the expression uses the load() function, users observe that calling the same rule results in the same output despite different inputs. This behavior can occur if a rule uses the load() function to store the input in a local variable with the same name and store the output in a process variable.

Cause

This is expected behavior based on how Appian handles context within a script task.

Action

Upgrade to Appian 19.2 or later and use a!localVariables() instead of load(), as described in the documentation.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: January 2020

Related
Recommended