Hi,
I am trying to apply an attribute rule to multiple feature classes using iterate feature classes in model builder. I get an error message because expression has a table name that's different to the name of the feature classes I'm trying to add the rule to.
ERROR 002717: Invalid Arcade expression, Arcade error: Table not found Table_4546, Script line: 2, SCRIPTEXPRESSION (row 2) [Table_4546]
Is there any in line substitution I can do to make it work?
Thanks in advance!
# Expression
generate_arcade_expression(%TableName%)
# Code Block
def generate_arcade_expression(table_name):
return f"""
var fs = FeaturesetByName($datastore, "{table_name}")
var fs_intersect = Intersectcs(fs, $feature)
//...
"""