laptop and a wrench

Bug

RasterManager.add() fails to add image services.

Last Published: June 12, 2019 ArcGIS API for Python
Bug ID Number BUG-000122655
SubmittedMay 28, 2019
Last ModifiedJune 28, 2025
Applies toArcGIS API for Python
Version found1.6.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed1.9.0
StatusFixed

Workaround

It is possible to resolve this issue by manually changing the source code, however only follow this instruction if it's required.

  1. Make a backup of the _layer.py file referenced in the runtime error (e.g. /opt/anaconda3/envs/gdal/lib/python3.6/site-packages/arcgis/raster/_layer.py).
  2. Open the original _layer.py file to perform edits.
  3. Locate the _add_rasters function.
  4. Modify the line that reads "service_url = [service_url]" to "service_url = service_url"
  5. Save changes (if using a Jupyter Notebook also restart the kernel).

 

After making the above changes the function works as expected with a service URL.

 

Steps to Reproduce

Bug ID: BUG-000122655

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