Skip to content

SegmentNetwork.py invalid expression (SelectLayerByAttribute) #300

Description

@Yorkshirepuddnz

Hi guys,
I'm pretty new to this sorry if I've missed anything out
I'm trying to run the SegmentNetwork.py script for a stream network in the UK. As such it doesn't have the NHD network attributes. I've added an "FCODE" column to the polyline attribute table and populated this with "46006" since the network represents perennial streams only.

I'm running the script in the python window in ArcMap 10.6.1 and get the following traceback:

Runtime error Traceback (most recent call last): File "", line 171, in File "", line 31, in main File "f:\desktop10.6\arcpy\arcpy\management.py", line 7742, in SelectLayerByAttribute raise e ExecuteError: ERROR 000358: Invalid expression Failed to execute (SelectLayerByAttribute).

Any hints would be greatly appreciated,
Many thanks,
Gabe
BRAT issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedRequests from analysts and BRAT users to help solve specific problems or find work-arounds.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions