<?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: ArcMap - Feature visible on map but attributes not showing in attribute table in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcmap-feature-visible-on-map-but-attributes-not/m-p/1349018#M6825</link>
    <description>&lt;P&gt;Thanks Chris. I have checked that the field set as the Primary Key is unique through the dataset.&lt;/P&gt;&lt;P&gt;I did manage to resolve this. The issue was in the underlying SQL view using the .STBuffer function. The solution was simply to remove the .STBuffer function from the SQL view and added it to the layer query when setting the layer's data source. I guess using SQL Geometry functions in SQL views results in ArcMap performance issues.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 01:05:31 GMT</pubDate>
    <dc:creator>NigelDsouza</dc:creator>
    <dc:date>2023-11-14T01:05:31Z</dc:date>
    <item>
      <title>ArcMap - Feature visible on map but attributes not showing in attribute table</title>
      <link>https://community.esri.com/t5/developers-questions/arcmap-feature-visible-on-map-but-attributes-not/m-p/1346490#M6818</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have come across an unusual behavior in arcmap and kind of hit a real roadblock.&lt;/P&gt;&lt;P&gt;I have a Polygon layer(&lt;STRONG&gt;A&lt;/STRONG&gt;) in an mxd that has been configured from a view in SQL-Server. The aim is to programmatically add a definition query, extract the geometry and use the selectByLocation tool to query features from another layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When configuring &lt;STRONG&gt;A,&amp;nbsp;&lt;/STRONG&gt;I selected an integer field(&lt;STRONG&gt;Pkey)&lt;/STRONG&gt; as the object id field, select Finish , Apply, save and close the mxd.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NigelDsouza_1-1699320949502.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/85184i866264665CB150E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NigelDsouza_1-1699320949502.png" alt="NigelDsouza_1-1699320949502.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I then reopen my mxd and apply a definition query to filter out a&amp;nbsp;&lt;STRONG&gt;ERef&lt;/STRONG&gt;(field from screenshot).&lt;/P&gt;&lt;P&gt;Now this is where I noticed the issue. After applying the definition query and hit zoom to layer I can see the feature on the map but not in the attribute table. As a result, when I use the select by location tool in my python script or even run it manually, it returns no results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NigelDsouza_0-1699326374815.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/85186iE61D8C4C866F6E56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NigelDsouza_0-1699326374815.png" alt="NigelDsouza_0-1699326374815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a couple of things like selecting a combination of different fields as the pkey and that did seem to work for a while until this started to happen again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some pointers on the way forward would be appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nigel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 05:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcmap-feature-visible-on-map-but-attributes-not/m-p/1346490#M6818</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2023-11-07T05:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap - Feature visible on map but attributes not showing in attribute table</title>
      <link>https://community.esri.com/t5/developers-questions/arcmap-feature-visible-on-map-but-attributes-not/m-p/1347060#M6819</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/139159"&gt;@NigelDsouza&lt;/a&gt;&amp;nbsp;, if you are not using an Esri ObjectID or a database Primary Key Constraint, then please double-check that the data in the &lt;STRONG&gt;Pkey&lt;/STRONG&gt; field is both Unique and Not Null.&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/object-id.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/object-id.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 10:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcmap-feature-visible-on-map-but-attributes-not/m-p/1347060#M6819</guid>
      <dc:creator>ChrisUnderwood</dc:creator>
      <dc:date>2023-11-08T10:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap - Feature visible on map but attributes not showing in attribute table</title>
      <link>https://community.esri.com/t5/developers-questions/arcmap-feature-visible-on-map-but-attributes-not/m-p/1349018#M6825</link>
      <description>&lt;P&gt;Thanks Chris. I have checked that the field set as the Primary Key is unique through the dataset.&lt;/P&gt;&lt;P&gt;I did manage to resolve this. The issue was in the underlying SQL view using the .STBuffer function. The solution was simply to remove the .STBuffer function from the SQL view and added it to the layer query when setting the layer's data source. I guess using SQL Geometry functions in SQL views results in ArcMap performance issues.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 01:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcmap-feature-visible-on-map-but-attributes-not/m-p/1349018#M6825</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2023-11-14T01:05:31Z</dc:date>
    </item>
  </channel>
</rss>

