Description
When using an attribute rule that has a script expression referencing tables using the FeatureSetByName or FeatureSetByRelationshipClass functions, you must use a literal text string for the table name.
Variables are not allowed to reference table names.
Solution
Use a literal string for the table name in the script expression.
Refer to the Arcade function help references for more information: