AnsweredAssumed Answered

CalculateField_management. NameError: name is not defined

Question asked by mdtinker_USGS on May 11, 2017
Latest reply on May 15, 2017 by Dan_Patterson

Hello,

 

Why am I getting a NameError here?

Here is the basic python:

 

table = r'D:\output.gdb\table'
m = 0.01
arcpy.CalculateField_management(table, 'FIELD_B', '!FIELD_A! * m', 'PYTHON')

 

The error states: NameError: name 'm' is not defined

How is this so, as I have just defined m right above?

 

Thanks much for your help!

Best regards, Mike

Outcomes