AnsweredAssumed Answered

Can an arcade attribute rule update a date field?

Question asked by MBaber-esristaff Employee on Mar 1, 2018
Latest reply on Mar 2, 2018 by Supriya_Khadke-esristaff

I am using the date functions in arcade to calculate a date from data stored within a barcode. All works well in sandbox, but applying the attribute rule to a date field causes the error:


ERROR 000358: Invalid expression

Failed to execute (AddAttributeRule).



The return of the expression is a date variable. The rule applies successfully to a text field and triggers and functions as expected. The expression itself validates successfully within the add attribute rule tool. The error only appears after attempting to run the tool against a date field.


Here is a simplified expression:


  1. var inputdate = date(2000,01,01)
  2. return inputdate


Attempting to apply this as an attribute rule to a date field will render the error mentioned above. Any ideas on how I could apply a like expression to a date field?