AnsweredAssumed Answered

CalculateField_management generates ERROR 000539 depending on values

Question asked by Y.Morita on Jan 14, 2018
Latest reply on Jan 15, 2018 by Y.Morita

Hi!

I tried copy values from COUNT attribute to test attribute.

(expression ="!COUNT!")

I used CalculateField_management, but CalculateField_management generates ERROR 000539 depending on values.

 

TEST1:I tried CalculateField using this table.

OIDValueCOUNTSUMtest
-165E+081.61E+09

I got the error below.

ExecuteError: ERROR 000539: <type 'exceptions.SyntaxError'>: unexpected EOF while parsing (<expression>, line 1)
Failed to execute (CalculateField).

TEST2:I tried CalculateField using this table whose value in COUNT attribute changed .

OIDValueCOUNTSUMtest
-165.1E+081.61E+09

This time, CalculateField worked well.

 

Why value"5.1E+08" worked well and did not work value"5E+08" ?

How should I avoid this problem?

 

my arcGIS version is 10.5

 

Thanks in advance.

Outcomes