AnsweredAssumed Answered

CalculateField failing after upgrade to 10.1 and Win7 64bit

Question asked by u40301 on Jan 8, 2014
Latest reply on Jan 8, 2014 by mvolz47
Hi, I was previously using 10.0 on Win7 32-bit and have made the leap to 10.1 on Win7 64-bit.    For some reason a script that previously ran fine is now failing when it hits a CalculateField command.  The exact error message is:
"ERROR 000989:  Tool CalculateField cannot use VB expressions for services"

import arcpy # Local variables: Strata_TSA_VRI_bk = "E:\\Projects\\FMG_WTP_Overlays.gdb\\Strata_TSA_VRI_bk" Strata_TSA_VRI_bk_Layer = "Strata_TSA_VRI_bk_Layer" Strata_TSA_VRI_bk_Layer__3_ = "Strata_TSA_VRI_bk_Layer" # Process: Make Feature Layer arcpy.MakeFeatureLayer_management(Strata_TSA_VRI_bk, Strata_TSA_VRI_bk_Layer, "", "", "OBJECTID OBJECTID VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;SISH_SEQ_NBR SISH_SEQ_NBR VISIBLE NONE;SISH_STRATUM_NAME SISH_STRATUM_NAME VISIBLE NONE;CROWN_CLOSURE CROWN_CLOSURE VISIBLE NONE;VRI_LIVE_STEMS_PER_HA VRI_LIVE_STEMS_PER_HA VISIBLE NONE;VRI_DEAD_STEMS_PER_HA VRI_DEAD_STEMS_PER_HA VISIBLE NONE;SPECIES_CD_1 SPECIES_CD_1 VISIBLE NONE;SPECIES_PCT_1 SPECIES_PCT_1 VISIBLE NONE;SPECIES_CD_2 SPECIES_CD_2 VISIBLE NONE;SPECIES_PCT_2 SPECIES_PCT_2 VISIBLE NONE;SPECIES_CD_3 SPECIES_CD_3 VISIBLE NONE;SPECIES_PCT_3 SPECIES_PCT_3 VISIBLE NONE;SPECIES_CD_4 SPECIES_CD_4 VISIBLE NONE;SPECIES_PCT_4 SPECIES_PCT_4 VISIBLE NONE;SPECIES_CD_5 SPECIES_CD_5 VISIBLE NONE;SPECIES_PCT_5 SPECIES_PCT_5 VISIBLE NONE;SPECIES_CD_6 SPECIES_CD_6 VISIBLE NONE;SPECIES_PCT_6 SPECIES_PCT_6 VISIBLE NONE;PROJ_AGE_1 PROJ_AGE_1 VISIBLE NONE;PROJ_HEIGHT_1 PROJ_HEIGHT_1 VISIBLE NONE;SHAPE_Length SHAPE_Length VISIBLE NONE;SHAPE_Area SHAPE_Area VISIBLE NONE") # Process: Select Layer By Attribute arcpy.SelectLayerByAttribute_management(Strata_TSA_VRI_bk_Layer, "NEW_SELECTION", "\"SPECIES_CD_1\" = 'FDI'") # Process: Calculate Field arcpy.CalculateField_management(Strata_TSA_VRI_bk_Layer__3_, "SPECIES_CD_1", "\"FD\"", "VB", "")


Traceback (most recent call last):
  File "E:\Projects\j4.py", line 22, in <module>
    arcpy.CalculateField_management(Strata_TSA_VRI_bk_Layer__3_, "SPECIES_CD_1", "\"FD\"", "VB", "")
  File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\management.py", line 3129, in CalculateField
    raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000989: Tool CalculateField cannot use VB expressions for services
Failed to execute (CalculateField).

IDLE environment:  Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32

Did I miss something during my installation of ArcGIS 10.1?   I have used VB syntax in all my scripts and I'd rather not change everything to Python syntax.

I have also tested this CalculateField command in ModelBuilder.   It executes sucessfully, just failing in the Python IDLE window.
Appreciate any suggestions.
Thanks,

Frank

Outcomes