When accessing the property of a feature class that contains a period in the field name (for example, SHAPE.AREA), the script reads the property as a separate part and labels the property as undefined.
If a line of code refers to a field name in a feature contains periods, for example:
Solution or Workaround
To counter the script from reading the name as a separate part, the attribute value must be accessed by passing the field alias on an array. For example:
Note: In the original code snippet, calling a field alias is done using the exact alias of the field. In the counter code, the code uses an array that searches any attribute field with the name SHAPE.AREA. This method can be modified to vary the range of search. To increase the accuracy of the search parameter and to get only the desired fields, use the full alias name.
Last Published: 9/29/2017
Article ID: 000014782