xiaowen

CalculateField  works well on desktop but not so after being published

Discussion created by xiaowen on Apr 11, 2013
Latest reply on Apr 11, 2013 by xiaowen
I have a geoprocess tool which works well on desktop but not working after being published. I found out if I don't include the follow lines it would work after being published -- guess that is the issue. Can anyone help me? I am using arcgis 10.1 with sp1.



expression = "str(100 + int(!" + Index_Fieldname +"!))[1:3]"
arcpy.CalculateField_management(Tablename, Index_Fieldname_TXT, expression, "PYTHON", "")

When I analyze, it did give high warning for not being able to use VB expression, but this is Python expression.


Thank you in advance

Outcomes