I have an EB app hosted on ArcGIS Online that includes the Add Data widget. The documentation for this widget says that it can be used to add KMZ files to the map, but I can't get that to work. I've tried with two KMZ files and one KML file. These files are between 4 and 12 KB in size and only contain a couple of polygons. In each case, I get an error that says, " The File [filename] cannot be successfully uploaded." I am able to add shapefiles to the map. Is there a trick to this?
Hello @HollyTorpey_LSA , this article seems to reflect the message you are seeing.
Please can you check whether your "enableKmlService" setting is set to "true" or not
Hi @ChrisUnderwood, thanks for this suggestion. My EB application is hosted on ArcGIS Online, not Enterprise, so I'm not sure this applies in my case. Is there a similar option somewhere in my ArcGIS Online organizational settings?
My apologies, no that parameter is not applicable to ArcGIS Online.
There are some KML Limitations listed here.
https://doc.arcgis.com/en/arcgis-online/reference/kml.htm#KML
If those don't seem to be the problem, do you have a sample KML that you could post here ?
Hi @HollyTorpey_LSA,
KMZ files are not supported in the ArcGIS Experience Builder Add Data widget, so this is why those aren't working.
In terms of the KMLs, are you able to add them to the Map Viewer successfully? Also, what is your map projection?
All the best,
Clio