We are using a Validation Service with a custom Attribute Rule for validation. If we run the validation in the Attribute Inspector in ArcGIS Pro the memory of the ArcGIS Server rise to its limit and crashs the server. I can't see what I'm doing wrong. My validation rule looks as followed:
if (Geometry($feature).hasM){
var paths = Geometry($feature).paths
for (var i in paths){
for (var j in paths[i]){
if (j > 0){
var segment = Length([paths[i][j-1],paths[i][j]]);
var m = paths[i][j].m-paths[i][j-1].m
if (Abs(segment-m)>0.001){
return false
}
}
}
}
}
return true
We check for about 3000 $features.