This problem is occurring in ArcGIS Server 9.3, Python 2.5.2
I am exposing a typical python script as a geoprocessing service. In this script, I frequently use the gp.ListFeatureClasses() method, which searches the current workspace as shown in snippet below.
import arcgisscripting gp = arcgisscripting.create(9.3) gp.workspace = "C:/someworkspace/mygdb.gdb" featureClasses = gp.ListFeatureClasses()
In the initial portion of the script, everything works as expected. But in later portions of the script, the service crashes when I call gp.workspace reporting the following error:
AttributeError: Object: Environment <workspace> not found
My initial guess was that maybe the workspace was being set to a non-existent workspace or gdb, but I have been able to verify that the workspace is always infact valid.
Digging around a bit has shown that others have experienced the same problem. However, none have been able to set the workspace AT ALL.
Has anyone ever experienced such issues?