JLuymes

CalculateField error

Discussion created by JLuymes on Dec 6, 2011
Latest reply on Dec 7, 2011 by JLuymes
Hi,

I'm getting an error when I try to run the CalculateField tool in Python using this code:

gp.CalculateField(sewer,"Hyperlink","'http://websrv.local/Hyperlink' & !RMOHID!","PYTHON_9.3)

It keeps giving me an operand & error: 'str' and 'int'

so I tried this instead:

gp.CalculateField(sewer,"Hyperlink","'http://websrv.local/Hyperlink' & str(!RMOHID!)","PYTHON_9.3)

but it gives me the same error but 'str' and 'str' instead of 'str' and 'int'

Any help/suggestions?

Outcomes