Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

where clause of my selectlayerbyattribute_management keeps returning error

$
0
0
Refering to ArcGIS 10 Help, I have tried writting my where clause exactly as stated in the help (using quotes, brakets, etc) and I keep getting Error 000358: Invalid expression Failed to execute (SelectLayerByAttribute). I am running this inside arcmap.

Code:

arcpy.SelectLayerByAttribute_management("zipcode_27012", "NEW_SELECTION", "NAME" = '27012')
There must be something obvious I am missing.

Viewing all articles
Browse latest Browse all 2485

Trending Articles