AnsweredAssumed Answered

Python script works on ArcGIS Desktop, but not on Server

Question asked by zititi on Mar 30, 2016
Latest reply on Apr 3, 2016 by modybsystematics-co-il-esridist

Dear all,


I've setup a Geoprocessing service, based on a  python script. I can publish a gp tool by creating the tool, running ArcMap, and then selecting the results and clicking Share As GP Service. The tool execute with success in ArcMap. But after create the GP services and execute in AGS as  Widget it's didn't work. So, I went to REST page to see the INFO. I could see that I'm getting a python error, as below:


  • esriJobMessageTypeError: Traceback (most recent call last): File "D:\arcgezfffisserver\directories\arcgissystem\arcgisinput\teste\GP_Bearing_Distance.GPServer\extracted\v101\gp_tools\", line 103, in del row NameError: name 'row' is not defined

I just have the following parameter at the line 103   " bearing_pos = Bearing + 15"

How it's that possible the scrip locally is working, but the version stored at the Server is not working? I'm using ArcGIS for Server 10.2.2.. The tool works well in version 10, but I'm stucked at the migration



Thanks in advance