I am getting this error running the select layer by attribute in a python script. I cannot upgrade to 10 and I do not think I can nor do I want to use either of the suggested workarounds as it would greatly increase the size of hte script and the processing time.
What I am doing is selecting a boundary layer that meets certain criteria using the code below. The code selects line segments with a certain codes and flags a polygon layer three different times with different code types. The spatial join and the intersect would not cleanly do this for me.
Any suggestions?
Thanks, Tim S.
gp.selectlayerbyattribute_management(bndryLyr, oprtr["new"], tdlShr); showGpMessage() #including showGpMessage() after every gp tool will write the gp messages to the log file
message = "attributes selected"; showPyMessage()
gp.selectlayerbylocation_management(bndryLyr,"SHARE_A_LINE_SEGMENT_WITH", plnrLyr); showGpMessage() #including showGpMessage() after every gp tool will write the gp messages to the log file
message = "select by location!"; showPyMessage()