<?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 GetLayersAsFlattenedList is not picking feature layer from sql views in 3.2 from addin of 3.0 in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getlayersasflattenedlist-is-not-picking-feature/m-p/1358354#M10826</link>
    <description>&lt;P&gt;I have created an add-in using that applies definition query on the layer selected from the active map. I am using below line to get the list of all the attributes/columns, which are available in the layer selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;().First(f =&amp;gt; f.Name == layer);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works fine, when i have a shapefile or featre class loaded from the local file system, but when i have a sql view loaded from the database, it gives me error of "Invalid Implementation of GlobalGeodatabase"&lt;BR /&gt;&lt;BR /&gt;When i used this add-in in arcgis pro 3.0 it works fine with everything, and it loads all the attributes perfectly. But it does not work in 3.2, it gives error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why it's not picking the fields of feature layer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var attributes = featureLayer.GetFeatureClass().GetDefinition().GetFields();&lt;/P&gt;&lt;P&gt;this is to get the attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 22:43:18 GMT</pubDate>
    <dc:creator>XetefXita</dc:creator>
    <dc:date>2023-12-07T22:43:18Z</dc:date>
    <item>
      <title>GetLayersAsFlattenedList is not picking feature layer from sql views in 3.2 from addin of 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getlayersasflattenedlist-is-not-picking-feature/m-p/1358354#M10826</link>
      <description>&lt;P&gt;I have created an add-in using that applies definition query on the layer selected from the active map. I am using below line to get the list of all the attributes/columns, which are available in the layer selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;().First(f =&amp;gt; f.Name == layer);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works fine, when i have a shapefile or featre class loaded from the local file system, but when i have a sql view loaded from the database, it gives me error of "Invalid Implementation of GlobalGeodatabase"&lt;BR /&gt;&lt;BR /&gt;When i used this add-in in arcgis pro 3.0 it works fine with everything, and it loads all the attributes perfectly. But it does not work in 3.2, it gives error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why it's not picking the fields of feature layer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var attributes = featureLayer.GetFeatureClass().GetDefinition().GetFields();&lt;/P&gt;&lt;P&gt;this is to get the attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 22:43:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getlayersasflattenedlist-is-not-picking-feature/m-p/1358354#M10826</guid>
      <dc:creator>XetefXita</dc:creator>
      <dc:date>2023-12-07T22:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: GetLayersAsFlattenedList is not picking feature layer from sql views in 3.2 from addin of 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getlayersasflattenedlist-is-not-picking-feature/m-p/1358364#M10828</link>
      <description>&lt;P&gt;can you try layer.GetFieldDescriptions() instead?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic11388.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic11388.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 23:27:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getlayersasflattenedlist-is-not-picking-feature/m-p/1358364#M10828</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2023-12-07T23:27:17Z</dc:date>
    </item>
  </channel>
</rss>

