<?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: Loading Survey123 data with Related Tables into a New Form?  in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815275#M14358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally the appropriate tool is&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm"&gt;Append—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;, which has an environment setting to preserve GlobalIDs (see &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/preserve-globalids.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/preserve-globalids.htm"&gt;Preserve Global IDs (Environment setting)—Geoprocessing | ArcGIS Desktop&lt;/A&gt;);&amp;nbsp;however, there is a limitation that may not make it suitable for the workflow involving FGDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In it's place, you can workaround this by utilizing the same procedure as&amp;nbsp;&lt;A class="link-titled" href="https://github.com/tedrick/SyncSurvey" title="https://github.com/tedrick/SyncSurvey"&gt;GitHub - tedrick/SyncSurvey: Synchronize a Hosted Feature Service to an Enterprise Geodatabase&lt;/A&gt;&amp;nbsp;(assuming this tool isn't working for you):&lt;/P&gt;&lt;P&gt;Use the CreateReplica endpoint of the of the feature service (&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/create-replica.htm" title="https://developers.arcgis.com/rest/services-reference/create-replica.htm"&gt;Create Replica—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Filter out the records already synced in&lt;/LI&gt;&lt;LI&gt;Add a new guid field, copy over the existing GlobalID values to preserve them&lt;/LI&gt;&lt;LI&gt;Append into the parent form&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Optional: export the the table with just new and old GlobalID&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;fields for a lookup table&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Add a new field to each repeat to store&amp;nbsp;the new globalID&lt;/LI&gt;&lt;LI&gt;join the parent (or lookup) into the repeat based on the parentglobalid &amp;gt; old globalid&lt;/LI&gt;&lt;LI&gt;copy the new globalid into the field&lt;/LI&gt;&lt;LI&gt;remove the join, update parent globalid&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 18:00:21 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2018-04-18T18:00:21Z</dc:date>
    <item>
      <title>Loading Survey123 data with Related Tables into a New Form?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815272#M14355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;I have a Survey123 form with 4 repeat section with means 4 related tables.&amp;nbsp; I tried to update the form with some minor changes (only choices changes) but was faced with the "All your old data will be deleted" message, so I downloaded the data in a FGDB and overwrote the form.&amp;nbsp; How do I get the previously submitted data loaded back into the hosted feature services and related tables?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; word-wrap: break-word; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; word-wrap: break-word; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;For forms without related tables I can just cut &amp;amp; paste from the FGDB FC into the hosted feature service, but this does not work for related table data.&amp;nbsp; Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815272#M14355</guid>
      <dc:creator>VirajP</dc:creator>
      <dc:date>2018-04-17T19:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Survey123 data with Related Tables into a New Form?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815273#M14356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are repeat sections nested? Because at this moment Survey123 supports only one level of repeats...&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 12:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815273#M14356</guid>
      <dc:creator>SMauri</dc:creator>
      <dc:date>2018-04-18T12:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Survey123 data with Related Tables into a New Form?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815274#M14357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, they are not nested.&amp;nbsp; The original form and the new version of the form work well.&amp;nbsp; I just need to load the data from version 1 of the form that is now in a FGDB into version 2 of the form.&amp;nbsp; Exact same schema, just changes made to domains.&amp;nbsp; Not sure why it wouldn't let me update without deleting data previous data, but that seems to happen sometimes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally it is not a big deal to migrate the data into the new form by editing the feature service in ArcGIS Pro, but I don't see a procedure to copy rows from one table to another unless they are attribute values of tables:&lt;BR /&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/copying-and-pasting-records-in-a-table.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/copying-and-pasting-records-in-a-table.htm"&gt;Copying and pasting records in a table—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815274#M14357</guid>
      <dc:creator>VirajP</dc:creator>
      <dc:date>2018-04-18T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Survey123 data with Related Tables into a New Form?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815275#M14358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally the appropriate tool is&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm"&gt;Append—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;, which has an environment setting to preserve GlobalIDs (see &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/preserve-globalids.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/preserve-globalids.htm"&gt;Preserve Global IDs (Environment setting)—Geoprocessing | ArcGIS Desktop&lt;/A&gt;);&amp;nbsp;however, there is a limitation that may not make it suitable for the workflow involving FGDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In it's place, you can workaround this by utilizing the same procedure as&amp;nbsp;&lt;A class="link-titled" href="https://github.com/tedrick/SyncSurvey" title="https://github.com/tedrick/SyncSurvey"&gt;GitHub - tedrick/SyncSurvey: Synchronize a Hosted Feature Service to an Enterprise Geodatabase&lt;/A&gt;&amp;nbsp;(assuming this tool isn't working for you):&lt;/P&gt;&lt;P&gt;Use the CreateReplica endpoint of the of the feature service (&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/create-replica.htm" title="https://developers.arcgis.com/rest/services-reference/create-replica.htm"&gt;Create Replica—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Filter out the records already synced in&lt;/LI&gt;&lt;LI&gt;Add a new guid field, copy over the existing GlobalID values to preserve them&lt;/LI&gt;&lt;LI&gt;Append into the parent form&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Optional: export the the table with just new and old GlobalID&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;fields for a lookup table&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Add a new field to each repeat to store&amp;nbsp;the new globalID&lt;/LI&gt;&lt;LI&gt;join the parent (or lookup) into the repeat based on the parentglobalid &amp;gt; old globalid&lt;/LI&gt;&lt;LI&gt;copy the new globalid into the field&lt;/LI&gt;&lt;LI&gt;remove the join, update parent globalid&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 18:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815275#M14358</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-04-18T18:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Survey123 data with Related Tables into a New Form?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815276#M14359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James, I am struggling with this.&lt;/P&gt;&lt;P&gt;Unfortunately our work proxy wont allow me to do this via a script, so I am trying to do it manually.&lt;/P&gt;&lt;P&gt;my data is structured:&lt;/P&gt;&lt;P&gt;Header Table &amp;gt; Repeat &amp;gt; Photo attachment&lt;/P&gt;&lt;P&gt;If I use the 'Update Data', the header table data appends, but no data populates the repeat or attachment tables&lt;/P&gt;&lt;P&gt;I had a workaround that I published here&amp;nbsp;&lt;A href="https://community.esri.com/thread/213005"&gt;Transfer data from old survey to new survey breaks relationship class&lt;/A&gt;&amp;nbsp; however this doesn't work anymore.&lt;/P&gt;&lt;P&gt;If I use pro to append, I can append the header table. When I append the repeat table I get a 'general function failure'. I also can't get it to 'Copy/Paste'. It seems that it is trying to maintain the globalID (even though I have turned off 'maintain globaids' and removed globalID from the field mapping) so throws an error as it cant edit the field.&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the error from the copy/paste:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/422612_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 23:01:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815276#M14359</guid>
      <dc:creator>JamesWilson2</dc:creator>
      <dc:date>2018-09-20T23:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Survey123 data with Related Tables into a New Form?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815277#M14360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your description, GlobalIDs in the repeat table would need to be preserved to maintain the relationship to the photos, correct? &amp;nbsp;It sounds like either data was previously submitted or copied over - can you select just the new records to append across?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 19:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/loading-survey123-data-with-related-tables-into-a/m-p/815277#M14360</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-10-01T19:51:02Z</dc:date>
    </item>
  </channel>
</rss>

