laptop and a wrench

Erro

Deleting multiple feature classes using the ArcPy Delete function fails with the error message, "RuntimeError: Object: Error in executing tool."

Última Publicação: January 14, 2020 ArcGIS Pro
Número de ID do Erro BUG-000121616
EnviadoApril 10, 2019
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Pro
Versão encontrada2.3
Sistema OperacionalN/A
Versão do Sistema OperacionalN/A
Versão Fixa2.6
StatusFixed

Solução Provisória

The Delete tool fails with ["a", "b", "c"] but succeeds with ["a;b;c"]. As a workaround follow the steps below:

 

## Use ListFeatureClasses with wildcard to obtain a list of feature classes to be deleted

fclist = arcpy.ListFeatureClasses(...)

arcpy.management.Delete(";".join(fclist))

This works in Python IDLE and standalone script, but does not work in the Python window of ArcGIS Pro.

Etapas para Reproduzir

ID do Erro: BUG-000121616

Software:

  • ArcGIS Pro

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