AnsweredAssumed Answered

Error when doing basic calculate field command: ArcGISPro

Question asked by masongra_USCSSI on Apr 22, 2018
Latest reply on Apr 23, 2018 by Gerlach@AshlandOH

I get this error when trying to calculate a field:


ERROR 000539: Error running expression: u"5359" / 5312094.0
Traceback (most recent call last):
File "<expression>", line 1, in <module>
TypeError: unsupported operand type(s) for /: 'str' and 'float'
Failed to execute (CalculateField).



I downloaded census tracts for a county in Ohio, then I joined thiswith population data from American Fact Finder. After I export the data I joined, I add a new field "Pop Density"... To calculate this new field I need to divide Total population "HD01_S001" with the area of the Census tract "ALAND".. When I put this expression in the calculate field command I get the error above.. Don't understand what could be going wrong here...