I'm trying to query a feature layer and my query contains 116535 characters. I'm getting the error:
Exception: Unable to complete operation.
(Error Code: 400)
I suspect my query is too long, but what is the limit and is there a way to temporarily bypass it to make my query work?
This is a FeatureLayer published on ArcGIS Server 10.9 and I'm submitting my query using the arcgis python api:
myFL = arcgis.features.FeatureLayer(
url="my.host/arcgis/rest/services/MyService/FeatureServer/0")
SQL = "myID in (<long list of ids>)"
loc_query = myFL.query(where=SQL)