<?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: Bug in QueryRelatedRecords ArcGIS Server? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/bug-in-queryrelatedrecords-arcgis-server/m-p/714221#M35394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the moment I've been able to build a work around using the properties of the relationship object under the Feature layer to get the Layer Name, and Key Field.&amp;nbsp; Since the key field has the same name in both feature classes and the related layer has been also added as a feature layer I can find it through the map object and run the query function on that layer using the key field.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It isn't as awesome, and it has the holes of requiring the key fields to be the same and layers in the map.&amp;nbsp; At least it doesn't require a config file to map between the two layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It'd still be great if someone could confirm they also see this bug or that theirs works fine.&amp;nbsp; The key to the bug is that it accepts the gdbVersion parameter, but doesn't honor it going instead to the version configured in the feature service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2015 12:22:06 GMT</pubDate>
    <dc:creator>TimDine</dc:creator>
    <dc:date>2015-10-30T12:22:06Z</dc:date>
    <item>
      <title>Bug in QueryRelatedRecords ArcGIS Server?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/bug-in-queryrelatedrecords-arcgis-server/m-p/714220#M35393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature services published with a point layer and a table.&amp;nbsp; They are related via a primary/foreign key and have an established relationship class.&amp;nbsp; The feature service is published pointing to version A which is one level under Default.&amp;nbsp; Version B is under version A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default -&amp;gt; A -&amp;gt; B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the queryRelatedRecords method on the point layer referencing the relationshipID of the table.&amp;nbsp; I have some records returned as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the queryRelatedRecords method on the point layer referencing the relationshipID of the table and give it gdbVersion = A.&amp;nbsp; I have some records returned, same result as no gdbVersion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the queryRelatedRecords method on the point layer referencing the relationshipID of the table and give it gdbVersion = B.&amp;nbsp; I have the same records returned as if I did not use the gdbVersion option or handed it version A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the queryRelatedRecords method on the point layer referencing the relationshipID of the table and give it gdbVersion = C (which doesn't exist). No records are returned and an error message is presented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone able to confirm this behavior or if a bug exists?&amp;nbsp; I am using ArcGIS Server 10.21 on Windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 18:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/bug-in-queryrelatedrecords-arcgis-server/m-p/714220#M35393</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2015-10-27T18:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in QueryRelatedRecords ArcGIS Server?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/bug-in-queryrelatedrecords-arcgis-server/m-p/714221#M35394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the moment I've been able to build a work around using the properties of the relationship object under the Feature layer to get the Layer Name, and Key Field.&amp;nbsp; Since the key field has the same name in both feature classes and the related layer has been also added as a feature layer I can find it through the map object and run the query function on that layer using the key field.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It isn't as awesome, and it has the holes of requiring the key fields to be the same and layers in the map.&amp;nbsp; At least it doesn't require a config file to map between the two layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It'd still be great if someone could confirm they also see this bug or that theirs works fine.&amp;nbsp; The key to the bug is that it accepts the gdbVersion parameter, but doesn't honor it going instead to the version configured in the feature service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 12:22:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/bug-in-queryrelatedrecords-arcgis-server/m-p/714221#M35394</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2015-10-30T12:22:06Z</dc:date>
    </item>
  </channel>
</rss>

