<?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: PGDB Error Loading Records in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/pgdb-error-loading-records/m-p/741747#M19719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In addition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When an Identify is performed on a feature, the information is all there (including any joined field information) and there is no such error.&amp;nbsp; The error only occurs when attempting to open the attribute table of the Layer.&amp;nbsp; Alternatively, if I attempt to perform a SelectByAttributes on the attribute table, it cannot load any of the fields and therfore cannot query anything with the Querybuilder UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also: I cannot make any selections at all with the SelectFeature tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also2: When I export the layer to a shapefile, it keeps all of the joined fields and contains the correct values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not having much luck locating anyone/thread/post with this similar behavior.&amp;nbsp; I've read thru a couple of items that suggest re-creating the layer and re-setting the Shape index value, then appending the data from the original layer, but this does nothing to alleviate the error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2011 18:17:47 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2011-05-23T18:17:47Z</dc:date>
    <item>
      <title>PGDB Error Loading Records</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/pgdb-error-loading-records/m-p/741746#M19718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcGIS10 / Personal Geodatabase / Table and FeatureClasses&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having some difficulty determining and finding a suitable remedy for a reocurring error.&amp;nbsp; I have developed some customized ArcObjects that populates an ITable, then joins(IMemoryRelationshipClassFactory) this with another layer in the PGDB.&amp;nbsp; Actually, there are no errors during this entire process and everything renders perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error comes when attempting to open the attribute table of the layer (after the join is complete).&amp;nbsp; This is the exact error message in this format (multi-line message):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There was an error loading records&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The spatial index grid size is invalid [OID Table0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The spatial index grid size is invalid&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That it's -- those 3 lines appear and the attribute table is blank.&amp;nbsp; However, if I remove the Join manually, then there is no error opening the attribute table!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;james&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 15:04:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/pgdb-error-loading-records/m-p/741746#M19718</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2011-05-23T15:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: PGDB Error Loading Records</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/pgdb-error-loading-records/m-p/741747#M19719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In addition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When an Identify is performed on a feature, the information is all there (including any joined field information) and there is no such error.&amp;nbsp; The error only occurs when attempting to open the attribute table of the Layer.&amp;nbsp; Alternatively, if I attempt to perform a SelectByAttributes on the attribute table, it cannot load any of the fields and therfore cannot query anything with the Querybuilder UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also: I cannot make any selections at all with the SelectFeature tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also2: When I export the layer to a shapefile, it keeps all of the joined fields and contains the correct values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not having much luck locating anyone/thread/post with this similar behavior.&amp;nbsp; I've read thru a couple of items that suggest re-creating the layer and re-setting the Shape index value, then appending the data from the original layer, but this does nothing to alleviate the error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 18:17:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/pgdb-error-loading-records/m-p/741747#M19719</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2011-05-23T18:17:47Z</dc:date>
    </item>
    <item>
      <title>Resolved</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/pgdb-error-loading-records/m-p/741748#M19720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I found the problem was with the way I was setting up my IRelationshipClass.&amp;nbsp; I don't remember exactly where I found the example in setting this up, but I was not explicitly stating the Cardinality (for some reason I was using 0, but it did not error, so I believed this was working ok).&amp;nbsp; Anyway this is what you should not do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
pRelationshipClass = pMemoryRelationshipClassFactory.Open("Join", pTable, sTableField, pFeatureLayer.DisplayFeatureClass, sLayerField, "forward", "backward", 0)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should explicitly state the Cardinality like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
pRelationshipClass = pMemoryRelationshipClassFactory.Open("Join", pTable, sTableField, pFeatureLayer.DisplayFeatureClass, sLayerField, "forward", "backward", &lt;STRONG&gt;esriRelCardinality.esriRelCardinalityOneToOne&lt;/STRONG&gt;)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:34:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/pgdb-error-loading-records/m-p/741748#M19720</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-12T07:34:27Z</dc:date>
    </item>
  </channel>
</rss>

