Arcpy CalculateField not working on ArcGIS Server 10.0

المشرف العام

Administrator
طاقم الإدارة
I'm working on ArcGIS 10.0 sp5.I have a very strange behaviour. In an arcpy script I have these two very simple commands, to add a field "ID_UDF" to a table and then fill it with a value:

arcpy.AddField_management(table, "ID_UDF", "LONG", "", "", "", "", "NULLABLE", "NON_REQUIRED", "")arcpy.CalculateField_management(table, "ID_UDF", '{0}'.format(ID_UDF), "VB", "")The script is contained in a Toolbox.If I execute the script with ArcGIS Desktop it works fine and the field ID_UDF is correctly added and filled with the value.If I publish the Toolbox with ArcGIS Server and I execute it from there the field is added but not filled, it remains with a NULL value.

In both cases in the Geoprocessing log I have no errors, and both commands (AddField and CalculateField) are successfully executed.

UPDATE: even if I remove the AddField command (supposingly the field is already created), CalculateField alone is working correctly with ArcGIS Desktop but not with ArcGIS Server. In the script there are many other commands that work fine on both environments.

Any ideas?



أكثر...
 
أعلى