<?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 Error when adding Portal layer to map (Geodatabase field Not found) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/error-when-adding-portal-layer-to-map-geodatabase/m-p/1691575#M13893</link>
    <description>&lt;P&gt;We have a tool in our application that allows adding map layers from many sources.&amp;nbsp; Recently, a customer has asked us to include data from a service they have published to their ArcGIS Server.&amp;nbsp; There are many layers in this service.&amp;nbsp; Most layers load without issue.&amp;nbsp; A few will not load and fail with "Geodatabase field not found." message.&amp;nbsp; We are able to view the data from the REST endpoint and even use the ArcGIS Online Map Viewer to view the data.&amp;nbsp; All looks good there.&lt;/P&gt;&lt;P&gt;We are using ArcGIS .NET Maps SDK version 200.8.1 on WPF and MAUI (Android and iOS).&amp;nbsp; We are having the same issue on all platforms.&lt;/P&gt;&lt;P&gt;The customer indicates that it loads in the Online Viewer so there can't be a problem with the service.&amp;nbsp;&amp;nbsp;How can we determine the problem?&amp;nbsp; No detailed information is given using the debugger.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the very&amp;nbsp; simple code:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;private async Task&amp;lt;bool&amp;gt; add_Feature_Layer(Uri layerName)
{
    // Create new FeatureLayer from service uri and
    FeatureLayer AGOLLayer = new FeatureLayer(layerName);

    try
    {
        await AGOLLayer.LoadAsync();
        // Add created layer to the map
        _vm.MapControlMap.Map.OperationalLayers.Insert(0, AGOLLayer);
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message);
        await AGOLLayer.RetryLoadAsync();
    }
    return true;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2026 20:09:19 GMT</pubDate>
    <dc:creator>DwayneKuykendall</dc:creator>
    <dc:date>2026-03-19T20:09:19Z</dc:date>
    <item>
      <title>Error when adding Portal layer to map (Geodatabase field Not found)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/error-when-adding-portal-layer-to-map-geodatabase/m-p/1691575#M13893</link>
      <description>&lt;P&gt;We have a tool in our application that allows adding map layers from many sources.&amp;nbsp; Recently, a customer has asked us to include data from a service they have published to their ArcGIS Server.&amp;nbsp; There are many layers in this service.&amp;nbsp; Most layers load without issue.&amp;nbsp; A few will not load and fail with "Geodatabase field not found." message.&amp;nbsp; We are able to view the data from the REST endpoint and even use the ArcGIS Online Map Viewer to view the data.&amp;nbsp; All looks good there.&lt;/P&gt;&lt;P&gt;We are using ArcGIS .NET Maps SDK version 200.8.1 on WPF and MAUI (Android and iOS).&amp;nbsp; We are having the same issue on all platforms.&lt;/P&gt;&lt;P&gt;The customer indicates that it loads in the Online Viewer so there can't be a problem with the service.&amp;nbsp;&amp;nbsp;How can we determine the problem?&amp;nbsp; No detailed information is given using the debugger.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the very&amp;nbsp; simple code:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;private async Task&amp;lt;bool&amp;gt; add_Feature_Layer(Uri layerName)
{
    // Create new FeatureLayer from service uri and
    FeatureLayer AGOLLayer = new FeatureLayer(layerName);

    try
    {
        await AGOLLayer.LoadAsync();
        // Add created layer to the map
        _vm.MapControlMap.Map.OperationalLayers.Insert(0, AGOLLayer);
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message);
        await AGOLLayer.RetryLoadAsync();
    }
    return true;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 20:09:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/error-when-adding-portal-layer-to-map-geodatabase/m-p/1691575#M13893</guid>
      <dc:creator>DwayneKuykendall</dc:creator>
      <dc:date>2026-03-19T20:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error when adding Portal layer to map (Geodatabase field Not found)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/error-when-adding-portal-layer-to-map-geodatabase/m-p/1692741#M13902</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Thanks for reaching out! The Geodatabase field not found error you are encountering when loading specific layers via the .NET Maps SDK is a known behavior which is often associated with Error Code 3017 (&lt;A href="https://developers.arcgis.com/net/reference/platform-error-codes/" target="_blank"&gt;Platform error codes&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;This typically happens when a field that contains subtypes or domains is marked as hidden in the feature layer's attribute table. Because the field is not visible, the ArcGIS Runtime cannot find or access it when your code attempts to load the layer into the map, resulting in the failure.&lt;/P&gt;&lt;P&gt;To resolve this, you will need to adjust the field visibility for the problematic layers in ArcGIS Pro and republish the service.&lt;/P&gt;&lt;P&gt;Alternatively, if the subtype fields aren't necessary for the workflow, consider simply deleting them from the Fields view in ArcGIS Pro before saving and republishing the service.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 07:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/error-when-adding-portal-layer-to-map-geodatabase/m-p/1692741#M13902</guid>
      <dc:creator>pnarkhede</dc:creator>
      <dc:date>2026-03-26T07:10:43Z</dc:date>
    </item>
  </channel>
</rss>

