<?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: Export to CSV broken when using Arcade Attribute Expression in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/export-to-csv-broken-when-using-arcade-attribute/m-p/1264358#M50672</link>
    <description>&lt;P&gt;Have you tried just using the geometry attributes of the feature?&amp;nbsp; Is the buffer doing anything here?&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;var lat = geometry($feature).y&lt;/P&gt;&lt;P&gt;var lon = geometry($feature).x&lt;/P&gt;</description>
    <pubDate>Sun, 05 Mar 2023 23:18:55 GMT</pubDate>
    <dc:creator>DavidGrafton_BadElf</dc:creator>
    <dc:date>2023-03-05T23:18:55Z</dc:date>
    <item>
      <title>Export to CSV broken when using Arcade Attribute Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-to-csv-broken-when-using-arcade-attribute/m-p/1264354#M50671</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a web app utilizing the "Export to CSV" functionality in the &lt;EM&gt;Attribute Table&amp;nbsp;&lt;/EM&gt;widget. I have insured this is checked-on in the widget settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="suburbanMapper_0-1678049648151.png" style="width: 191px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64374i06052A2E61E9DB00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="suburbanMapper_0-1678049648151.png" alt="suburbanMapper_0-1678049648151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am also using Arcade Attribute Expressions to calculate some fields in the pop-up that will also be available in the attribute table and subsequent CSV. This works as expected until I add the expressions below. Then the export to CSV freezes and never completes. The expressions buffer a linear feature and return the lat/long of the centroid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Latitude&lt;BR /&gt;var PatchBuffer = Buffer($feature, 10)&lt;BR /&gt;var PatchCentroid = Centroid(PatchBuffer)&lt;BR /&gt;return round(PatchCentroid.Y, 6))&lt;/P&gt;&lt;P&gt;Longitude&lt;BR /&gt;var PatchBuffer = Buffer($feature, 10)&lt;BR /&gt;var PatchCentroid = Centroid(PatchBuffer)&lt;BR /&gt;return round(PatchCentroid.X, 6)&lt;/P&gt;&lt;P&gt;Attibute expressions are being leveraged for a number of other fields and these are exporting as expected. The exports fail when the above expressions are added.&lt;/P&gt;&lt;P&gt;I have isolated the problem but am a little lost on how to resolve it. Any ideas are welcome.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 21:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-to-csv-broken-when-using-arcade-attribute/m-p/1264354#M50671</guid>
      <dc:creator>suburbanMapper</dc:creator>
      <dc:date>2023-03-05T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CSV broken when using Arcade Attribute Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-to-csv-broken-when-using-arcade-attribute/m-p/1264358#M50672</link>
      <description>&lt;P&gt;Have you tried just using the geometry attributes of the feature?&amp;nbsp; Is the buffer doing anything here?&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;var lat = geometry($feature).y&lt;/P&gt;&lt;P&gt;var lon = geometry($feature).x&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 23:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-to-csv-broken-when-using-arcade-attribute/m-p/1264358#M50672</guid>
      <dc:creator>DavidGrafton_BadElf</dc:creator>
      <dc:date>2023-03-05T23:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CSV broken when using Arcade Attribute Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-to-csv-broken-when-using-arcade-attribute/m-p/1264539#M50687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The features are linear, so they do not have an explicit X/Y available.&lt;/P&gt;&lt;P&gt;The buffer is creating a polygon to get the centroid lat/long.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears this is a known bug, BUG-000131959. I was hopeful someone had a workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 15:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-to-csv-broken-when-using-arcade-attribute/m-p/1264539#M50687</guid>
      <dc:creator>suburbanMapper</dc:creator>
      <dc:date>2023-03-06T15:51:31Z</dc:date>
    </item>
  </channel>
</rss>

