laptop and a wrench

Bug

Documentation located at http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000036000000.htm displays incorrect usage in DeleteFeatures example 2 (stand-alone script) for ArcPy GetCount_management tool in conditional if statement. Please correct documentation.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM066477
SubmittedMarch 24, 2011
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.0
Operating SystemWindows OS
Operating System VersionXP
Version Fixed10.1
StatusFixed

Workaround

Use the int() function and getOutput method to cast the ArcPy.GetCount_management result object to unicode text and then to an integer.Example:result = arcpy.GetCount_management(tempLayer)if int(result.GetOutput(0)) > 0:

Steps to Reproduce

Bug ID: NIM066477

Software:

  • ArcGIS for Desktop

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