I am building a tool where the two required inputs are, in order, a geodatabase, and a domain name. When I attempt a validator to create the list of domain names after the geodatabase is selected, the tool always opens with the geodatabase as an error (because it is a required parameter and not yet populated). Is it possible to have it just show the green dot as a required input when the tool is first opened, rather than the red-X error? I was under the impression the the updateParameters block was only executed after the interface is interacted with by the user. Instead it seems to run this code as the tool is opened: def updateParameters(self):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
desc = arcpy.Describe(self.params[0].value)
domList = desc.Domains
domList.sort()
self.params[1].filter.list = domList
return
If I click on the red-X, it shows: ERROR updateParameters Execution Error: Runtime error : # does not existThanks for any assistance.