laptop and a wrench

Error

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.

Última publicación: October 18, 2022 ArcGIS API for Python
Número de ID del error BUG-000152778
EnviadoOctober 4, 2022
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for Python
Versión encontrada2.0.1
Sistema operativoWindows OS
Versión de sistema operativo10.0
Versión corregidaQ1 2023
EstadoFixed

Solución alternativa

  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.

Pasos para reproducir

ID del error: BUG-000152778

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga