Skip to main content
Question

how to bypass filter on an esri feature service layer?

  • March 12, 2026
  • 3 replies
  • 80 views

tnarladni
Enthusiast
Forum|alt.badge.img+23

there is a feature service layer (i’m the owner) with a filter statement on it.

when I view the layer’s properties on AGO, I can see the filter. When I add it to an arcpro project, I can see the filter in the definition query. Looking at the REST end point (the one that has the <organization>.maps.gis.com address), i see all records. When I add the layer into FME either by AGOL reader or feature Service reader, I only see the filtered records and I don’t know how to get all the records. AI is telling me to put 1=1 in the where statement to bypass, but it didnt. 

3 replies

donalmateer
Safer
Forum|alt.badge.img+10

Hi ​@tnarladni,
Thanks for posting! Before jumping into solutions, it would help to understand a bit more about what you're trying to achieve.

A couple of quick questions:

  • Do you actually need the definition query to stay on the layer, or is it something that was set up previously and you're not sure if it's still needed?
  • What are you trying to do with the data in FME, process all records, the filtered records only, or both?

From my understanding the reason why 1=1 does not work is that FME passes your WHERE clause as a parameter to the ArcGIS Feature Service Query API, but the server applies the definition query server-side first — so FME only ever sees the already-filtered result.


tnarladni
Enthusiast
Forum|alt.badge.img+23
  • Author
  • Enthusiast
  • April 8, 2026

Hi ​@tnarladni,
Thanks for posting! Before jumping into solutions, it would help to understand a bit more about what you're trying to achieve.

A couple of quick questions:

  • Do you actually need the definition query to stay on the layer, or is it something that was set up previously and you're not sure if it's still needed?
  • What are you trying to do with the data in FME, process all records, the filtered records only, or both?

From my understanding the reason why 1=1 does not work is that FME passes your WHERE clause as a parameter to the ArcGIS Feature Service Query API, but the server applies the definition query server-side first — so FME only ever sees the already-filtered result.

Hi Donal. Thanks for looking at my question. Yes, I do need the definition query to stay on the layer. I need to process all the records and not just the filtered records. 


donalmateer
Safer
Forum|alt.badge.img+10

Hi ​@tnarladni, thanks for the response!
Since the definition query needs to stay on the layer, the best approach might be to bypass the AGOL/Feature Service reader entirely and use the HTTPCaller transformer to query the REST endpoint directly, this way the server-side filter has no effect on what FME receives.

Here's the general setup:

  1. Add an HTTPCaller and point it at your feature service query endpoint.
  2. Generate a token to authenticate: Generate Token (ArcGIS REST API).
  3. Parse the JSON response back into features using a JSONFragmenter

More info on the HTTPCaller here: HTTPCaller Documentation.

Let us know if the suggestions help!