<?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 Power Automate to Microsoft List, Replicate Name Error in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396104#M55496</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a Microsoft Power Automate Flow to take my Survey123 submissions and create new line items in my Microsoft List.&lt;/P&gt;&lt;P&gt;In this specific Survey123, I have a field for replicate number, which if the answer is &amp;gt;1, will require a repeated replicate name field. The number of repeats of the replicate name field corresponds to the numeric value entered in the replicate number field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it stands in my flow, the number of line items created is related to the number of replicates. All is running smoothly except, when I try to submit a survey response with only one replicate, the flow fails.&lt;/P&gt;&lt;P&gt;I know that this has something to do with the "Select an output from the previous step" section in the apply to each section of the flow. However, if I change this dynamic content from the repeat replicate names field, the flow continues to fail for single replicates, or will not import replicate names for more than 2 replicates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I resolve my issue to have the correct number of line items for the number of replicates with the names imported and be able to have the flow run with only one replicate too?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are screen shots of my flow as well as the failed error.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 17:18:08 GMT</pubDate>
    <dc:creator>spf999</dc:creator>
    <dc:date>2024-03-14T17:18:08Z</dc:date>
    <item>
      <title>Power Automate to Microsoft List, Replicate Name Error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396104#M55496</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a Microsoft Power Automate Flow to take my Survey123 submissions and create new line items in my Microsoft List.&lt;/P&gt;&lt;P&gt;In this specific Survey123, I have a field for replicate number, which if the answer is &amp;gt;1, will require a repeated replicate name field. The number of repeats of the replicate name field corresponds to the numeric value entered in the replicate number field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it stands in my flow, the number of line items created is related to the number of replicates. All is running smoothly except, when I try to submit a survey response with only one replicate, the flow fails.&lt;/P&gt;&lt;P&gt;I know that this has something to do with the "Select an output from the previous step" section in the apply to each section of the flow. However, if I change this dynamic content from the repeat replicate names field, the flow continues to fail for single replicates, or will not import replicate names for more than 2 replicates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I resolve my issue to have the correct number of line items for the number of replicates with the names imported and be able to have the flow run with only one replicate too?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are screen shots of my flow as well as the failed error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 17:18:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396104#M55496</guid>
      <dc:creator>spf999</dc:creator>
      <dc:date>2024-03-14T17:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate to Microsoft List, Replicate Name Error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396220#M55502</link>
      <description>&lt;P&gt;From the screen shot, your repeat doesn't exist under this scenario. Are you able to include your XLSX so I can get a better idea of the workflow?&lt;/P&gt;&lt;P&gt;Ideally, your repeat in S123 will always exist and will always have at least one record (aka, be required).&lt;/P&gt;&lt;P&gt;If, when you have one item, the repeat &lt;EM&gt;doesn't &lt;/EM&gt;exist, then you will need a condition within Power Automate to detect for a null repeat, and then do something else.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 18:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396220#M55502</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-03-14T18:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate to Microsoft List, Replicate Name Error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396252#M55507</link>
      <description>&lt;P&gt;Hello here are the screenshots of the XLSX.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 1.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98087i186F273AE306545A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 1.png" alt="Screenshot 1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98086i063B50A6542728A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2.png" alt="Screenshot 2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="screenshot 3.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98088i6FEF155046593133/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot 3.png" alt="screenshot 3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 19:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396252#M55507</guid>
      <dc:creator>spf999</dc:creator>
      <dc:date>2024-03-14T19:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate to Microsoft List, Replicate Name Error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396269#M55508</link>
      <description>&lt;P&gt;A quick glance at the screen shots seems to indicate that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;${saminfo_reps} is required &lt;U&gt;and&lt;/U&gt; must be &amp;gt;0&lt;/LI&gt;&lt;LI&gt;${saminfo_repinfo} is required if ${saminfo_reps}&amp;gt;0 &lt;U&gt;and&lt;/U&gt; the number of repeat items is equal to ${saminfo_reps} (which is a positive integer).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Given that, the ${saminfo_repinfo} array should theoretically never be null, meaning your flow should at least get beyond that point. But, that obviously isn't the case. If you could attach the actual XLSX, I could recreate this.&lt;/P&gt;&lt;P&gt;(Side note, but it looks like you can just make ${saminfo_repinfo} required rather than conditionally required)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 20:06:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396269#M55508</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-03-14T20:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate to Microsoft List, Replicate Name Error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396298#M55510</link>
      <description>&lt;P&gt;Here is the XLSX, thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 20:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1396298#M55510</guid>
      <dc:creator>spf999</dc:creator>
      <dc:date>2024-03-14T20:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate to Microsoft List, Replicate Name Error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1397385#M55564</link>
      <description>&lt;P&gt;Had a look. Didn't clue in right away, but seeing it "in person" helped. The issue is that the repeat only appears when a number &amp;gt;1 is entered. That means the user can enter 1, submit the form, and your described Power Automate issue will occur.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_4-1710779686224.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98328i3F77F4363791229D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_4-1710779686224.png" alt="abureaux_4-1710779686224.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This being the case, you will need to test for the repeat and then branch your flow accordingly. You can select the repeat in Power Automate:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_5-1710781155105.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98331iD3967421E7764FE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_5-1710781155105.png" alt="abureaux_5-1710781155105.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And then use that in a Condition similar to this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_6-1710781184483.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98333iB619156956AE3519/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_6-1710781184483.png" alt="abureaux_6-1710781184483.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When the repeat is empty, it will do one thing, and when it contains data, it will do something else.&lt;/P&gt;&lt;P&gt;Beyond that, here are a couple template things, in case you didn't already know (I attached the XLSX):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;notes&lt;/STRONG&gt; don't need names. I deleted the &lt;EM&gt;name&lt;/EM&gt; for sampret_disclaim.&lt;/LI&gt;&lt;LI&gt;Any field with a green triangle in the appearance is not valid. I removed these.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_0-1710777407638.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98319i37A0D66DBE500EBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_0-1710777407638.png" alt="abureaux_0-1710777407638.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;When setting a default for a select, you need to use the list item's &lt;EM&gt;name&lt;/EM&gt;, not its &lt;EM&gt;label&lt;/EM&gt;. That is why your field blank question wasn't working (red is bad):&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1710777474314.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98320iE0CF6D88335744F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1710777474314.png" alt="abureaux_1-1710777474314.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Also on the note of field blank, it was set to the yes_yes list rather than the yes_no list. I assumed that was a mistake since you had the default set to 'no' so I swapped it back to the yes_no list.&lt;/LI&gt;&lt;LI&gt;I'm thinking you may have copy-pasted or dragged some items around. The data validation wasn't working properly. Specifically, I wanted to make the key question here, ${sampinfo_reps}, a little easier to find/use since it's an integer with a hidden repeat. I gave it the "numbers" appearance, which is valid, but it got flagged. Since I didn't want to mess around with the template, I just copy-pasted your survey as text into a brand new template.&lt;/LI&gt;&lt;LI&gt;For ${collect_date}, I'd suggest using a date field. To minimize user error, you can use a separate calculate with this formula to get your indicated format (&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528" target="_self"&gt;more info)&lt;/A&gt; &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;&lt;EM&gt;format-date(${collect_date},'%Y-%m-%d')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;Alternatively, if you want this to remain as a text field, you can use an &lt;U&gt;input mask&lt;/U&gt; to help out the user: &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;9999-99-99;#&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I saw you had a pH scale. I gave it some pretty formatting because... it's pretty&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_3-1710778641447.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98326i4FC55701FBF54161/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_3-1710778641447.png" alt="abureaux_3-1710778641447.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Regarding "Field Comments", be aware that this is the default 255 character length. Depending on the user, they may need far more that 255 characters. If you are intentionally limiting this field, that's fine. But if you want to allow more characters, I highly recommend you change this &lt;U&gt;now&lt;/U&gt; rather than later. Changing a field's character length will result in Connect wanting to wipe the database.&lt;/LI&gt;&lt;LI&gt;Using formula like&lt;STRONG&gt; if(${sampinfo_type}='filter','yes','')&lt;/STRONG&gt; is dangerous. I highly recommend using this format instead: &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;if(selected(${sampinfo_type},'filter'),'yes','')&lt;/STRONG&gt;&lt;/FONT&gt;. This actually comes into play with your select_multiple. It will not function as expected with the current formula. Swapping to the selected() version will fix this issue.&lt;/LI&gt;&lt;LI&gt;Hidden field's "required" parameter is ignored. I.e., a hidden field with required=yes will not cause a problem. As such, I simplified several field's required parameters (e.g., ${sampinfo_filterother}) by just changing them to &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;required=yes&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;When setting things like constraints that self-reference, you can use &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt; instead of the field name. E.g., you can change &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;${sampinfo_reps}&amp;gt;0&lt;/STRONG&gt;&lt;/FONT&gt; to &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;.&amp;gt;0&lt;/STRONG&gt;&lt;/FONT&gt;. This is faster to enter, and easier to read.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 18 Mar 2024 18:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/power-automate-to-microsoft-list-replicate-name/m-p/1397385#M55564</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-03-18T18:00:36Z</dc:date>
    </item>
  </channel>
</rss>

