<?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: ArcGIS Pro Unable to load Feature datset into Map in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-unable-to-load-feature-datset-into-map/m-p/608727#M27041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the issue. In ArcMap when loading a feature class&amp;nbsp;contained in a&amp;nbsp;feature dataset you could actually IGNORE the dataset name when building your path. In ArcGIS Pro they required the dataset name (as should have been done in ArcMap). In addition there is a feature class factory that can be used to build your connection in Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;LayerFactory&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Instance.CreateFeatureLayer(uri, mapView.Map, 0, theShortName);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;Easy solutions is to create a layer file that contains the sde connection information vs. trying to connect directly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;In Pro the path formats are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;* string url = @"c:\data\project.gdb\DEM"; //Raster dataset from a FileGeodatabase&lt;/P&gt;&lt;P&gt;* string url = @"c:\connections\mySDEConnection.sde\roads"; //FeatureClass of a SDE&lt;/P&gt;&lt;P&gt;* string url = @"c:\connections\mySDEConnection.sde\States\roads"; //FeatureClass within a FeatureDataset from a SDE &amp;lt;-- what I'm doing&lt;/P&gt;&lt;P&gt;* string url = @"c:\data\roads.shp"; //Shapefile&lt;/P&gt;&lt;P&gt;* string url = @"c:\data\imagery.tif"; //Image from a file&lt;/P&gt;&lt;P&gt;* string url = @"c:\data\mySDEConnection.sde\roads"; //.lyrx or .lpkx file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 18:54:33 GMT</pubDate>
    <dc:creator>RichardDaniels</dc:creator>
    <dc:date>2018-01-03T18:54:33Z</dc:date>
    <item>
      <title>ArcGIS Pro Unable to load Feature datset into Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-unable-to-load-feature-datset-into-map/m-p/608726#M27040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a C#&amp;nbsp;Add-In I can add a SDE style&amp;nbsp;feature class to my map with the following code, this fails when attempting to load a FC contained in a Feature Dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;case&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"SDEFeature"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; uri= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Uri&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;(theFullPath.Replace(theSeperator,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: Consolas; font-size: small;"&gt;@"\"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; t = &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;QueuedTask&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Run(() =&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; x = &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;LayerFactory&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Instance.CreateLayer(uri, mapView.Map, 0, theShortName);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;catch&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Exception&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; eX)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;MessageBox&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Show(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"Unable to load the selected dataset. "&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; + eX.Message.ToString(), &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"Data Load Problem"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;MessageBoxButtons&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.OK);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example theSeperator used in the source&amp;nbsp;is "|".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using a feature dataset it returns "Unable to load the selected dataset. Failed to create layer from W:\HQsdePoliticalAdminBoundariesP.sde\PoliticalAminBoundaries.DBO.CadastrialFWCountyBndr."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question, is there a difference when specifying a Feature Class vs. Feature Dataset when using the layer factor? Should I be&amp;nbsp;using a different factory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 23:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-unable-to-load-feature-datset-into-map/m-p/608726#M27040</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2018-01-02T23:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Unable to load Feature datset into Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-unable-to-load-feature-datset-into-map/m-p/608727#M27041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the issue. In ArcMap when loading a feature class&amp;nbsp;contained in a&amp;nbsp;feature dataset you could actually IGNORE the dataset name when building your path. In ArcGIS Pro they required the dataset name (as should have been done in ArcMap). In addition there is a feature class factory that can be used to build your connection in Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;LayerFactory&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Instance.CreateFeatureLayer(uri, mapView.Map, 0, theShortName);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;Easy solutions is to create a layer file that contains the sde connection information vs. trying to connect directly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;In Pro the path formats are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;* string url = @"c:\data\project.gdb\DEM"; //Raster dataset from a FileGeodatabase&lt;/P&gt;&lt;P&gt;* string url = @"c:\connections\mySDEConnection.sde\roads"; //FeatureClass of a SDE&lt;/P&gt;&lt;P&gt;* string url = @"c:\connections\mySDEConnection.sde\States\roads"; //FeatureClass within a FeatureDataset from a SDE &amp;lt;-- what I'm doing&lt;/P&gt;&lt;P&gt;* string url = @"c:\data\roads.shp"; //Shapefile&lt;/P&gt;&lt;P&gt;* string url = @"c:\data\imagery.tif"; //Image from a file&lt;/P&gt;&lt;P&gt;* string url = @"c:\data\mySDEConnection.sde\roads"; //.lyrx or .lpkx file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-unable-to-load-feature-datset-into-map/m-p/608727#M27041</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2018-01-03T18:54:33Z</dc:date>
    </item>
  </channel>
</rss>

