<?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 How can I change properly the DataSource of a featurelayer? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-change-properly-the-datasource-of-a/m-p/810301#M2326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have followed this example:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/CIMExamples/ChangeLayerDataSource.cs" title="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/CIMExamples/ChangeLayerDataSource.cs"&gt;arcgis-pro-sdk-community-samples/ChangeLayerDataSource.cs at master · Esri/arcgis-pro-sdk-community-samples · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but, in my opinion, it doesn't work properly.&lt;/P&gt;&lt;P&gt;I have two featureclass in the same GDB, and a layer on the map has source GDB\featureclass1. I change the DataSource of the layer using the code in the example so that the new DataSource is&amp;nbsp;&lt;SPAN&gt;GDB\featureclass2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I delete&amp;nbsp;GDB\featureclass1 the layer is removed from the map, I'm wandering why this is happening because now its DataSource is changed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2018 11:44:08 GMT</pubDate>
    <dc:creator>MarioD_Amico</dc:creator>
    <dc:date>2018-12-18T11:44:08Z</dc:date>
    <item>
      <title>How can I change properly the DataSource of a featurelayer?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-change-properly-the-datasource-of-a/m-p/810301#M2326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have followed this example:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/CIMExamples/ChangeLayerDataSource.cs" title="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/CIMExamples/ChangeLayerDataSource.cs"&gt;arcgis-pro-sdk-community-samples/ChangeLayerDataSource.cs at master · Esri/arcgis-pro-sdk-community-samples · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but, in my opinion, it doesn't work properly.&lt;/P&gt;&lt;P&gt;I have two featureclass in the same GDB, and a layer on the map has source GDB\featureclass1. I change the DataSource of the layer using the code in the example so that the new DataSource is&amp;nbsp;&lt;SPAN&gt;GDB\featureclass2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I delete&amp;nbsp;GDB\featureclass1 the layer is removed from the map, I'm wandering why this is happening because now its DataSource is changed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 11:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-change-properly-the-datasource-of-a/m-p/810301#M2326</guid>
      <dc:creator>MarioD_Amico</dc:creator>
      <dc:date>2018-12-18T11:44:08Z</dc:date>
    </item>
  </channel>
</rss>

