<?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: Field Maps Offline Map Arcade Count expression fails in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-count-expression/m-p/1634638#M11149</link>
    <description>&lt;P&gt;I took a look, it does work for existing features that are taken offline.&amp;nbsp; The count does not update as attachments are added or removed.&amp;nbsp; It only returns the count of existing attachments when one starts editing the feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also noticed It is not working for new features that are created whether online or offline.&amp;nbsp; &amp;nbsp;I see an error using the MapViewer while connected for calculating a field equal to&amp;nbsp; Count(attachment($feature))&amp;nbsp; &amp;nbsp; Potentially in the feature creation process the "attachment info" is not fully there until the new feature edit is finished?&lt;/P&gt;&lt;P&gt;One difference, MapViewer will let you create the feature (submit), when there is an Arcade error.&amp;nbsp; Field maps will not let you submit the feature with this error.&lt;/P&gt;&lt;P&gt;If you can log an issue with Tech Support for this, it will help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2025 17:03:56 GMT</pubDate>
    <dc:creator>MarkBockenhauer</dc:creator>
    <dc:date>2025-07-21T17:03:56Z</dc:date>
    <item>
      <title>Field Maps Offline Map Arcade Count expression fails</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-count-expression/m-p/1634519#M11146</link>
      <description>&lt;P&gt;I have a field that calculates the number of photos/attachments a point has in Field Maps. I was just notified of an error that is showing up, preventing users from recording data. My latitude and longitude arcade expressions however, seem to be working just fine? This only seems to be impacting offline maps.&lt;/P&gt;&lt;P&gt;The field is calculated and read only and the arcade script is&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Count(Attachments($feature))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-07-21 082304.png" style="width: 460px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136825i36A072821698CD83/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-07-21 082304.png" alt="Screenshot 2025-07-21 082304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-07-21 082259.png" style="width: 289px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136824iB7E3391DC7E241CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-07-21 082259.png" alt="Screenshot 2025-07-21 082259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image000001.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136826i4CF714FF8096CD3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image000001.jpg" alt="image000001.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 12:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-count-expression/m-p/1634519#M11146</guid>
      <dc:creator>luckachi</dc:creator>
      <dc:date>2025-07-21T12:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Offline Map Arcade Count expression fails</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-count-expression/m-p/1634522#M11147</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/416847"&gt;@luckachi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm correct, ArcGIS Field Maps uses the feature service to contact and read the attachments from the layer, which is more than likely what is causing your calculation to fail, since it's reaching out to the feature service through a request, it's failing as if it's online:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#attachments" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/featureset_functions/#attachments&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"Only applicable to features originating from a feature service" and "fetch" in types tell me that this requires some connectivity.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 12:37:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-count-expression/m-p/1634522#M11147</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-07-21T12:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Offline Map Arcade Count expression fails</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-count-expression/m-p/1634638#M11149</link>
      <description>&lt;P&gt;I took a look, it does work for existing features that are taken offline.&amp;nbsp; The count does not update as attachments are added or removed.&amp;nbsp; It only returns the count of existing attachments when one starts editing the feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also noticed It is not working for new features that are created whether online or offline.&amp;nbsp; &amp;nbsp;I see an error using the MapViewer while connected for calculating a field equal to&amp;nbsp; Count(attachment($feature))&amp;nbsp; &amp;nbsp; Potentially in the feature creation process the "attachment info" is not fully there until the new feature edit is finished?&lt;/P&gt;&lt;P&gt;One difference, MapViewer will let you create the feature (submit), when there is an Arcade error.&amp;nbsp; Field maps will not let you submit the feature with this error.&lt;/P&gt;&lt;P&gt;If you can log an issue with Tech Support for this, it will help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 17:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-count-expression/m-p/1634638#M11149</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2025-07-21T17:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Offline Map Arcade Count expression fails</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-count-expression/m-p/1634673#M11150</link>
      <description>&lt;P&gt;Right now I am unable to log an issue via Tech Support but I have an email out to one of our admins for assistance.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 17:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-offline-map-arcade-count-expression/m-p/1634673#M11150</guid>
      <dc:creator>luckachi</dc:creator>
      <dc:date>2025-07-21T17:57:43Z</dc:date>
    </item>
  </channel>
</rss>

