<?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 Re: Feature classes being removed from table of contents during geoprocessing in arcpro. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691987#M30594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you could share the salient portions of the script if it is long, or the script itself.&amp;nbsp; That is unexpected behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2020 19:58:06 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-05-21T19:58:06Z</dc:date>
    <item>
      <title>Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691986#M30593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a python script that copies features based on a query and saves them to a new GDB.&amp;nbsp; When the script copies a feature class, that feature class is removed from the table of contents.&amp;nbsp; How do I keep pro or the script from removing the feature classes when it makes the copies?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 19:46:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691986#M30593</guid>
      <dc:creator>BryceBarth</dc:creator>
      <dc:date>2020-05-21T19:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691987#M30594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you could share the salient portions of the script if it is long, or the script itself.&amp;nbsp; That is unexpected behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 19:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691987#M30594</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-05-21T19:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691988#M30595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;arcpy
&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;os


&lt;SPAN style="color: #808080;"&gt;# Variables #
&lt;/SPAN&gt;GlobalGDB = &lt;SPAN style="color: #6a8759;"&gt;r"C:\Users\BB0322\Desktop\DesktopProjects\VanBuran\VanBuran\VanBuran.gdb"
&lt;/SPAN&gt;plottingGDB = &lt;SPAN style="color: #6a8759;"&gt;r"C:\Users\BB0322\Desktop\DesktopProjects\VanBuran\Plotting\Plotting.gdb"
&lt;/SPAN&gt;FeederNumber = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;)
FeederNumber1 = (&lt;SPAN style="color: #6a8759;"&gt;"'" &lt;/SPAN&gt;+ FeederNumber + &lt;SPAN style="color: #6a8759;"&gt;"'"&lt;/SPAN&gt;)
expression = (&lt;SPAN style="color: #6a8759;"&gt;"FeederNumber = " &lt;/SPAN&gt;+ FeederNumber1)
name = FeederNumber.replace(&lt;SPAN style="color: #6a8759;"&gt;'-'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'_'&lt;/SPAN&gt;)
&lt;SPAN style="color: #808080;"&gt;#Book = r"C:\Users\BB0322\Desktop\DesktopProjects\VanBuran\VanBuran\VanBuran.gdb\StakingGrids\StakingGrid_JohnHobbs_6_1"
&lt;/SPAN&gt;Book = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb;"&gt;1&lt;/SPAN&gt;)
arcpy.env.overwriteOutput = &lt;SPAN style="color: #cc7832;"&gt;True
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;try&lt;/SPAN&gt;:
    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Fibercable"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"FiberCable"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    fibercableSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"FiberCable"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(fibercableSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Fibercable"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Fibercable has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Fibercable has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.CopyFeatures_management(Book&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Book"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Book has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Book has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Aerial"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Aerial"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    AerialSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Aerial"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(AerialSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Aerial"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Aerial has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Aerial has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Underground"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Underground"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    UndergroundSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Underground"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(UndergroundSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Underground"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Underground has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Underground has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Storage"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Storage"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    StorageSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Storage"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(StorageSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Storage"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Storage has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Storage has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"SpliceClosure"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Splice"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    SpliceSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Splice"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(SpliceSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Splice"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Splice has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Splice has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Tranfers"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Tranfers"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    TransferSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Tranfers"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(TransferSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Transfers"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Transfers has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Transfers has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Removal"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Removal"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    RemovalSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Removal"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(RemovalSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Removal"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Removal has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Removal has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Riser"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Riser"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    RiserSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Riser"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(RiserSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Riser"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Riser has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Riser has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"AnchorGuy"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"AnchorGuy"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    AnchorSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"AnchorGuy"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(AnchorSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"AnchorGuy"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"AnchorGuy has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"AnchorGuy has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Protection"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Protection"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    ProtectSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Protection"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(ProtectSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Protection"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Protection has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Protection has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Equipment"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Equipment"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    EquipmentSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Equipment"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;expression&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(EquipmentSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Equipment"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Equipment has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Equipment has been saved to the Plotting.gdb"&lt;/SPAN&gt;)

    arcpy.MakeFeatureLayer_management(GlobalGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Billing" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Poles"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Poles"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    PolesSelect = arcpy.SelectLayerByAttribute_management(&lt;SPAN style="color: #6a8759;"&gt;"Poles"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Feeder = " &lt;/SPAN&gt;+ FeederNumber1&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;)
    arcpy.CopyFeatures_management(PolesSelect&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;plottingGDB + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"Poles"&lt;/SPAN&gt;)
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Poles has been saved to the Plotting.gdb"&lt;/SPAN&gt;)
    arcpy.AddMessage(&lt;SPAN style="color: #6a8759;"&gt;"Poles has been saved to the Plotting.gdb"&lt;/SPAN&gt;)


&lt;SPAN style="color: #cc7832;"&gt;except &lt;/SPAN&gt;&lt;SPAN style="color: #8888c6;"&gt;Exception &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;as &lt;/SPAN&gt;e:
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"ERROR: " &lt;/SPAN&gt;+ e.args[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;])&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691988#M30595</guid>
      <dc:creator>BryceBarth</dc:creator>
      <dc:date>2021-12-12T05:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691989#M30596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just attached the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 20:09:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691989#M30596</guid>
      <dc:creator>BryceBarth</dc:creator>
      <dc:date>2020-05-21T20:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691990#M30597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bryce... you are&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;making a layer from a&amp;nbsp; featureclass from a gdb&lt;/LI&gt;&lt;LI&gt;then you do make a selection from that layer&lt;/LI&gt;&lt;LI&gt;finally you copy the layer with its selection to a new gdb&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;hence, the&amp;nbsp;selected features will be copied to the new featureclass in your destination gdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were running this with ArcGIS Pro, AND had your geoprocessing options set to add results to the display, then the layer (with its selection) should have been added to your active map display and would have been saved if the project was saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this appears to be a standalone script, only the destination gdb will get the results of the query and copying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing in your script that shows how this is running.&amp;nbsp; If it is a standalone script, then it knows nothing about the project you are working with.&lt;/P&gt;&lt;P&gt;It appears from&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; border: 0px; font-size: 9pt;"&gt;FeederNumber = arcpy.GetParameterAsText(&lt;SPAN style="color: #6897bb; border: 0px; font-weight: inherit; font-size: 12px;"&gt;0&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;this script might be associated with a tool running in arctoolbox...&amp;nbsp; Can you confirm your TOC before and after running this script and whether you are overwriting existing data?&lt;/P&gt;&lt;P&gt;I only see one reference in the options settings about removing existing layers in a TOC&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="258" src="https://community.esri.com/legacyfs/online/493084_display_options.png" width="866" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;References from.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/copy-features.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/copy-features.htm"&gt;Copy Features—Data Management toolbox | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 22:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691990#M30597</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-05-21T22:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691991#M30598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running this script from a toolbox.&amp;nbsp; I can confirm that after running the tool.&amp;nbsp; Any Feature class that the script copies is removed from the Table of Contents except for Transfers in this run.&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/493075_TOC_Problem.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It is not always the Transfer Feature class that is kept in the table of contents, but one Feature that is copied is not removed from the TOC while the rest are removed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/493097_TOC_Problem2.JPG" /&gt;&lt;/P&gt;&lt;P&gt;I also tried running the tool with the geoprocessing option for removing layers unchecked and I still get the same issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 23:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691991#M30598</guid>
      <dc:creator>BryceBarth</dc:creator>
      <dc:date>2020-05-21T23:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691992#M30599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;three&amp;nbsp;suggestions... I will check for bugs later&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/select-layer-by-attribute.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/select-layer-by-attribute.htm"&gt;Select Layer By Attribute—Data Management toolbox | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;syntax for ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;arcpy.SelectLayerByAttribute_management(chihuahua_cities, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;'SUBSET_SELECTION'&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;'"population" &amp;gt; 10000'&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;I notice that you are assigning the results to a variable... that might be the reason that they get deleted ... (my first guess)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Otherwise try&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;remove the try-except block... you don't need it, if something goes wrong, you would get the same error anyway.&amp;nbsp; Something is reminding me about results and try-except block when they finish without errors, and I can't pin it down.&lt;/LI&gt;&lt;LI&gt;this is in desperation.&amp;nbsp; Save the featurelayer within the source gdb.&lt;/LI&gt;&lt;LI&gt;desperation 2.&amp;nbsp; Try featureclass to featureclass (with an sql query instead of the make featurelayer)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;obviously for the last 2, no try-except block and only a smaller sample to test&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 23:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691992#M30599</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-05-21T23:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691993#M30600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Featureclass to Feaureclass worked.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 14:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691993#M30600</guid>
      <dc:creator>BryceBarth</dc:creator>
      <dc:date>2020-05-26T14:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691994#M30601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Feature class to feature class works for the Fibercable but every other feature is removed from the table of Contents.&amp;nbsp; I do not know what could be doing this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 19:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691994#M30601</guid>
      <dc:creator>BryceBarth</dc:creator>
      <dc:date>2020-05-28T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691995#M30602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you remove the try-except block? or just change to fc2fc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 19:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691995#M30602</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-05-28T19:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691996#M30603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried both ways, still have the same issue as before.&amp;nbsp; The only difference now is it will keep the first feature class called out (In this case it is Fibercable) in the table of contents but all other features called out in the script are removed even though the syntax and operations are exactly the same for those features as they are for the Fibercable feature class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 19:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691996#M30603</guid>
      <dc:creator>BryceBarth</dc:creator>
      <dc:date>2020-05-28T19:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691997#M30604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If they are standalone featureclasses, you might have to pack up your data and ship to tech support.&lt;/P&gt;&lt;P&gt;There is something that isn't obvious with your situation that I don't see.&amp;nbsp; Fibercable, billing etc got me thinking that these are part of "something"&lt;/P&gt;&lt;P&gt;Good luck&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 21:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691997#M30604</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-05-28T21:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691998#M30605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What&amp;nbsp;is the best way to get in touch with the right people?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 14:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691998#M30605</guid>
      <dc:creator>BryceBarth</dc:creator>
      <dc:date>2020-05-29T14:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Feature classes being removed from table of contents during geoprocessing in arcpro.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691999#M30606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend submitting a case to technical support via My Esri. If you do not have access to My Esri, I would talk to your organization admin related to GIS software.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 14:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-classes-being-removed-from-table-of/m-p/691999#M30606</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2020-05-29T14:29:34Z</dc:date>
    </item>
  </channel>
</rss>

