<?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 Test execution error: Unknown Error. Verify test data. in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1585471#M10753</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create a feature set as the source for a table element, but my data expression gives the following error: 'Test execution error: Unknown Error. Verify test data.' I would greatly appreciate any help available. I'm very new to Arcade.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Arcade expression.PNG" style="width: 694px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125375i04B3124323C6C52B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Arcade expression.PNG" alt="Arcade expression.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 14:13:11 GMT</pubDate>
    <dc:creator>PlANNADMIN</dc:creator>
    <dc:date>2025-02-14T14:13:11Z</dc:date>
    <item>
      <title>Test execution error: Unknown Error. Verify test data.</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1585471#M10753</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create a feature set as the source for a table element, but my data expression gives the following error: 'Test execution error: Unknown Error. Verify test data.' I would greatly appreciate any help available. I'm very new to Arcade.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Arcade expression.PNG" style="width: 694px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125375i04B3124323C6C52B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Arcade expression.PNG" alt="Arcade expression.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 14:13:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1585471#M10753</guid>
      <dc:creator>PlANNADMIN</dc:creator>
      <dc:date>2025-02-14T14:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Test execution error: Unknown Error. Verify test data.</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1585491#M10754</link>
      <description>&lt;P&gt;Can you &lt;A href="https://community.esri.com/t5/community-help-documents/how-to-insert-code-in-your-post/ta-p/914552" target="_self"&gt;post this as code&lt;/A&gt; instead of an image? It's easier to do checking when we can copy the code to the Playground&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 14:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1585491#M10754</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-02-14T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Test execution error: Unknown Error. Verify test data.</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1585825#M10759</link>
      <description>&lt;P&gt;Thank you so much for responding. The code is below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var portal = Portal('https://www.arcgis.com/');
var fs = FeatureSetByPortalItem(
    portal,
    '7bd678181312462faebc8d1077f8fc3a',
    0,
    [
        'service'
    ],
    false
);

var fsDict = {
  'fields': [
    {'name': 'service_type', 'alias': 'Type of Service', 'type': 'esrifieldTypeString'},
    {'name': 'revenue', 'alias': 'Revenue', 'type': 'esrifieldTypeString'}
  ],
  'geometryType': 'esriGeometryNull',
  'features': []
};

var i = 0;

for (var f in fs) {
  var income = IIF(f['service'] == "reinstallation", 150, 200)

  fsDict.features [i++] = {
    'attributes': {
      'service_type': f.service,
      'revenue': income
    }
  }
}

Console(fsDict.features)
return FeatureSet(fsDict)&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 01:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1585825#M10759</guid>
      <dc:creator>PlANNADMIN</dc:creator>
      <dc:date>2025-02-16T01:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Test execution error: Unknown Error. Verify test data.</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1586091#M10763</link>
      <description>&lt;P&gt;Your error comes from lines 14 and 15, where you need "esriFieldTypeString" instead of "esrifieldTypeString". Case matters!&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var portal = Portal('https://www.arcgis.com/');
var fs = FeatureSetByPortalItem(
    portal,
    '7bd678181312462faebc8d1077f8fc3a',
    0,
    [
        'service'
    ],
    false
);

var fsDict = {
  'fields': [
    {'name': 'service_type', 'alias': 'Type of Service', 'type': 'esriFieldTypeString'},
    {'name': 'revenue', 'alias': 'Revenue', 'type': 'esriFieldTypeString'}
  ],
  'geometryType': 'esriGeometryNull',
  'features': []
};

var i = 0;

for (var f in fs) {
  var income = IIF(f['service'] == "reinstallation", 150, 200)

  fsDict.features [i++] = {
    'attributes': {
      'service_type': f.service,
      'revenue': income
    }
  }
}

Console(fsDict.features)
return FeatureSet(fsDict)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 17:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1586091#M10763</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-02-17T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Test execution error: Unknown Error. Verify test data.</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1586104#M10764</link>
      <description>&lt;P&gt;Thank you so much! It works perfectly now. I really appreciate your help.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 18:47:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/test-execution-error-unknown-error-verify-test/m-p/1586104#M10764</guid>
      <dc:creator>PlANNADMIN</dc:creator>
      <dc:date>2025-02-17T18:47:59Z</dc:date>
    </item>
  </channel>
</rss>

