Hello all, hoping you can help me with an issue I am having with some calculated fields. Essentially, ALL of the expressions fail to calculate if a question is marked a certain way, even though none of the questions are related/reliant on that question.
Inspection Status = ‘Not Inspected’ --> all expressions works
Inspection Status = ‘Inspected’ --> none of the expressions work, they just show loading forever.
The Inspection Status field is NOT a calculated field, it is a required Combo Box question.
The questions that are filled in via expressions will fill in and calculate correctly if Inspection Status = NULL or Inspection Status = Not Inspected. As soon as you turn Inspected Status = Inspected, then all of the calculations break.
Here is one of the calculations that is breaking when the Inspection Status question is set to Inspected:
var districts = FeatureSetByName($map, "Maintenance Districts", ["MAINTENANCE_DIV"], true)
var district = First(Intersects(districts, $feature))
if (!IsEmpty(district)) {
return district.MAINTENANCE_DIV
} else {
return null
}