AnsweredAssumed Answered

Field does not get updated with Geoprocessing Service

Question asked by ionarawilson on Sep 27, 2013
Latest reply on Oct 8, 2013 by ionarawilson

Can anybody tell why the field gets updated when I run this script in ArcMap but not when I run a geoprocessing service? Thanks

 #Import modules import os, sys, arcpy, traceback, arcgisscripting  gp = arcgisscripting.create(10.1)  Stewardship = gp.GetParameterAsText(0)   Officevar = "\"College Station\""    # This is to send the data input to the database with arcpy.da.UpdateCursor(Stewardship, ("City")) as rows:         # row comes back as a tuple in the order specified here, so Office is row[0], Forester is row[1]         for row in rows:             row[0] = Officevar                          rows.updateRow(row)