Dear esri community,
I am rather new to ArcGIS Pro, but have really good experience with Python.
Now I created my first little toolbox with a script with takes an input feature layer and creates another output feature layer from the input by just taking a random sample of features from it.
This works fine, but now I also want to apply the same symbology from the input feature layer to the new created output feature layer.
Therefore I execute ApplySymbologyFromLayer_management at the end of the script.
This runs without an error, but doesn't update/change the symbology of the new created output feature layer.
Interesting is, if I call the same statement (ApplySymbologyFromLayer_management) inside the Python command prompt of ArcGIS Pro it works.
I also tried to execute the ApplySymbologyFromLayer_management command inside a second script of my toolbox, but this also doesn't work.
Anyone has an idea what's the problem?
Thanks and regards,
Daniel.