<?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: Repeat error: Failed to execute 'evaluate' on 'XPathEvaluator' in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1209861#M44655</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/592535"&gt;@jbauer&lt;/a&gt;&amp;nbsp;I'm able to reproduce the issue you are experiencing with a survey I published&amp;nbsp; with your XLS form. It seems like the error is reproduced when a repeat with relevant expression has a dynamic repeat count. For example, there is a repeat in your survey called "activity_prod". This repeat has a relevant expression "selected(${co2_activity_type},'Producer')" and the repeat count is determined by another question ("${num_prod}").&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Removing the calculation for the repeat_count and replacing it with a number resolves the issue but it may not be a viable workaround.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, removing the relevant expression for the begin repeat and adding it to the questions inside the repeat which also resolves the error might be a better workaround for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-09-06_10-17-09.png" style="width: 982px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50495i21BFC3CEEFB6FAD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-09-06_10-17-09.png" alt="2022-09-06_10-17-09.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend reaching out to Technichal Support to report this issue and log a defect against it if needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;MJ&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 14:17:48 GMT</pubDate>
    <dc:creator>MJBiazar</dc:creator>
    <dc:date>2022-09-06T14:17:48Z</dc:date>
    <item>
      <title>Repeat error: Failed to execute 'evaluate' on 'XPathEvaluator'</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1180330#M43069</link>
      <description>&lt;P&gt;Hello. I am developing a survey with several nested repeats, which have worked in the past. But since June 1, I repeatedly get the following error message whenever I try to access the survey through Survey123 (developed using Survey123 Connect XLS form):&lt;/P&gt;&lt;DIV class=""&gt;Error: Initializing form...&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;FormLogicError: Could not evaluate: selected( /model/instance[1]/Test_CO2_Matchmaker/activity_specific_questions/co2_activity_type ,'Other'), message: Failed to execute 'evaluate' on 'XPathEvaluator': parameter 2 is not of type 'Node'.&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;P&gt;I receive no error messages on Survey123 Connect when update the survey or publish. I have had temporary luck creating an exact copy of the survey in Survey123 Connect, publishing the copy, and&amp;nbsp;having it work on Survey123 (at least, until I try to make any changes, then the error reappears); but as of today, this work around no longer works. I attached the XLSForm for assistance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 17:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1180330#M43069</guid>
      <dc:creator>jbauer</dc:creator>
      <dc:date>2022-06-06T17:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat error: Failed to execute 'evaluate' on 'XPathEvaluator'</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1180360#M43071</link>
      <description>&lt;P&gt;My guess is your field names are too long or the name of that list names are really long.&lt;/P&gt;&lt;P&gt;Field names are limited to 31 chars and this one for example is 33&amp;nbsp;generated_group_surveydescription&amp;nbsp; It even yelled at me about it.&lt;/P&gt;&lt;P&gt;Your list names are crazy long and probably hitting a limit&amp;nbsp;&amp;nbsp;list_activity_specific_questions_co2_producer_activity_status&lt;/P&gt;&lt;P&gt;I would make the fields and csv shorter and start there.&amp;nbsp; Hope that helps.&lt;/P&gt;&lt;P&gt;I am also not sure you can put this kind of html in there now&amp;nbsp;&amp;lt;p&amp;gt;&amp;lt;span style="font-size: 16px;"&amp;gt; but really not sure on that one.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 18:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1180360#M43071</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-06-06T18:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat error: Failed to execute 'evaluate' on 'XPathEvaluator'</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1180363#M43073</link>
      <description>&lt;P&gt;Oh also a good chance it does not like these special chars here on the 2.&amp;nbsp; I would remove those as they will not store correctly anyway.&amp;nbsp; Good idea to never use special chars like this.&amp;nbsp; Happens a lot. The error is saying it is this question so good place to start.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1654541639045.png" style="width: 741px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42840i1A2C63E60806495B/image-dimensions/741x150?v=v2" width="741" height="150" role="button" title="DougBrowning_0-1654541639045.png" alt="DougBrowning_0-1654541639045.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 18:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1180363#M43073</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-06-06T18:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat error: Failed to execute 'evaluate' on 'XPathEvaluator'</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1180808#M43111</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;for the tips. I performed all&amp;nbsp;those actions, but didn't have any success in resolving the error. But, it seems changing the text within the "Relevant" from selected(${FIELD NAME},'LIST NAME') to if(selected(${FIELD NAME},'LIST NAME'),1,0) seems to have gotten rid of the error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 21:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1180808#M43111</guid>
      <dc:creator>JenniferBauer</dc:creator>
      <dc:date>2022-06-07T21:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat error: Failed to execute 'evaluate' on 'XPathEvaluator'</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1209861#M44655</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/592535"&gt;@jbauer&lt;/a&gt;&amp;nbsp;I'm able to reproduce the issue you are experiencing with a survey I published&amp;nbsp; with your XLS form. It seems like the error is reproduced when a repeat with relevant expression has a dynamic repeat count. For example, there is a repeat in your survey called "activity_prod". This repeat has a relevant expression "selected(${co2_activity_type},'Producer')" and the repeat count is determined by another question ("${num_prod}").&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Removing the calculation for the repeat_count and replacing it with a number resolves the issue but it may not be a viable workaround.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, removing the relevant expression for the begin repeat and adding it to the questions inside the repeat which also resolves the error might be a better workaround for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-09-06_10-17-09.png" style="width: 982px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50495i21BFC3CEEFB6FAD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-09-06_10-17-09.png" alt="2022-09-06_10-17-09.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend reaching out to Technichal Support to report this issue and log a defect against it if needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;MJ&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:17:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1209861#M44655</guid>
      <dc:creator>MJBiazar</dc:creator>
      <dc:date>2022-09-06T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat error: Failed to execute 'evaluate' on 'XPathEvaluator'</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1216960#M45031</link>
      <description>&lt;P&gt;Hello. I have noticed that I had the same error, I detected that it was caused by the combination of relevant and repeat_count in the same repeat question.&lt;/P&gt;&lt;P&gt;It seems that the relevant process cannot be combined with the number of repetitions in the same field when using it at the web.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 14:58:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/repeat-error-failed-to-execute-evaluate-on/m-p/1216960#M45031</guid>
      <dc:creator>LAG155</dc:creator>
      <dc:date>2022-09-28T14:58:40Z</dc:date>
    </item>
  </channel>
</rss>

