Error: Unable to load KML: File not found. Wrong url or out of memory.

394
2
02-25-2021 03:17 PM
SPDev
by
New Contributor

JS API 3.26

I have a prototype site at: http://www.jamesmjones.com/geo/geocode324.html that loads multiple kml/kmz files successfully.   But one of these files,  http://jamesmjones.com/geo/kml/Empowerment_Zones_and_Enterprise_Communities.kml indicates an error: Error: Unable to load KML: File not found. Wrong url or out of memory.   The file is definitely there and available to all, so it must be a memory issue?

ALL of the kml/kmz files are publicly accessible via URL, and all work except for this one.   It is larger than the others, at 16,000k bytes.  Could it be a size issue?

Thanks for any feedback.

0 Kudos
2 Replies
JeffK
by MVP Regular Contributor
MVP Regular Contributor

I clicked the url and it asked to download so its there for sure...came in at 16.7MB. Until someone comes in with knowledge of a size limit, I'd take a look at the size of the next closest kml that works and remove as much data from a copy of this kml until it is at that size. Then try it again and see what happens. 

SPDev
by
New Contributor

I split the kml file into two parts and they both worked individually.   Then I converted the original kml file into a 4MB kmz file and it failed with the same error.  So it seems that there is a hard limit on placemarks or polygons unfortunately.   And it doesn't seem to be a very high limit based on the failure of a 16MB file.   

0 Kudos