1

I have successfully populated a field in Arc using the Field Calculator, however I would like to re-create this in python as part of a tool I am making. I was going to do this buy using 'Calculate Field' and copying the python snippet. However I can not get this to work.

This is the successful expression that works in the Field Calculator:

enter image description here

However, when I try the same in Calculate field I get this error:

enter image description here

This is how I am running it:

enter image description here

2
  • 5
    This could occur because of Background processing enabled in ArcMap or 64-bit GP installed (apart from other things). Google the error, there are tons of hits. Consider switching to Python and use the 'ND_' + str(!FID! + 1) instead. Commented Feb 29, 2016 at 14:31
  • Original issue not resolved, however python suggestion by Alex Tereshenkov works perfectly fine as an alternative.
    – Alan Carr
    Commented Feb 29, 2016 at 17:15

1 Answer 1

1

This could occur because of Background processing enabled in ArcMap or 64-bit GP installed (apart from other things).

As a quick workaround, you could use the Python parser:

'ND_' + str(!FID! + 1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.