Hi all,
I have a web app utilizing the "Export to CSV" functionality in the Attribute Table widget. I have insured this is checked-on in the widget settings.

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.
Latitude
var PatchBuffer = Buffer($feature, 10)
var PatchCentroid = Centroid(PatchBuffer)
return round(PatchCentroid.Y, 6))
Longitude
var PatchBuffer = Buffer($feature, 10)
var PatchCentroid = Centroid(PatchBuffer)
return round(PatchCentroid.X, 6)
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.
I have isolated the problem but am a little lost on how to resolve it. Any ideas are welcome.