Using the "is not" operator when filtering out certain values in a choice or reference fields field (for example, subcategory on incident), results in subcategory with empty value being filtered out along with all records that fit the condition.


Steps to Reproduce


  1. Navigate to Incident > Open.
  2. Click the menu icon .
  3. Select Group by > Category.
  4. Check the results.
  5. Expand the filter.
  6. Add condition [Category] [is not] [Database].
  7. Check results.
    Notice the Database category and the empty results were filtered out.

    See also use case in PRB659408/KB0680079


This is expected behaviour for modern databases such as MySQL, SQL Server, and Oracle. The way the "not equal to" operator is behaving in the SN platform is congruent with standards-compliant SQL dialect.
Additional information on the SQL operator can be found in the stackoverflow article Not equal <> != operator on NULL  
The query will need to have two conditions in OR: <field> is not <value> OR <field> is empty.


Related Problem: PRB688991

Seen In

Helsinki Patch 1

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-07-01 12:10:39