AnsweredAssumed Answered

Can't return Null when using Attribute Rule (edit/Update) and arcade

Question asked by TLongSUGF on Feb 6, 2020
Latest reply on May 7, 2020 by kkatashuk1

While Null now works in arcade field calculations on Pro 2.5, it still does not work in Attribute Rules while using the edit keyword and update.


Attribute rule dictionary keywords—Geodatabases | Documentation 


return {
    "result": $feature.assetid,
    "edit": [{
        "className": "electricdistributionassembly",
        "updates": [{
            "objectID": feature_objectid,
            "associationType": Null


The above code will not work.  It returns a what I am guessing is an empty field.  It does not work on strings or dates.

I need a simple attribute rule that updates a field to "Something" on insert/update and to <Null> on insert/update on "Something Else"


My code works except that there is no way to return Null using Attribute Rules & Arcade.  You can return a string, date or 0 (in the case of dates 12/30/1899).


I have set to Null and tried to set it to a field that is Null.