AnsweredAssumed Answered

FindExistingLocations silent failure with large feature layer?

Question asked by cgBobAhlrichs on Jun 27, 2018
Latest reply on Jun 29, 2018 by gsubbiah-esristaff


When using the ArcGIS API for Javascript class FindExistingLocations, large feature layers are causing the request to silently fail.
The FindExistingLocations API class takes an analysisLayer and list of featureLayers as paramters. These can be provided as URLs to feature services, or as Javascript objects containing the layer geometry. When providing the layers as Javascript objects, large objects see to cause the submitJob request to fail. When this happens, no events are fired by the API, and we never get a status update.
There is a CORS error in the console in Chrome and Edge (included below)
In IE 11 there is no CORS error, but the job-fail event is not fired, nor is the job-status event ever fired.
Is there a way to capture and handle this failure condition?
What limit are we hitting? Could it be the number of points, total feature layer size, total request body size, or something else?
CORS Error in Chrome and Edge:
has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost' is therefore not allowed access.