laptop and a wrench

Bug

The Calculate Field tool in GeoAnalytics Tools fails to execute from Python API with the error message, "'datetime' is not defined"

Last Published: October 10, 2019 ArcGIS API for Python
Bug ID Number BUG-000125721
SubmittedOctober 2, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found1.6.2
Operating SystemWindows OS
Operating System Version2012 R2
StatusNon-Reproducible

Additional Information

This issue is addressed for the next release of the ArcGIS API for Python.

Workaround

  1. Navigate to the manage_data.py in the folder path (C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\geoanalytics).
  2. Edit the manage_data.py file and add 'import datetime' at the start and save changes to the file.
  3. Restart Jupyter Notebook to reflect changes in the script and confirm that the tool executes successfully from Python API. 

Steps to Reproduce

Bug ID: BUG-000125721

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