I am having an issue with the definition query (and label class expression) of my roads features.
Background: The roads are created and edited in ArcMap 10.8.x on ArcGIS Server 10.6.1.9270 and exported to a 10.8.x server for use in ArcGIS Pro. I tested this in Pro 3.1 and 3.2. I also exported the feature class to a file geodatabase and had the same results.
The Class field contains NULL, empty, EMER, H20, CTY, etc.
If I do any SQL Query on the Class field I have to include CLASS IS NULL in the query for those features to appear.
For example: CLASS IS NULL Or CLASS NOT IN ('EMER', 'H2O') instead of CLASS NOT IN ('EMER', 'H2O')
We plan on populating that field with LOCAL into the future, but if anyone else is having an issue with definition queries not working as expected, check your fields for NULL values. I have included a layer package so you can test it out yourself if you would like. I'm assuming a bug? I'll submit a bug report.