<?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 Create Replica Question in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-replica-question/m-p/325299#M12508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When creating a replica through the REST API, is it possible to return all records from a table, but without bringing all of the related records with it? A simplified example of my issue is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three tables: BUILDING, BUILDING_INSPECTION, and INSPECTOR. BUILDING_INSPECTION has a 1:M relationship with BUILDING and INSPECTOR has a M:1 relationship with BUILDING_INSPECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a replica of the data based on an envelope that contains a subset of the BUILDING records. Obviously, I only want the BUILDING_INSPECTION records related to the BUILDING records in the specified envelope, so the queryOptions for these layers are like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUILDING : &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Query Option:&lt;/EM&gt; useFilter &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useGeometry: &lt;/EM&gt;true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;includeRelated&lt;/EM&gt;: (ignored since queryOption is useFilter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUILDING_INSPECTION :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Query Option: &lt;/EM&gt;none&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;useGeometry&lt;/EM&gt;: false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;includeRelated&lt;/EM&gt;: true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine except, I want to bring down all of the INSPECTOR records also. Therefore, the queryOptions for INSPECTOR need to look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSPECTOR : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Query Option: &lt;/EM&gt;all&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;useGeometry&lt;/EM&gt;: false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;includeRelated&lt;/EM&gt;: (ignored since queryOption is all)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I get all of the INSPECTOR records in the replica, but also unintentionally get all of the BUILDING_INSPECTION records that are related to the INSPECTOR records (which ends up being all of the inspections). Furthermore, since the additional BUILDING_INSPECTION records are related to other BUILDING records, I end up unintentionally retrieving all BUILDING records that have an inspection. The issue is that I can't change the query option of BUILDING_INSPECTION to not include related records, because I need the BUILDING_INSPECTION&amp;nbsp; records related to the BUILDING records in the specified envelope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way that I understand the createReplica REST endpoint is that there is no way to choose a specific relationship to acknowledge while ignoring all others. Is there something that I am missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2014 15:39:23 GMT</pubDate>
    <dc:creator>GeospatialSolutions</dc:creator>
    <dc:date>2014-11-25T15:39:23Z</dc:date>
    <item>
      <title>Create Replica Question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-replica-question/m-p/325299#M12508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When creating a replica through the REST API, is it possible to return all records from a table, but without bringing all of the related records with it? A simplified example of my issue is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three tables: BUILDING, BUILDING_INSPECTION, and INSPECTOR. BUILDING_INSPECTION has a 1:M relationship with BUILDING and INSPECTOR has a M:1 relationship with BUILDING_INSPECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a replica of the data based on an envelope that contains a subset of the BUILDING records. Obviously, I only want the BUILDING_INSPECTION records related to the BUILDING records in the specified envelope, so the queryOptions for these layers are like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUILDING : &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Query Option:&lt;/EM&gt; useFilter &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useGeometry: &lt;/EM&gt;true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;includeRelated&lt;/EM&gt;: (ignored since queryOption is useFilter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUILDING_INSPECTION :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Query Option: &lt;/EM&gt;none&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;useGeometry&lt;/EM&gt;: false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;includeRelated&lt;/EM&gt;: true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine except, I want to bring down all of the INSPECTOR records also. Therefore, the queryOptions for INSPECTOR need to look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSPECTOR : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Query Option: &lt;/EM&gt;all&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;useGeometry&lt;/EM&gt;: false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;includeRelated&lt;/EM&gt;: (ignored since queryOption is all)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I get all of the INSPECTOR records in the replica, but also unintentionally get all of the BUILDING_INSPECTION records that are related to the INSPECTOR records (which ends up being all of the inspections). Furthermore, since the additional BUILDING_INSPECTION records are related to other BUILDING records, I end up unintentionally retrieving all BUILDING records that have an inspection. The issue is that I can't change the query option of BUILDING_INSPECTION to not include related records, because I need the BUILDING_INSPECTION&amp;nbsp; records related to the BUILDING records in the specified envelope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way that I understand the createReplica REST endpoint is that there is no way to choose a specific relationship to acknowledge while ignoring all others. Is there something that I am missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 15:39:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/create-replica-question/m-p/325299#M12508</guid>
      <dc:creator>GeospatialSolutions</dc:creator>
      <dc:date>2014-11-25T15:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create Replica Question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-replica-question/m-p/325300#M12509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;P.S. the versions of ArcGIS Server this has been tested on is 10.2.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 15:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/create-replica-question/m-p/325300#M12509</guid>
      <dc:creator>GeospatialSolutions</dc:creator>
      <dc:date>2014-11-25T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create Replica Question</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-replica-question/m-p/325301#M12510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having this issue also. I think the &lt;SPAN style="font-family: courier new,courier;"&gt;IncludeRelated&lt;/SPAN&gt; should not be a boolean, but an enum that defines how to get the related records (like &lt;SPAN style="font-family: courier new,courier;"&gt;IncludedChildren&lt;/SPAN&gt;, &lt;SPAN style="font-family: courier new,courier;"&gt;IncludeParents&lt;/SPAN&gt;, &lt;SPAN style="font-family: courier new,courier;"&gt;IncludeAll).&lt;/SPAN&gt; I'd like to get an official answer from ESRI how they are going to address this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 07:27:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/create-replica-question/m-p/325301#M12510</guid>
      <dc:creator>JuhoVainio</dc:creator>
      <dc:date>2015-04-24T07:27:17Z</dc:date>
    </item>
  </channel>
</rss>

