<?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 Script Error: Object Not Found in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405145#M81344</link>
    <description>&lt;P&gt;Is it a featureclass in a file geodatabase? or a shapefile in a folder?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 12:55:06 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-04-03T12:55:06Z</dc:date>
    <item>
      <title>Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405086#M81333</link>
      <description>&lt;P&gt;Any help with this greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a script using the Calculate Field tool (a script by &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// load the polygons&lt;BR /&gt;var polygons = FeaturesetByName($datastore, Counties)&lt;/P&gt;&lt;P&gt;// get the polygon that intersects the current point&lt;BR /&gt;var i_polygon = First(Intersects(polygons, $feature))&lt;/P&gt;&lt;P&gt;// return a default value if no polygon is intersecting&lt;BR /&gt;if(i_polygon == null) { return null }&lt;/P&gt;&lt;P&gt;// return the name of the Polygon&lt;BR /&gt;return i_polygon.COUNTY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has previously worked for me but when I try it with a different polygon layer (Counties) I get an error code:&amp;nbsp; ERROR 002717: Invalid Arcade expression, Arcade error: Object not found counties, Script line: 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The polygon layer is in a local folder and is definitely in the Contents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 09:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405086#M81333</guid>
      <dc:creator>PaulGardiner</dc:creator>
      <dc:date>2024-04-03T09:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405105#M81338</link>
      <description>&lt;P&gt;Since Counties is a name, it needs to be in quotes.&lt;/P&gt;&lt;PRE&gt;var polygons = FeaturesetByName($datastore, 'Counties')&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Apr 2024 11:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405105#M81338</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-04-03T11:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405140#M81343</link>
      <description>&lt;P&gt;Thanks for the reply. Regardless of whether I use Counties, 'Counties', or "Counties" I still get the same error message (&lt;SPAN&gt;ERROR 002717).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've also tried changing the polygon layer name to CountyBoundary and still get the same error message.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 12:48:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405140#M81343</guid>
      <dc:creator>PaulGardiner</dc:creator>
      <dc:date>2024-04-03T12:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405145#M81344</link>
      <description>&lt;P&gt;Is it a featureclass in a file geodatabase? or a shapefile in a folder?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 12:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405145#M81344</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-04-03T12:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405153#M81348</link>
      <description>&lt;P&gt;It's a shapefile in a folder.&lt;/P&gt;&lt;P&gt;To add to the initial query... An mxd in which the script previously worked is now throwing the same error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 13:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405153#M81348</guid>
      <dc:creator>PaulGardiner</dc:creator>
      <dc:date>2024-04-03T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405178#M81349</link>
      <description>&lt;P&gt;So, referencing the &lt;STRONG&gt;$datastore&lt;/STRONG&gt; assumes the other layer is coming from the same data source. Are these layers published in the same service, or if offline, coming from the same database?&lt;/P&gt;&lt;P&gt;Try referencing &lt;STRONG&gt;$map &lt;/STRONG&gt;instead of the datastore.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 13:45:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405178#M81349</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-04-03T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405189#M81350</link>
      <description>&lt;P&gt;Thanks Josh. Layers are all held locally and coming from the same folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I reference &lt;STRONG&gt;$map&lt;/STRONG&gt; I get the following error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 002717: Invalid Arcade expression, Arcade error: Object not found $map, Script line: 2&lt;/P&gt;&lt;P&gt;There have been no updates to the laptop or ArcPro since it previously worked.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 14:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405189#M81350</guid>
      <dc:creator>PaulGardiner</dc:creator>
      <dc:date>2024-04-03T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405193#M81352</link>
      <description>&lt;P&gt;Ah yeah, Pro doesn't like the $map object. That's for web maps only, I guess.&lt;/P&gt;&lt;P&gt;No updates to the software, but what about the data? I can't imagine the expression working at all with shapefiles in a folder. Were they downloaded from a web service, or copied from a database?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 14:09:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405193#M81352</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-04-03T14:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405228#M81358</link>
      <description>&lt;P&gt;Weirdly enough it worked previously with shapefile data from a local folder.&lt;/P&gt;&lt;P&gt;Point data was exported from a SQL database. Polygon data was downloaded from a webservice. Both have been worked on locally prior to running the script.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 14:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1405228#M81358</guid>
      <dc:creator>PaulGardiner</dc:creator>
      <dc:date>2024-04-03T14:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Script Error: Object Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1683687#M101831</link>
      <description>&lt;P&gt;Ever figure this out?&amp;nbsp; All of our maps all of a sudden broke in 3.5 now too on this exact same issue&amp;nbsp;&amp;nbsp;Object not found $datastore&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 15:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-script-error-object-not-found/m-p/1683687#M101831</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2026-02-11T15:48:22Z</dc:date>
    </item>
  </channel>
</rss>

