laptop and a wrench

Error

Validations applied to the Script tool are not honored when the tool is added to a model and the model is run as a geoprocessing tool with the Script tool parameters set as the model parameters.

Última publicación: February 3, 2020 ArcGIS for Desktop
Número de ID del error BUG-000107890
EnviadoSeptember 8, 2017
Última modificaciónJune 5, 2024
Relacionado conArcGIS for Desktop
Versión encontrada10.4
Sistema operativoN/A
Versión de sistema operativoN/A
EstadoNon-Reproducible

Información adicional

Please try: Right-click the Script Tool > Properties > Validation tab > Edit Comment out Line 19 - 23 as follows: # if self.params[0].value == "E": # self.params[1].enabled = 1 # else: # self.params[1].enabled = 0

Solución alternativa

Add the logic of model and tool into a single Python script and use it as a standalone script tool.

Pasos para reproducir

ID del error: BUG-000107890

Software:

  • ArcGIS for Desktop

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