I have a Python Toolbox that uses a spreadsheet as input.
When the spreadsheet is set by the user, I have the UpdateParameters def test it to make sure it has the correct columns.
To prevent this happening repeatedly, I use the hasBeenValidated of the parameter to just test once.
This works fine, but the problem is that when hasBeenValidated is used, it clears all the existing errors on all the other parameters. This includes the errors for the test being carried out.
I've tried using .altered, but this is always true after the parameter is set.
if parameters[0].ValueAsText and parameters[1].ValueAsText and parameters[1].hasBeenValidated == False:
How can I prevent the value being checked repeatedly without clearing all the error messages?
Thanks,
Nav