Hey all,
thanks for the thread which already helped me a lot when I encountered the empty list.
As I aim to build a Python tool that can change the fieldDescription of a selected layer, I needed to modify the layer with arcpy.AlterField_management() from inside the tool.
Unfortunately, the CIM fieldDescription list is still empty after running the tool. In contrast, If I do the AlterField operation from the Python Window in ArcGIS Pro, the fieldDescription list is getting populated.
Does anyone have an idea how that could be and how the execution of a function from either Python Window or Python Toolbox differs?
Using ArcGIS Pro 3.0.3
Thanks!