I have an ArcSDE with several tables. I want to create a new field in each table. This field should be filled automatically when the object is created. The field should contain a six-digit sequential number, i.e., 000001 for the first object, 000002 for the second object, and so on.
I have already tried using the tool enerate database sequence and arcade in the attribute rules, but I cannot achieve the desired result.
Arcade Code
var v = NextSequenceValue($datastore, "SEQ_KNR");
return Text(v, "000000");
I use ArcGIS Pro 3.3