laptop and a wrench

Erro

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 do Erro BUG-000165814
EnviadoMarch 8, 2024
Última ModificaçãoFebruary 10, 2025
Aplica-se àArcGIS API for Python
Versão encontrada2.2.0
Sistema OperacionalN/A
Versão do Sistema OperacionalN/A
StatusIn Review

Solução Provisória

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="*")

Etapas para Reproduzir

ID do Erro: BUG-000165814

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download