Hello,
I am running a python script to update fields in a table based on polygons selected within ArcPro, via the python window in ArcPro.
At 3 parts in the script I use "SelectLayerByAttribute_management" to make selections from the table to get specific items from that table using a SQL query.
Each time I call "SelectLayerByAttribute_management" a temporary view is created within the contents panel which persist after the script is completed.
How can I avoid these from being created? I wish to avoid using arcpy.Delete_management("TEST_FILE_View1") to remove the tables because this adds an extra minute or two to the processing time which is not feasible given this task requires this process to be run many times over. What alternative options do I have?
Thanks.