I am working with ArcPy in ArcGIS Pro 2.7.2. I am using the arcpy.da.TableToNumPyArray function and specifying fields in a list. One of the fields in the source table is defined as a short integer field, but it is tied to an encoded value domain. The underlying values of this domain are valid widths like 2, 4, and 6. The display values of this domain use the inch quotation mark like 2", 4", and 6". Anyway, when I include this field in the call to TableToNumPyArray, I get this error:
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
When I do not include this field in the function call, everything works just fine. How do I get my numpy array with values like 2, 4, and 6 if the function is creating a short field and trying to put values like 2" into it?