CalculateField_management. NameError: name is not defined

4608
20
Jump to solution
05-11-2017 08:15 PM
MichaelTinker
New Contributor II

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

0 Kudos
20 Replies
DanPatterson_Retired
MVP Emeritus

watch those curly brackets... Curtis caught your error.