mapmatching icon indicating copy to clipboard operation
mapmatching copied to clipboard

ERROR 000358: Invalid expression Failed to execute (SelectLayerByAttribute)

Open Liychill opened this issue 5 years ago • 0 comments

I have successfully run the test file. But when I run my own data, I get an error.

Traceback (most recent call last): File "", line 123, in execute File "E:\bishe\data\mapmatching-master\mapmatcher\mapmatcher.py", line 269, in exportPath arcpy.SelectLayerByAttribute_management('segments_lyr',"NEW_SELECTION", qr) File "d:\arcgis10.2\desktop10.2\arcpy\arcpy\management.py", line 6494, in SelectLayerByAttribute raise e ExecuteError: ERROR 000358: Invalid expression Failed to execute (SelectLayerByAttribute)

Maybe the error is in this row of codes? 'arcpy.SelectLayerByAttribute_management('segments_lyr',"NEW_SELECTION", qr)'

Liychill avatar Feb 14 '20 08:02 Liychill