You are currently reviewing an older revision of this page.

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

Symptoms

When executing a script task that uses load(), users may observe that calling the same rule results in the same output despite different inputs. This behavior sometimes occurs 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 intended behavior based on how Appian handles context within a script task.

Action

Use a!localVariables() instead of load(), as described in this documentation:

https://docs.appian.com/suite/help/19.2/Updating_Expressions_to_Use_a_localVariables.html

Affected Versions

This article applies to Appian 19.2 and later.

Last Reviewed: December 2019