<?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: FormLogicError: Could not evaluate... in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/formlogicerror-could-not-evaluate/m-p/1226409#M45664</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/82823"&gt;@AmyRoust&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks to be the same issue outlined in&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzOTY5NA==" target="_self"&gt;BUG-000139694&lt;/A&gt;, if you separate the pulldata functions into their own calculate questions, then reference those calculations in the if() statement does that resolve the issue?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 21:00:23 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2022-10-27T21:00:23Z</dc:date>
    <item>
      <title>FormLogicError: Could not evaluate...</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/formlogicerror-could-not-evaluate/m-p/1226403#M45663</link>
      <description>&lt;P&gt;I'm working on a really complicated Survey123 Connect XLSForm and have hit a roadblock. Everything works until I introduce this question:&lt;/P&gt;&lt;P&gt;type: note&lt;/P&gt;&lt;P&gt;name: Ravg_before&lt;/P&gt;&lt;P&gt;label: Ravg Before&lt;/P&gt;&lt;P&gt;appearance: horizontal&lt;/P&gt;&lt;P&gt;calculation:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(pulldata('BMPMod_Chart','ChangeBefore','PracticeName',${practice})='None',pulldata(${LandType_Before},'Ravg','County',${county_bmp_location}),pulldata(${LandType_Before},'Ravg','County',${county_bmp_location})*pulldata('BMPMod_Chart','MultiplyBefore','PracticeName',${practice}))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I fill out the form inside Survey123 Connect, I get the correct result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="AmyRoust_0-1666903383993.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54664i116A041391CA09D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmyRoust_0-1666903383993.png" alt="AmyRoust_0-1666903383993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I publish the survey and open it in a web browser, I immediately get this error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="AmyRoust_1-1666903506350.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54665i6F4BC6F89236F654/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmyRoust_1-1666903506350.png" alt="AmyRoust_1-1666903506350.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I realize that this is really hard to troubleshoot without providing the XLSForm and the related media files that drive all of the lookup values.&amp;nbsp; I'm just hoping for some clues that might get me across the finish line without having to call tech support.&lt;/P&gt;&lt;P&gt;Things I've tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ensured that all column names in all CSV files in the media folder have no spaces or special characters.&lt;/LI&gt;&lt;LI&gt;Ensured that every record in every CSV in the media folder is fully populated (no null values/empty cells)&lt;/LI&gt;&lt;LI&gt;Renaming the two CSVs that have a - in their file name to remove the -&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have not removed the underscore from the CSV called BMPMod_Chart because I am successfully calling that CSV and returning values in earlier questions without error.&lt;/P&gt;&lt;P&gt;Any other ideas on what I can try? I don't know what the web browser is checking that the desktop app is not.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 20:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/formlogicerror-could-not-evaluate/m-p/1226403#M45663</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2022-10-27T20:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: FormLogicError: Could not evaluate...</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/formlogicerror-could-not-evaluate/m-p/1226409#M45664</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/82823"&gt;@AmyRoust&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks to be the same issue outlined in&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzOTY5NA==" target="_self"&gt;BUG-000139694&lt;/A&gt;, if you separate the pulldata functions into their own calculate questions, then reference those calculations in the if() statement does that resolve the issue?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 21:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/formlogicerror-could-not-evaluate/m-p/1226409#M45664</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2022-10-27T21:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: FormLogicError: Could not evaluate...</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/formlogicerror-could-not-evaluate/m-p/1226411#M45665</link>
      <description>&lt;P&gt;Oh my gosh, yes! Thank you so much! Breaking it apart fixed the problem. You are my hero!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 21:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/formlogicerror-could-not-evaluate/m-p/1226411#M45665</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2022-10-27T21:13:18Z</dc:date>
    </item>
  </channel>
</rss>

