<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS Pro removing map layers when data is overwritten or deleted in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1257597#M65461</link>
    <description>&lt;P&gt;I'm running a very simple process in a Jupyter Notebook that overwrites data in a few layers that are symbolized in a map series and I just noticed that during the geoprocessing ArcGIS Pro is now removing the layers from my map and layout.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 17:40:15 GMT</pubDate>
    <dc:creator>AaronCole1</dc:creator>
    <dc:date>2023-02-14T17:40:15Z</dc:date>
    <item>
      <title>ArcGIS Pro removing map layers when data is overwritten or deleted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1257597#M65461</link>
      <description>&lt;P&gt;I'm running a very simple process in a Jupyter Notebook that overwrites data in a few layers that are symbolized in a map series and I just noticed that during the geoprocessing ArcGIS Pro is now removing the layers from my map and layout.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 17:40:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1257597#M65461</guid>
      <dc:creator>AaronCole1</dc:creator>
      <dc:date>2023-02-14T17:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Jupyter Notebook removes active layers during geoprocessing</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1257734#M65474</link>
      <description>&lt;P&gt;So this isn't entirely true...the Python window USED to not do this, but now it does. What am I missing? I'm overwriting features via Python but that shouldn't cause me to lose the layer. It resets all symbology, labeling, map series settings, and legend settings, even if I close the Layout or Map.&lt;/P&gt;&lt;P&gt;Look at the attached gif. The Conflict Property Layer is sourced to the COI_Parcels dataset, when I run the Python script, that layer gets overwritten with updated information, a normal ETL routine, simple as can be. However, Pro is removing the layer, what the heck?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 22:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1257734#M65474</guid>
      <dc:creator>AaronCole1</dc:creator>
      <dc:date>2023-02-13T22:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Jupyter Notebook removes active layers during geoprocessing</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1257833#M65481</link>
      <description>&lt;P&gt;you can check or set environment settings, like adding results to display.&amp;nbsp; This used to be only set at the application level, but you can set it as an environment setting beginning in python 2.9.&amp;nbsp; If the layer is being removed (which it normally does), you can add the final result back in (in theory) by setting&lt;/P&gt;&lt;P&gt;addOutputsToMap&amp;nbsp; &amp;nbsp;(Read and Write)&lt;/P&gt;&lt;P&gt;in&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/env.htm" target="_blank"&gt;env—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 02:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1257833#M65481</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-02-14T02:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Jupyter Notebook removes active layers during geoprocessing</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1258095#M65509</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;Thanks for responding. The issue I'm having is with the layers getting removed when their data sources are overwritten, not with the layers getting added in afterwards.&amp;nbsp; I think ESRI is trying to keep house, so that when data is deleted it's removed from any maps, but in this context that's cartographic suicide.&amp;nbsp; I'm overwriting the layer's data source, something I've been doing as a typical workflow for many years from the Python window, but now I'm seeing that when I overwrite a dataset, the layer is removed from the map, which causes a loss of all layer-related settings including symbology, labeling, participation in a legend or map series.&amp;nbsp; I can't remember when I first noticed it but it makes the Python window and Jupyter Notebook rather useless to me for many workflows. I'm surprised more users aren't barking about this issue. I can just do my work in PyCharm or wherever else, but for hybrid workflows where you want to visually inspect results midstream, I love using the Python window or more recently a Notebook.&amp;nbsp; Sad trombone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached a gif of the same workflow in ArcMap, data gets overwritten, layers become unavailable but never removed, then once the data is back the layers are refreshed.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 17:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1258095#M65509</guid>
      <dc:creator>AaronCole1</dc:creator>
      <dc:date>2023-02-14T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro removing map layers when data is overwritten or deleted</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1258121#M65513</link>
      <description>&lt;P&gt;Having a conversation with myself...but there is a setting in the Pro GP options that accomplishes this...thank goodness.&amp;nbsp;&lt;STRONG&gt;Remove layers that reference data overwritten by geoprocessing tools&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 18:41:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-removing-map-layers-when-data-is/m-p/1258121#M65513</guid>
      <dc:creator>AaronCole1</dc:creator>
      <dc:date>2023-02-14T18:41:58Z</dc:date>
    </item>
  </channel>
</rss>

