Hello,
I am just starting my first attempts with attribute rules and I am still quite inexperienced with ArcGIS Arcade. I came across the following blog post and tried to recreate it for the automatic creation of a point feature when creating an area feature. However, when checking with the Verify button, I always get the message that there are bracket errors. However, when I try to reproduce my input in Notepad++, I don't understand where the bracket error is specifically.
var pointfeature = Centroid($Feature)
return {
"edit": [
{
"className" : "point"
"adds": [
{
"attributes":
{"polygon_ID" : $feature.GlobalID
},
"geometry" : pointfeature
}
]
}
]
}