<?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: Repeats from a SQL hosted feature service in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849258#M22889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zachary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this, but I suspect my issue is how I publish my feature service. When I publish a feature class that resides in SQL, to a feature service on my portal, the related table goes to my map service and not to my feature service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I publish / set up my feature class in order for the related table to go to the feature service and not to the map service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2020 12:16:33 GMT</pubDate>
    <dc:creator>GavinWepener</dc:creator>
    <dc:date>2020-07-28T12:16:33Z</dc:date>
    <item>
      <title>Repeats from a SQL hosted feature service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849256#M22887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having issues getting the repeats going for attachments on a feature service published with data that resides in a SQL&amp;nbsp; database. If I do not use repeats, the survey works 100%, but using repeats I do not know to which related table I need to point the repeat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/500996_pastedImage_1.png" /&gt;&amp;nbsp;My schema in Survey123 looks this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/500997_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;How I try to do the repeat and the error that I get when I try to publish the survey.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I set up the repeats if my feature service is not hosted but uses data from SQL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 04:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849256#M22887</guid>
      <dc:creator>GavinWepener</dc:creator>
      <dc:date>2020-07-22T04:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Repeats from a SQL hosted feature service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849257#M22888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/39429"&gt;Gavin Wepener&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/survey123withexistingfeatureservices.htm#ESRI_SECTION1_3E03F20D44344345B4F4BC6451A1F1E4"&gt;creating a survey from an existing feature service&lt;/A&gt; the repeats should automatically populate with the related tables on the service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to create a survey that matches an existing feature service the name of the repeat needs to match the name of the table from the REST endpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in my test survey the name of my related table was TenEightDB.SDE.defects, when I created my survey based on that service that is the name that populated the repeat:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/501418_GeoNet2.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This matches what is present on the REST endpoint:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/501425_GeoNet3.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not see your related table on the REST endpoint it may be likely the table was not present in ArcGIS Pro or ArcMap when publishing the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zach&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 19:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849257#M22888</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2020-07-27T19:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Repeats from a SQL hosted feature service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849258#M22889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zachary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this, but I suspect my issue is how I publish my feature service. When I publish a feature class that resides in SQL, to a feature service on my portal, the related table goes to my map service and not to my feature service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I publish / set up my feature class in order for the related table to go to the feature service and not to the map service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 12:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849258#M22889</guid>
      <dc:creator>GavinWepener</dc:creator>
      <dc:date>2020-07-28T12:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Repeats from a SQL hosted feature service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849259#M22890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning Zachary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue was resolved by ESRI South Africa. When publishing a feature service from a layer hosted in SQL, it does not create a related table. Thus repeats does not work. So instead of having one repeat to capture several photos, you need to have several questions capturing one photo / attachment at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="margin-left: -.15pt;" width="499"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-top: solid #9BBB59 1.0pt; border-left: solid #9BBB59 1.0pt; border-bottom: none; border-right: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="137"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;image&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: none; border-top: solid #9BBB59 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="137"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;photo1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: none; border-top: solid #9BBB59 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="225"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Photo1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: solid #9BBB59 1.0pt; border-left: solid #9BBB59 1.0pt; border-bottom: none; border-right: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="137"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;image&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: none; border-top: solid #9BBB59 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="137"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;photo2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: none; border-top: solid #9BBB59 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="225"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Photo2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 04:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849259#M22890</guid>
      <dc:creator>GavinWepener</dc:creator>
      <dc:date>2020-07-29T04:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Repeats from a SQL hosted feature service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849260#M22891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/39429"&gt;Gavin Wepener&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad the issue has been resolved! When publishing with a related table from any database management system as long as the database is a Geodatabase you should be able to publish a feature service with a related table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the second to last point in this documentation for reference:&amp;nbsp;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/prepare-data-for-feature-services.htm#ESRI_SECTION1_3B4FB50BF9C64B91845FA93006601D5F" title="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/prepare-data-for-feature-services.htm#ESRI_SECTION1_3B4FB50BF9C64B91845FA93006601D5F"&gt;Prepare data to publish a feature service—ArcGIS Server | Documentation for ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the workaround with the attachments, when ArcGIS Survey123 3.10 releases the ability to add multiple photos to one image question will be supported. This&amp;nbsp;can be done with the multiline appearance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are builds in the&lt;A href="https://earlyadopter.esri.com/project/home.html?cap=e69ef91f45744b98882c651f7b518eb7"&gt; Early Adopter Community&lt;/A&gt; that can be used for testing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zach&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 23:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeats-from-a-sql-hosted-feature-service/m-p/849260#M22891</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2020-07-29T23:08:03Z</dc:date>
    </item>
  </channel>
</rss>

