laptop and a wrench

Error

When calling the gis.admin.license.all().report function in the ArcGIS API for Python, ArcGIS Drone2Map licenses are listed under a single Drone2Map entitlement instead of being split into Standard and Advanced categories.

ArcGIS API for Python
Número de ID del error BUG-000165814
EnviadoMarch 8, 2024
Última modificaciónFebruary 10, 2025
Relacionado conArcGIS API for Python
Versión encontrada2.2.0
Sistema operativoN/A
Versión de sistema operativoN/A
EstadoIn Review

Solución alternativa

If the secondary license is expired or not in used by any users, reach out to Esri Support to request removing the license from the organization. If both licenses are needed/in use, modify the script to get and revoke multiple licenses that have the same name using a for loop.

Below is a sample code:

org_licenses=gis.admin.license.all()

D2M_licenses=[]

for l in org_licenses:

   if "Drone" in l.properties.listing['title']:

       D2M_licenses.append(l)

for license in D2M_licenses:

   license.revoke(username="USERNAME", entitlements="*")

Pasos para reproducir

ID del error: BUG-000165814

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