<?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: Calculate - Mismatched brackets error in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077646#M35813</link>
    <description>&lt;P&gt;One of the problems with complex formulas in Survey123 is that it can often be easy to lose track of your formula. It might help to write it out in an IDE first to keep things straight.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;1 / (
  1 + (
    pow(
      2.718, (
        10 * (
          ${InletPerchLow)-0.5
        )
      )
    )
  )
 &amp;lt;------ missing bracket&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Writing out your expression as you have it written, it would appear you're missing a single ')' at the end.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2021 01:54:25 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-07-12T01:54:25Z</dc:date>
    <item>
      <title>Calculate - Mismatched brackets error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077645#M35812</link>
      <description>&lt;P&gt;I have a pretty complicated self scoring survey123 form, and I'm getting a mismatched brackets error for an equation that seems to not have mismatched brackets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;1/(1+(pow(2.718,(10*(${InletPerchLow}-0.5))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I change to the following, I get an unexpected beginning of path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;1/(1+pow((2.718,(10*(${InletPerchLow}-0.5)))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be great!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 01:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077645#M35812</guid>
      <dc:creator>KathleenHoenke</dc:creator>
      <dc:date>2021-07-12T01:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - Mismatched brackets error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077646#M35813</link>
      <description>&lt;P&gt;One of the problems with complex formulas in Survey123 is that it can often be easy to lose track of your formula. It might help to write it out in an IDE first to keep things straight.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;1 / (
  1 + (
    pow(
      2.718, (
        10 * (
          ${InletPerchLow)-0.5
        )
      )
    )
  )
 &amp;lt;------ missing bracket&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Writing out your expression as you have it written, it would appear you're missing a single ')' at the end.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 01:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077646#M35813</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-07-12T01:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - Mismatched brackets error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077647#M35814</link>
      <description>&lt;P&gt;Thank you! When I add one on the end, then I receive the error:&amp;nbsp; Unexpected beginning of Path in expression&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 01:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077647#M35814</guid>
      <dc:creator>KathleenHoenke</dc:creator>
      <dc:date>2021-07-12T01:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - Mismatched brackets error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077651#M35815</link>
      <description>&lt;P&gt;I broke it out step by step, and it appears that it's the "1 / " that is the problem. Instead, try using this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;pow((1+pow((2.718,(10*(${InletPerchLow}-0.5))))), -1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's mathematically equivalent, but Survey123 seems to not have a problem with doing it this way.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1626058570928.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18191iDB9B08466755C208/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1626058570928.png" alt="jcarlson_1-1626058570928.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 02:56:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077651#M35815</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-07-12T02:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - Mismatched brackets error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077770#M35828</link>
      <description>&lt;P&gt;Thank you! It appears that division has to be represented by "div" in the XLS form. I changed it to div and added the bracket you suggested and it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 13:21:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-mismatched-brackets-error/m-p/1077770#M35828</guid>
      <dc:creator>KathleenHoenke</dc:creator>
      <dc:date>2021-07-12T13:21:23Z</dc:date>
    </item>
  </channel>
</rss>

