laptop and a wrench

Bug

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.

Last Published: February 3, 2020 ArcGIS for Desktop
Bug ID Number BUG-000107890
SubmittedSeptember 8, 2017
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.4
Operating SystemN/A
Operating System VersionN/A
StatusNon-Reproducible

Additional Information

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

Workaround

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

Steps to Reproduce

Bug ID: BUG-000107890

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options