laptop and a wrench

Bug

ArcPy functions fail and returns the error, "RuntimeError: Object: Error in executing tool." when providing the arcgis.features.layer.FeatureLayer class as an input.

Last Published: March 9, 2023 ArcGIS API for Python
Bug ID Number BUG-000144224
SubmittedNovember 3, 2021
Last ModifiedFebruary 14, 2025
Applies toArcGIS API for Python
Version found1.9
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusAs Designed

Additional Information

The tool is behaving as designed. When using the ArcPy arcpy.management.CalculateField() function, a URL can be passed as the in_table. It is not necessary to use a Python API FeatureLayer object. Instead, use the calculate operation on the FeatureLayer object, as demonstrated in the documentaton: https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featurelayer

Steps to Reproduce

Bug ID: BUG-000144224

Software:

  • ArcGIS API for Python

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