laptop and a wrench

Bug

Example 3 in the Calculate Field help is returning an invalid syntax error in Python.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM036940
SubmittedJuly 22, 2008
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.3
Version Fixed9.3
StatusFixed

Workaround

Use the following syntax in the codeblock variable:codeblock = "def getclass(area):\\n if area <= 1000:\\n return 1

Steps to Reproduce

Bug ID: NIM036940

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options