I am using the ArcGIS REST Services Directory to run a query on my FeatureLayer and I'm having some trouble. In the documentation it says that the Where clause can take = and !=. The = works just fine and it returns the expected values, but the != is saying Unable to complete operation. Here is what I'm doing:
This works just fine, however this doesn't work:


!=is supported by every data source, it simply says that!=is supported within the API because it may be supported by some data sources used in a feature service. Even if a data source supports using!=, it won't be supported if standardized queries are set on the server. Overall,<>is part of the SQL-92 standard and will work all of the time whereas!=will work some of the time depending on ArcGIS Server configuration and back-end data source. – bixb0012 Mar 24 '22 at 01:45