Hello,
My attribute rule stopped working when my company upgraded from Enterprise 10.9 to 11.3 (not sure if that is relevant). This code was not written by me, but my predecessor. My knowledge of arcade is limited, but it looks like it should work and I didn't change anything?
The goal of this code is to create a simple ID number for a feature at a specific site. When a feature is created, this code should assign it a number sequentially (if there are 5 features, the next feature created should have a feature ID of 6).
var sid = $feature.site_id
var sql = "site_id = '" + sid + "'"
var sitefilter = Filter($featureset, sql);
var idseq = Max(sitefilter, "ft_id");
//Console(idseq + 1)
return idseq + 1;