olliwirpi

Custom Python tool Execution failure

Discussion created by olliwirpi on Sep 11, 2012
Latest reply on Sep 12, 2012 by mzcoyle
I've written couple of Python scripts that make operations to featurelayers and a table. Mostly some CRUD-operations based on the input of tools. Tools work well when they are executed from command line or in ArcMap. However, when published as a Geoprocessing service in ArcGIS server, they all fail to execute. According to ArcGIS server log, the problem is on creating Cursor objects:

 Executing (InsertRow): InsertRow 1 1 aaa # 2 1.1.2001 1.1.2001 # # # # A # # 0 # # # # 1.1.2001 1.1.2001 1.1.2001 0 0 0 # 0 Start Time: Tue Sep 11 14:09:26 2012 Running script InsertRow... : "C:\Documents and Settings\Administrator.ARCGIS\Application Data\ESRI\Desktop10.0\ArcCatalog\arcdata02.sde\sde.SDE.mobile\sde.SDE.task2" does not exist Failed to execute (InsertRow). Failed at Tue Sep 11 14:09:26 2012 (Elapsed Time: 0,00 seconds)


I've tried to with different forms of the connection string (absolute path to sde file, Path starting with "Database connection/<dataset name>/<feature class>), but none of these works.

Any ideas to make the script work? I'm running ArcGIS server version 10.0.

Outcomes