HI Brains Trust. I'm having some trouble with a feature layer query. I can't seem to find answers anywhere.
Simply put, I have a feature service URL (from ArcGIS Online) and I'm trying to get a list of features filtered to exclude rows with a particular value in the "inspection_number" field.
Below is my code - what am I doing wrong? I keep getting Error Code: 400 - 'where' parameter is invalid
fs1_features = fs1_layer.query(where='inspection_number != "Ad-hoc Inspection"', out_fields=['objectid', 'globalid', 'date_of_inspection', 'plantation', 'years_planted', 'username', 'inspection_number'], return_geometry=False).features
I've successfully made it work using an objectid value e.g. fs1_features = fs1_layer.query(where='inspection_number > 1000') but can't make it work with a text value.