When you execute the Add Attribute Rule tool, the script expression for the rule is evaluated. The expression is evaluated against the first row in the Input Table, or a dummy row is used in the evaluation process. An error is returned and the attribute rule is not created if the evaluation of the script expression results in NaN.
View the script expression and adjust it before creating the attribute rule.
Review the Arcade Function Index.