First I would like to highlight that I´m an absolut newby with python. I trying to use this already created python tool but keep on receiving this error message: error 000861: Destination field is not valid:
It's a nested code so would be difficult to put all the different variables but the specific part of the code that is giving this problem is this:
All the input variables are fine, the only error cames from the last one (destination field) wich it´s supposed to be an optional variable. That´s why the "", because is empty.
Finally the problem was that if you use a feature class as an input destination (not a raster) the input field is not optional. So I had to create the field and write the name in the code.