Cannot load table according to Field Maps app log, I'm pretty sure my code is fine.. what am I missing?
I can see the table in the Arcade editor in FM Designer.
"Can only call this method on a loaded table...............Table () failed to load with error: Error Domain=NSCocoaErrorDomain Code=3072 "User canceled error"
if (!IsEmpty($feature.scientificname) && !IsEmpty($feature.survey_area)) {
var sciName = $feature.scientificname
var surveyArea = $feature.survey_area
var priorityTable = FeatureSetById($map, "my_table_ID_#");
var filtered = Filter(priorityTable, "botanical_name = @sciName AND zone = @surveyArea");
if (!IsEmpty(filtered)) {
return First(filtered).apa_priority
} else {
return "no cat found"
}
} else {
return "uncat"
}