<?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: Arcade expression error in Watch Center Velocity Analytic in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-error-in-watch-center-velocity/m-p/1600032#M64180</link>
    <description>&lt;P&gt;Thanks for the help! That did the trick. I'm new to using arcade and really appreciate the assistance&lt;/P&gt;</description>
    <pubDate>Thu, 27 Mar 2025 17:38:50 GMT</pubDate>
    <dc:creator>Bryan_Wade</dc:creator>
    <dc:date>2025-03-27T17:38:50Z</dc:date>
    <item>
      <title>Arcade expression error in Watch Center Velocity Analytic</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-error-in-watch-center-velocity/m-p/1600016#M64177</link>
      <description>&lt;P&gt;I am working on adding a River Gauge layer to the Watch Center Solution. I have my feed completed and am working on mapping the fields. I am using the Hurricane feed and hurricane fields to help me with the arcade expressions.&lt;/P&gt;&lt;P&gt;For the alert type field I am using this arcade:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;status&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;'action'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Action Stage'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;status&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;'minor'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Minor Flood Stage'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;status&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;'moderate'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Moderate Flood Stage'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;status&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;'major'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Major Flood Stage'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This mimics the alerttype field used with the hurricane feed:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When(&lt;/P&gt;&lt;P&gt;&amp;nbsp; $feature["STORMTYPE"] == 'TD', 'Tropical Depression',&lt;/P&gt;&lt;P&gt;&amp;nbsp; $feature["STORMTYPE"] == 'TS', 'Tropical Storm',&lt;/P&gt;&lt;P&gt;&amp;nbsp; $feature["STORMTYPE"] == 'HU', 'Hurricane',&lt;/P&gt;&lt;P&gt;&amp;nbsp; $feature["STORMTYPE"] == 'DB', 'Disturbance',&lt;/P&gt;&lt;P&gt;&amp;nbsp; $feature["STORMTYPE"] == 'STD', 'Subtropical Depression',&lt;/P&gt;&lt;P&gt;&amp;nbsp; $feature["STORMTYPE"] == 'SS', 'Subtropical System',&lt;/P&gt;&lt;P&gt;&amp;nbsp; $feature["STORMTYPE"] == 'STS', 'Subtropical System',&lt;/P&gt;&lt;P&gt;&amp;nbsp; $feature["STORMTYPE"] == 'WV', 'Tropical Wave',&lt;/P&gt;&lt;P&gt;&amp;nbsp; $feature["STORMTYPE"] == 'EX', 'Extratropical Storm',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Typhoon')&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;I keep getting this error when I test the arcade expression - T&lt;SPAN&gt;est execution error: Compilation error - Line : 1, 0: Call with wrong number of parameters. Verify test data.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I get this error on the velocity side -&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bryan_Wade_0-1743095718362.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128847iF5E6314C32540C1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bryan_Wade_0-1743095718362.png" alt="Bryan_Wade_0-1743095718362.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;SPAN&gt;I would appreciate any thoughts or assistance as I try to figure out&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Mar 2025 17:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-error-in-watch-center-velocity/m-p/1600016#M64177</guid>
      <dc:creator>Bryan_Wade</dc:creator>
      <dc:date>2025-03-27T17:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression error in Watch Center Velocity Analytic</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-error-in-watch-center-velocity/m-p/1600028#M64178</link>
      <description>&lt;P&gt;The first When statement is missing the DefaultValue&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;When(
  $feature.status == 'action', 'Action Stage',
  $feature.status == 'minor', 'Minor Flood Stage',
  $feature.status == 'moderate', 'Moderate Flood Stage',
  $feature.status == 'major', 'Major Flood Stage',
  'N/A')&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Mar 2025 17:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-error-in-watch-center-velocity/m-p/1600028#M64178</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-03-27T17:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression error in Watch Center Velocity Analytic</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-error-in-watch-center-velocity/m-p/1600032#M64180</link>
      <description>&lt;P&gt;Thanks for the help! That did the trick. I'm new to using arcade and really appreciate the assistance&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 17:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-error-in-watch-center-velocity/m-p/1600032#M64180</guid>
      <dc:creator>Bryan_Wade</dc:creator>
      <dc:date>2025-03-27T17:38:50Z</dc:date>
    </item>
  </channel>
</rss>

