AnsweredAssumed Answered

Python error: use "*" in a function parameter

Question asked by arnaufornerpuntonet on Sep 22, 2016
Latest reply on Sep 22, 2016 by Dan_Patterson



When using this function:

arcpy.da.FeatureClassToNumPyArray(featureClass, "*")


With an asterisk in the second parameter I get this error in Pyscripter:

TypeError: long() argument must be a string or a number, not 'NoneType'


While when I put the name of a field or a some fields I have no problem.


According to ESRI help, this parameter can be populated with:

A list (or tuple) of field names. For a single field, you can use a string instead of a list of strings.

Or use an asterisk (*) instead of a list of fields if you want to access all fields from the input table.


What am I doing wrong?