laptop and a wrench

Bug

Generating offline areas through ArcGIS API for Python fails when a minimum and maximum scale is set, and the web map is using the OpenStreetMap basemap. The error message, "UnboundLocalError: local variable 'layer0_obj' referenced before assignment" is returned.

Last Published: October 18, 2022 ArcGIS API for Python
Bug ID Number BUG-000152778
SubmittedOctober 4, 2022
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found2.0.1
Operating SystemWindows OS
Operating System Version10.0
Version FixedQ1 2023
StatusFixed

Workaround

  1. Do not set a min_scale or max_scale value in the script.
  2. Use the World Topographic basemap instead of the OpenStreetMap basemap.

Steps to Reproduce

Bug ID: BUG-000152778

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