<?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 Tracking Nested Repeat Records for Unique IDs in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/tracking-nested-repeat-records-for-unique-ids/m-p/1313273#M50919</link>
    <description>&lt;P&gt;I am building a form for electro-fishing which has a nested repeat&amp;nbsp;&lt;/P&gt;&lt;P&gt;- main layer : waterbody/stream and year (MAIN)&lt;/P&gt;&lt;P&gt;- first repeat: location of electro-fishing&amp;nbsp; (LOCATION)&lt;/P&gt;&lt;P&gt;- second repeat: individual fish at location of electro-fishing (FISH)&lt;/P&gt;&lt;P&gt;The team will sometimes electrofish at multiple locations at the same waterbody on the same day. They will also sometimes return to that waterbody within the same year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I'm having is generating unique ID's between all tables, specifically the (FISH) IDs.&lt;/P&gt;&lt;P&gt;The team has an existing database and the fish IDs are continuous over visits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample 1: July 28 (15 fish collected) - fish IDs would range from ABC-1 to ABC-15&lt;/P&gt;&lt;P&gt;sample 2: July 28 (10 fish collected) - ABC-16 to ABC- 25&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample 3: Aug 14 (20 fish collected) - ABC-26 to ABC-45&lt;/P&gt;&lt;P&gt;For each fish sample, I want to generate a unique ID that identifies the (LOCATION) and would look something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample 1: ABC-July 28 - 1&lt;/P&gt;&lt;P&gt;sample 2: ABC - July 28 -2&lt;/P&gt;&lt;P&gt;sample 3: ABC - Aug 14 - 1&lt;/P&gt;&lt;P&gt;If I keep the first and second repeats separate (and not nested) then I can automatically keep track of the correct Fish ID using position(..).&amp;nbsp;However when I do this, the (LOCATION) ID&amp;nbsp; changes to the newest LOCATION ID&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I keep them nested, which I feel is much cleaner when in the field, then the (FISH) ID resets at 1 everytime you create a new (LOCATION)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* all collection would be offline so there isn't the option to send the survey and then edit using the inbox for multiple visits at one location in the same day&lt;/P&gt;&lt;P&gt;Any advice or workarounds would be appreciated ! Happy to share snippets of the XLS form !&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 21:12:25 GMT</pubDate>
    <dc:creator>BrandonGregg</dc:creator>
    <dc:date>2023-07-28T21:12:25Z</dc:date>
    <item>
      <title>Tracking Nested Repeat Records for Unique IDs</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/tracking-nested-repeat-records-for-unique-ids/m-p/1313273#M50919</link>
      <description>&lt;P&gt;I am building a form for electro-fishing which has a nested repeat&amp;nbsp;&lt;/P&gt;&lt;P&gt;- main layer : waterbody/stream and year (MAIN)&lt;/P&gt;&lt;P&gt;- first repeat: location of electro-fishing&amp;nbsp; (LOCATION)&lt;/P&gt;&lt;P&gt;- second repeat: individual fish at location of electro-fishing (FISH)&lt;/P&gt;&lt;P&gt;The team will sometimes electrofish at multiple locations at the same waterbody on the same day. They will also sometimes return to that waterbody within the same year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I'm having is generating unique ID's between all tables, specifically the (FISH) IDs.&lt;/P&gt;&lt;P&gt;The team has an existing database and the fish IDs are continuous over visits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample 1: July 28 (15 fish collected) - fish IDs would range from ABC-1 to ABC-15&lt;/P&gt;&lt;P&gt;sample 2: July 28 (10 fish collected) - ABC-16 to ABC- 25&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample 3: Aug 14 (20 fish collected) - ABC-26 to ABC-45&lt;/P&gt;&lt;P&gt;For each fish sample, I want to generate a unique ID that identifies the (LOCATION) and would look something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample 1: ABC-July 28 - 1&lt;/P&gt;&lt;P&gt;sample 2: ABC - July 28 -2&lt;/P&gt;&lt;P&gt;sample 3: ABC - Aug 14 - 1&lt;/P&gt;&lt;P&gt;If I keep the first and second repeats separate (and not nested) then I can automatically keep track of the correct Fish ID using position(..).&amp;nbsp;However when I do this, the (LOCATION) ID&amp;nbsp; changes to the newest LOCATION ID&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I keep them nested, which I feel is much cleaner when in the field, then the (FISH) ID resets at 1 everytime you create a new (LOCATION)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* all collection would be offline so there isn't the option to send the survey and then edit using the inbox for multiple visits at one location in the same day&lt;/P&gt;&lt;P&gt;Any advice or workarounds would be appreciated ! Happy to share snippets of the XLS form !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 21:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/tracking-nested-repeat-records-for-unique-ids/m-p/1313273#M50919</guid>
      <dc:creator>BrandonGregg</dc:creator>
      <dc:date>2023-07-28T21:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Nested Repeat Records for Unique IDs</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/tracking-nested-repeat-records-for-unique-ids/m-p/1313614#M50931</link>
      <description>&lt;P&gt;One idea is to index them with the first repeat.&amp;nbsp; So 1-1, 1-2, 1-3 then 2-1, 2-2, 2-3, etc.&lt;/P&gt;&lt;P&gt;But be aware if a user goes back in the repeat and deletes say 2-2 then you will get two 2-3s since position will be 3 on the next add, and your other 3 is still there.&amp;nbsp; It may start to drive you nuts as this can happen on the regular.&amp;nbsp; We tell out crews never to go backwards and delete and it has kinda worked.&lt;/P&gt;&lt;P&gt;Then we just stopped worrying about sequential numbers.&amp;nbsp; What would you use them for anyway really.&amp;nbsp; Most times you want a count, avg, etc. People are used to seeing it but what is the use case?&lt;/P&gt;&lt;P&gt;Something to think about.&amp;nbsp; Hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 14:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/tracking-nested-repeat-records-for-unique-ids/m-p/1313614#M50931</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-07-31T14:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Nested Repeat Records for Unique IDs</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/tracking-nested-repeat-records-for-unique-ids/m-p/1314539#M50979</link>
      <description>&lt;P&gt;Thanks Doug.&amp;nbsp; That is a solution that works and what I will suggest it to the team. Good to know about the limitation before I do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think they NEED the sequential numbering, and certainly not the continuous numbering of fish between different visits. But since they have an existing database using this method , for consistency I wanted to find out if there was a way to do it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 13:29:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/tracking-nested-repeat-records-for-unique-ids/m-p/1314539#M50979</guid>
      <dc:creator>BrandonGregg</dc:creator>
      <dc:date>2023-08-02T13:29:40Z</dc:date>
    </item>
  </channel>
</rss>

