Skip to main content
Question

Writing fme_aggregate as polyline to Arcgis online

  • December 17, 2025
  • 4 replies
  • 125 views

sveinj
Contributor
Forum|alt.badge.img+2

When using the new ESRI ArcGis Feature Service I get this error when trying to write fme_aggregate geometry to AGOL: Python Exception <FMEException>: FMEException: 1: <class 'fmeobjects.FMEAggregate'> cannot be converted to esriGeometryPolyline

With the old writer I did not have this problem. Is there some solution for this? Deaggregating is not the solution i neede. The multi part geometry is only contaning lines. I have tried GeometryCoercer, but without effect. 

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+64

Be aware that there are a lot of possible combinations of aggregates and ESRI only accepts homogenous single level aggregates.

See https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/

I suspect this is the issue. An aggregate of multiple geometry types (points and lines) or a aggregate of multiple levels (aggregate in an aggregate).


sveinj
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • December 18, 2025

I use GeometryFilter before Aggregator so the aggregate is only containing lines.

 


evieatsafe
Safer
  • Safer
  • December 23, 2025

Hi ​@sveinj to confirm you said this used to work in the previous writer, what version were you using and what version are you using now that gets this error? 
I did some quick tests without the error, but I might not use the same version. 
Is there anything else about this data other than the simple line aggregates? 


sveinj
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • January 13, 2026

 

Problem solved: Some of the lines in my dataset were aggregates inside aggregates. Also, I changed the layer parameter in FeatureWriter to UPSERT instead of INSERT for writing the aggregates/multilines to AGOL. I'm not sure why.