<?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 createReplica not maintaining table-to-table relationships in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/createreplica-not-maintaining-table-to-table/m-p/1579138#M4935</link>
    <description>&lt;P&gt;We're using &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/create-replica" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/create-replica&lt;/A&gt; to build a replica with the following hierarchy:&lt;/P&gt;&lt;P&gt;layer -&amp;gt; child layer -&amp;gt; child table 1 -&amp;gt; child table 2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;layer&lt;/STRONG&gt; relates &lt;EM&gt;one to many&lt;/EM&gt; to &lt;STRONG&gt;child layer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;child layer&lt;/STRONG&gt; relates &lt;EM&gt;one to many&lt;/EM&gt; to &lt;STRONG&gt;child table 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;child table 1&lt;/STRONG&gt; relates &lt;EM&gt;one to many&lt;/EM&gt; for &lt;STRONG&gt;child table 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When we set a query on the top-most &lt;STRONG&gt;layer&lt;/STRONG&gt; then we only get related data for &lt;STRONG&gt;child layer&amp;nbsp;&lt;/STRONG&gt;and the related data (to child layer) for &lt;STRONG&gt;child table&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;1.&lt;/STRONG&gt; However, &lt;STRONG&gt;child table 2&lt;/STRONG&gt; has no data. We would expect&amp;nbsp;&lt;STRONG&gt;child table 2&lt;/STRONG&gt; to have the data related to &lt;STRONG&gt;child table 1&lt;/STRONG&gt; cascading from the chain of relationships to the query on&amp;nbsp;&lt;STRONG&gt;layer&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Does anyone have experience writing a createReplica query to do this? Is this possible with syncOptions?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2025 16:26:03 GMT</pubDate>
    <dc:creator>jmidtlyng</dc:creator>
    <dc:date>2025-01-27T16:26:03Z</dc:date>
    <item>
      <title>createReplica not maintaining table-to-table relationships</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/createreplica-not-maintaining-table-to-table/m-p/1579138#M4935</link>
      <description>&lt;P&gt;We're using &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/create-replica" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/create-replica&lt;/A&gt; to build a replica with the following hierarchy:&lt;/P&gt;&lt;P&gt;layer -&amp;gt; child layer -&amp;gt; child table 1 -&amp;gt; child table 2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;layer&lt;/STRONG&gt; relates &lt;EM&gt;one to many&lt;/EM&gt; to &lt;STRONG&gt;child layer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;child layer&lt;/STRONG&gt; relates &lt;EM&gt;one to many&lt;/EM&gt; to &lt;STRONG&gt;child table 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;child table 1&lt;/STRONG&gt; relates &lt;EM&gt;one to many&lt;/EM&gt; for &lt;STRONG&gt;child table 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When we set a query on the top-most &lt;STRONG&gt;layer&lt;/STRONG&gt; then we only get related data for &lt;STRONG&gt;child layer&amp;nbsp;&lt;/STRONG&gt;and the related data (to child layer) for &lt;STRONG&gt;child table&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;1.&lt;/STRONG&gt; However, &lt;STRONG&gt;child table 2&lt;/STRONG&gt; has no data. We would expect&amp;nbsp;&lt;STRONG&gt;child table 2&lt;/STRONG&gt; to have the data related to &lt;STRONG&gt;child table 1&lt;/STRONG&gt; cascading from the chain of relationships to the query on&amp;nbsp;&lt;STRONG&gt;layer&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Does anyone have experience writing a createReplica query to do this? Is this possible with syncOptions?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 16:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/createreplica-not-maintaining-table-to-table/m-p/1579138#M4935</guid>
      <dc:creator>jmidtlyng</dc:creator>
      <dc:date>2025-01-27T16:26:03Z</dc:date>
    </item>
  </channel>
</rss>

