I'm trying to set the value of the field COORDINATION based on if the field PROJECT_NUM contains the substring 'LC' or not. The goal is to set it to either one of two strings, 'LOCAL' or 'OE/AAA'. I wrote this snippet, the syntax validates find, but when I run it does nothing to the COORDINATION field. Anyone know why?
Solved! Go to Solution.
That seems very odd. Do you accidentally have a subset of features selected, and it's only running on a few features? It would be a kind of silly mistake, but one I've made more than once.
EDIT: If you want a workaround, you could use "Select by Attributes" to identify local projects, then use the Attributes pane to bulk-update the selected features. Then simply invert the selection and bulk-update the remaining features with the other value.
That seems very odd. Do you accidentally have a subset of features selected, and it's only running on a few features? It would be a kind of silly mistake, but one I've made more than once.
EDIT: If you want a workaround, you could use "Select by Attributes" to identify local projects, then use the Attributes pane to bulk-update the selected features. Then simply invert the selection and bulk-update the remaining features with the other value.
I'm not sure if I did as I've closed everything out. But I just tried it again and it worked. Thanks!