<?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: Data Expression unable to run Arcade Script Error in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-unable-to-run-arcade-script-error/m-p/1477848#M9647</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;Thank you that worked! I did have to get rid of the Text() function cause it seemed to be returning the number of characters. Once I did that it did give me my value that I wanted!&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 17:21:08 GMT</pubDate>
    <dc:creator>JaronJensen7</dc:creator>
    <dc:date>2024-05-23T17:21:08Z</dc:date>
    <item>
      <title>Data Expression unable to run Arcade Script Error</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-unable-to-run-arcade-script-error/m-p/1477779#M9642</link>
      <description>&lt;P&gt;I have a dashboard where I am inserting an indicator. My indicator is looking at a layer and is working fine. I want to edit my reference layer to combine some data from two different layers. I am using the data expression option to create some arcade code to return the value that I want. I have gotten it to work in the arcade editor, but when I save the code and try to make it my reference layer it says "Unable to execute Arcade Script."&amp;nbsp;&lt;/P&gt;&lt;P&gt;The layers that I am trying to reference are part of a layer group. But it seems to work fine when it is in the editor and grabs the right data.&lt;/P&gt;&lt;P&gt;Any ideas on what I can try?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaronJensen7_1-1716481128272.png" style="width: 789px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105153i68D21AAE0E3E56B3/image-dimensions/789x225?v=v2" width="789" height="225" role="button" title="JaronJensen7_1-1716481128272.png" alt="JaronJensen7_1-1716481128272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 16:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-unable-to-run-arcade-script-error/m-p/1477779#M9642</guid>
      <dc:creator>JaronJensen7</dc:creator>
      <dc:date>2024-05-23T16:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Expression unable to run Arcade Script Error</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-unable-to-run-arcade-script-error/m-p/1477805#M9645</link>
      <description>&lt;P&gt;A Data Expression needs to return a FeatureSet, not a variable. Replace line 11 with this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var theDict = { 
  'fields': [{ 'name': 'result', 'type': 'esriFieldTypeInteger'}], 
  'geometryType': '', 
  'features': [
    { 
      'attributes': { 
        'result': Text(Round(fiber_total),'#,####')
      }
    }
  ]
}; 

return FeatureSet(theDict); &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 May 2024 16:41:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-unable-to-run-arcade-script-error/m-p/1477805#M9645</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-05-23T16:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data Expression unable to run Arcade Script Error</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-unable-to-run-arcade-script-error/m-p/1477848#M9647</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;Thank you that worked! I did have to get rid of the Text() function cause it seemed to be returning the number of characters. Once I did that it did give me my value that I wanted!&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 17:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-unable-to-run-arcade-script-error/m-p/1477848#M9647</guid>
      <dc:creator>JaronJensen7</dc:creator>
      <dc:date>2024-05-23T17:21:08Z</dc:date>
    </item>
  </channel>
</rss>

