You are currently reviewing an older revision of this page.
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.
This is intended behavior based on how Appian handles context within a script task.
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
This article applies to Appian 19.2 and later.
Last Reviewed: December 2019