AnsweredAssumed Answered

Publish simple tool with calculate

Question asked by modybsystematics-co-il-esridist Employee on Apr 25, 2017
Latest reply on Apr 25, 2017 by rvburton

Hello all

 

I have a one line python script that looks like this:

arcpy.CalculateField_management(r"DemandPoints1","from1",'"aaa"',"PYTHON_9.3")

from1 is a text field in DemandPoints1 and I would like to put the value aaa in it.

This script runs with no problem as tool (no parameters) in ArcMap but when I try to publish it as geoprocessing service I get:

24046: Tool <value> cannot use VB expressions for services
There are many examples of complex calculations but I would like to make it simple!!
Any ideas?

Outcomes