<?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: Can I have the same field name in Parent and Repeat child? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153340#M41279</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, thanks. Glad to know I'm not crazy at least. The only other thought I've had is that in my case I'll be launching Survey123 from Field Maps and thus can pass the attributes in question from Field Maps to Survey123 via URL. So I'm thinking I can create some temporary hidden fields (with null schema), load the attributes into the temp schema from the URL, and the calc the values into my field schema within the various repeats (thus avoiding using a duplicated field name within a calc, since the temp field name is unique). I haven't tried it yet, but think it should work...&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 14:03:26 GMT</pubDate>
    <dc:creator>PaulPetersen1</dc:creator>
    <dc:date>2022-03-14T14:03:26Z</dc:date>
    <item>
      <title>Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/788823#M7759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my forms I like to pass our PointID down to each repeat table for ease of viewing.&amp;nbsp; &amp;nbsp;Since it is a separate repeat table using the same name should technically be ok.&amp;nbsp; But of course the excel form in Connect is yelling about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like I can still publish but am I headed for disaster here?&amp;nbsp; I was going to change the repeat field to PointKey but I have a form with 3 repeats now so that would get weird.&amp;nbsp; PointKey1, PointKey2, etc.&amp;nbsp; It would be a mess when moving data to my backend SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the other issue is if I have the repeat also use PointID with a calc of PointID from the parent it gives an error.&amp;nbsp; So I guess I need to use PlotKey no matter what?&amp;nbsp; But could I still use PlotKey in all 3 repeats?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone try having a parent and child with the same field name?&amp;nbsp; Is there any official guidance on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 18:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/788823#M7759</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-03-06T18:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/788824#M7760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding to this I would also like to have 2 repeats that have identical field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We collect Plants on the left and right bank of a stream.&amp;nbsp; So both repeats should have the field Species.&amp;nbsp; Having one be called LeftSpecies and the other RightSpecies makes no sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 20:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/788824#M7760</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-03-06T20:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/788825#M7761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I support this idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 21:47:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/788825#M7761</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2020-03-06T21:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153137#M41269</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, I'm going up against this issue right now...did you ever find a sustainable solution? I've just been adding prefixes to shared fields names in the children to make them unique, but I really don't like doing that.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 23:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153137#M41269</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-03-11T23:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153337#M41277</link>
      <description>&lt;P&gt;No I am adding prefixes as well.&amp;nbsp; We have other transformations on the data to match the backend schema anyway so just another one to add.&lt;/P&gt;&lt;P&gt;What I do is in Python I load the feature class or table into memory, then do add field and copy the value over using calculate field.&amp;nbsp; Then run append and it all matches up.&lt;/P&gt;&lt;P&gt;Another idea is to add the field to the service directly after you publish.&amp;nbsp; Then run a script each night to copy the value over.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 13:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153337#M41277</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-03-14T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153340#M41279</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, thanks. Glad to know I'm not crazy at least. The only other thought I've had is that in my case I'll be launching Survey123 from Field Maps and thus can pass the attributes in question from Field Maps to Survey123 via URL. So I'm thinking I can create some temporary hidden fields (with null schema), load the attributes into the temp schema from the URL, and the calc the values into my field schema within the various repeats (thus avoiding using a duplicated field name within a calc, since the temp field name is unique). I haven't tried it yet, but think it should work...&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153340#M41279</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-03-14T14:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153347#M41281</link>
      <description>&lt;P&gt;Note sure I get what you wrote but You cannot dup a field name anywhere in the form though.&amp;nbsp; The entire form and all repeats must not use the same field name twice.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:13:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153347#M41281</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-03-14T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153443#M41287</link>
      <description>&lt;P&gt;It seems that I&amp;nbsp;&lt;EM&gt;can&lt;/EM&gt; duplicate a field name in the form, as long as I don't reference that field name in calculations, defaults, relevant, etc. It highlights the field in pink, but doesn't actually stop me from publishing and collecting successfully. My prototype setup is in the screenshot below. Basically I write values to a null-bound temporary field and then use the temporary field to calculate the duplicate fields. It works in my testing so far...the method allows me to write the same value to duplicate field names within the form.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaulPetersen1_0-1647279170482.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36273i5C0196814D68BE49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaulPetersen1_0-1647279170482.png" alt="PaulPetersen1_0-1647279170482.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 17:36:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153443#M41287</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-03-14T17:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153475#M41288</link>
      <description>&lt;P&gt;Calcs may not work right however.&amp;nbsp; Also uploading.&amp;nbsp; Maybe 123 can chime it but good chance something else will break.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 18:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1153475#M41288</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-03-14T18:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1220933#M45265</link>
      <description>&lt;P&gt;Our team recently encountered this same issue regarding duplicate column names. This thread was one of the resources I used while diagnosing the problem and describes the behavior well, so I'm posting a solution that Esri shared with us, for posterity.&lt;/P&gt;&lt;P&gt;Firstly, some disclaimers: I'm a Survey123 novice, so I'm only able to speak to our particular use case, and may be omitting some details or discussion of broader implications that affect others. Also, I don't speak on behalf of Esri; if anything below requires correction or official confirmation, please defer to any subsequent posts from their staff.&lt;/P&gt;&lt;P&gt;To the topic at hand, during our Survey123 project we learned that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Having duplicate question names in different sections is supported, despite the red highlighting in Excel&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Referencing those question names in calculations requires a special syntax&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Regarding &lt;STRONG&gt;#1&lt;/STRONG&gt;, we are building a survey from a feature service based on an enterprise geodatabase. In this case, the question names (Column B, "name", in the Excel survey editor) match their corresponding column name in the target service/geodatabase. These names are unqualified (i.e. just the column name, with no table/schema/etc.) and cannot be changed.&lt;/P&gt;&lt;P&gt;Our geodatabase data model has many standardized column names. Therefore, when building a survey that includes related tables, we end up with questions that have duplicate names in the various survey sections (main section, repeat sections). This causes the red highlight in Excel.&lt;/P&gt;&lt;P&gt;Fortunately, for a simple survey, you can safely ignore the red highlighting and publish the survey with the duplicate names. Survey123 knows how to differentiate them based on the context of their respective sections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Knowing this, the issue for us then became &lt;STRONG&gt;#2&lt;/STRONG&gt; above. The standard syntax for referencing a question in a calculation is ${QuestionName}. If you have multiple questions named "QuestionName", those calculation references are ambiguous.&lt;/P&gt;&lt;P&gt;Luckily, there is an alternative syntax for referencing questions in calculations that identifies them unambiguously, even if the questions have the same name: you can specify a path to the question. Our contact shared &lt;A href="https://docs.getodk.org/form-logic/#xpath-paths" target="_self"&gt;this doc&lt;/A&gt; which explains it in more detail. In a simple example, consider a survey with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One question in the main section called "Name"&lt;/LI&gt;&lt;LI&gt;One question in a repeat section called "Name"&lt;/LI&gt;&lt;LI&gt;A calculation in the repeat section that concatenates the values of those two questions&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelMannion_0-1665528054820.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53394i4A5D538E80517D6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelMannion_0-1665528054820.png" alt="MichaelMannion_0-1665528054820.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Observe that the calculation uses path names to reference the two questions:&lt;/P&gt;&lt;PRE&gt;/Form_4/Name&lt;BR /&gt;/Form_4/HYDRO.Asset/Name&lt;/PRE&gt;&lt;P&gt;where:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"Form 4" is the name of the survey / Excel workbook&lt;/LI&gt;&lt;LI&gt;The leading part of the path for both questions is "Form_4", with an underscore instead of a space&lt;/LI&gt;&lt;LI&gt;The name of the repeat section, "HYDRO.Asset", is included in the path to its question&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Testing the survey in Survey123 Connect shows that the "Calculation Test" question correctly concatenates the two name values:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelMannion_2-1665528470674.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53396iF9D76D76DBEC0EFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelMannion_2-1665528470674.png" alt="MichaelMannion_2-1665528470674.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our team's Survey123 SME has confirmed that this same approach works with our actual (i.e. more complex) survey, so we are moving ahead with this as a solution.&lt;/P&gt;&lt;P&gt;The benefit for us is that we do not need to physically rename any columns in our underlying geodatabase. That allows us to follow existing organizational standards; facilitates geodatabase use for non-Survey123 users familiar with those standards, and; avoids complex data model migrations in the future if we add new calculations that reference duplicate column names.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 23:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1220933#M45265</guid>
      <dc:creator>MichaelMannion</dc:creator>
      <dc:date>2022-10-11T23:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1234120#M46182</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10129"&gt;@MichaelMannion&lt;/a&gt;&amp;nbsp;Thank you for this information. I just incorporated it into one of my surveys tied to an Enterprise Geodatabase that has related tables with the same field names. Have you ran into any issues with using the path names in your calculation fields? I'm having an issue where my fields aren't calculating if they are tied to a relevant question, but I think this might be a bug in the the latest 3.16 update.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 15:19:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1234120#M46182</guid>
      <dc:creator>MichaelTorbett</dc:creator>
      <dc:date>2022-11-22T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1234181#M46184</link>
      <description>&lt;P&gt;The short answer is "no", but the real answer is that I don't have enough first-hand experience to know the answer to your question. I've only learned enough about Survey123 to understand how it impacts our data model and infrastructure; we're fortunate to have a dedicated Survey123 team member building our production survey.&lt;/P&gt;&lt;P&gt;Hopefully someone with more practical Survey123 experience can comment. Sorry!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 17:04:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1234181#M46184</guid>
      <dc:creator>MichaelMannion</dc:creator>
      <dc:date>2022-11-22T17:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1523084#M58544</link>
      <description>&lt;P&gt;Replying here 2 years later with some additional tidbits that I just discovered after using this comment to solve an issue&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Any groups or repeats that your target field is nested under also need to be named. So, for example, you could have:&lt;/P&gt;&lt;PRE&gt;/Form_4/&lt;STRONG&gt;my_group&lt;/STRONG&gt;/Name&lt;BR /&gt;/Form_4/HYDRO.Asset/&lt;STRONG&gt;another_group&lt;/STRONG&gt;/Name&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;We found that a quick way to access these XPaths without having to guess &amp;amp; check. With your survey open in Survey123 Connect, click the Files button on the left. Open the XML file in your text editor of choice. Ctrl + F to find the field name that you're looking for in the section with the &lt;EM&gt;bind&lt;/EM&gt; tags. Copy the value from the nodeset parameter (no quotes).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the initial post&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10129"&gt;@MichaelMannion&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 19:40:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1523084#M58544</guid>
      <dc:creator>KayleeRivera</dc:creator>
      <dc:date>2024-08-16T19:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have the same field name in Parent and Repeat child?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1696236#M65975</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10129"&gt;@MichaelMannion&lt;/a&gt;&amp;nbsp;thank you SO MUCH for sharing this information, I wish I'd read this years ago!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 19:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-have-the-same-field-name-in-parent-and/m-p/1696236#M65975</guid>
      <dc:creator>EricaNova</dc:creator>
      <dc:date>2026-04-14T19:17:40Z</dc:date>
    </item>
  </channel>
</rss>

