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

Problem

When using the ArcGIS API for Javascript class FindExistingLocations, large feature layers are causing the request to silently fail.
 
Description
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.
 
Symptoms
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.
 
Questions
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?
Screenshots
CORS Error in Chrome and Edge:
to
message=You+do+not+have+permissions+to+use+this+resource.
&redirect=%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer%2Fexts%2FEstimate%2FFindExistingLocations' 
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.

Outcomes