I've switched my TOC source to a version in our SDE server. I then execute a simple python script to select rows by attribute. The selection works, but then all redraws of the map throw up a dialog box titled "ArcMap Drawing Errors". The box contains a line for each feature class in the version (there are 6 of them), each line followed by the text: "Bad connection handle". These errors don't show up on redraw until after running the Python script with the SelectLayerByAttribute_managment function.
Any clues how I can fix these bad connection handles? I don't even know how to diagnose what the problem is.
:George Riner
Sonoma State University