<?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: Table won't load in Field Maps Arcade -- error Code = 3072 in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1413509#M8404</link>
    <description>&lt;P&gt;My only guess then is the AND in the filter as I can find no examples of this.&amp;nbsp; Do a test without the and just to see.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 14:22:44 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2024-04-22T14:22:44Z</dc:date>
    <item>
      <title>Table won't load in Field Maps Arcade -- error Code = 3072</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1410714#M8369</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cannot load table according to Field Maps app log, I'm pretty sure my code is fine.. what am I missing?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I can see the table in the Arcade editor in FM Designer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;"Can only call this method on a loaded table...............Table () failed to load with error: Error Domain=NSCocoaErrorDomain Code=3072 "User canceled error"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (!IsEmpty($feature.scientificname) &amp;amp;&amp;amp; !IsEmpty($feature.survey_area)) {

  var sciName = $feature.scientificname
  var surveyArea = $feature.survey_area

  var priorityTable = FeatureSetById($map, "my_table_ID_#");
  var filtered = Filter(priorityTable, "botanical_name = @sciName AND zone = @surveyArea");
  if (!IsEmpty(filtered)) {
    return First(filtered).apa_priority
  } else {
    return "no cat found"
  }

} else {
  return "uncat"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 23:53:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1410714#M8369</guid>
      <dc:creator>nate0102</dc:creator>
      <dc:date>2024-04-16T23:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Table won't load in Field Maps Arcade -- error Code = 3072</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1410906#M8376</link>
      <description>&lt;P&gt;Have you tried FeatureSetByName instead?&amp;nbsp; It can get picky.&amp;nbsp; Also the table is in the map right?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 13:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1410906#M8376</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-04-17T13:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table won't load in Field Maps Arcade -- error Code = 3072</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1411914#M8399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;thanks for your reply.&lt;/P&gt;&lt;P&gt;Yes, I have tried&amp;nbsp;&lt;SPAN&gt;FeatureSetByName, and it definitely is in the Web Map, I can see it in the arcade profile variables, as well as in the layers/tables list in Field Maps Designer. I've also been able to replicate the code in the Arcade Playground by making the table shared public. Still no luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The table is not part of the&amp;nbsp;&lt;SPAN&gt;Feature Layer (hosted), but is part of the Web Map, that's the only other thing I can think of now.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 01:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1411914#M8399</guid>
      <dc:creator>nate0102</dc:creator>
      <dc:date>2024-04-19T01:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table won't load in Field Maps Arcade -- error Code = 3072</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1413509#M8404</link>
      <description>&lt;P&gt;My only guess then is the AND in the filter as I can find no examples of this.&amp;nbsp; Do a test without the and just to see.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 14:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1413509#M8404</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-04-22T14:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table won't load in Field Maps Arcade -- error Code = 3072</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1416408#M8479</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your suggestions!&lt;/P&gt;&lt;P&gt;ESRI support figured out a work around:&lt;/P&gt;&lt;P&gt;Move the First() to line 7 instead of 9 like so:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var filtered = First(Filter(priorityTable, "botanical_name = @sciName AND zone = @surveyArea"));&lt;/LI-CODE&gt;&lt;P&gt;They unfortunately couldn't figure out why this code worked as opposed to the other code.&lt;/P&gt;&lt;P&gt;Hope this helps someone in the future...&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 09:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/table-won-t-load-in-field-maps-arcade-error-code/m-p/1416408#M8479</guid>
      <dc:creator>nate0102</dc:creator>
      <dc:date>2024-04-29T09:47:33Z</dc:date>
    </item>
  </channel>
</rss>

