<?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 Arcade Error:Test execution error: Cannot read properties of undefined (reading 'toString'). Verify test data. in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-error-test-execution-error-cannot-read/m-p/1689589#M68137</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have an arcade expression where I am pulling an attribute from a related record. I have normally used something like this for other data and pop ups and it has worked fine. For this current data I am working with, I got this error and I cannot figure out what this error means and what I can do to solve my problem and display my related record:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;var relFS = FeatureSetByRelationshipName($feature, "Project_Locations", ['Proj_Desc'], true)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;var relFeature = First(relFS);&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;if (!IsEmpty(relFeature)) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; return relFeature.Proj_Desc;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;} else {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; return "No project description available";&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;SPAN&gt;Test execution error: Cannot read properties of undefined (reading 'toString'). Verify test data.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 Mar 2026 04:42:27 GMT</pubDate>
    <dc:creator>SaraWazir</dc:creator>
    <dc:date>2026-03-10T04:42:27Z</dc:date>
    <item>
      <title>Arcade Error:Test execution error: Cannot read properties of undefined (reading 'toString'). Verify test data.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-error-test-execution-error-cannot-read/m-p/1689589#M68137</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have an arcade expression where I am pulling an attribute from a related record. I have normally used something like this for other data and pop ups and it has worked fine. For this current data I am working with, I got this error and I cannot figure out what this error means and what I can do to solve my problem and display my related record:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;var relFS = FeatureSetByRelationshipName($feature, "Project_Locations", ['Proj_Desc'], true)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;var relFeature = First(relFS);&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;if (!IsEmpty(relFeature)) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; return relFeature.Proj_Desc;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;} else {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; return "No project description available";&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;SPAN&gt;Test execution error: Cannot read properties of undefined (reading 'toString'). Verify test data.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Mar 2026 04:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-error-test-execution-error-cannot-read/m-p/1689589#M68137</guid>
      <dc:creator>SaraWazir</dc:creator>
      <dc:date>2026-03-10T04:42:27Z</dc:date>
    </item>
  </channel>
</rss>

