Skip to content
Bug Barometer
All issues
Solution Deployed

Field Service / Scheduling & Optimization

SOQL query return records with null values when using Operand 0 condition in where clause predicate

Summary

Running a SOQL query using an Operand < 0 OR Operand > 0 condition in the where clause is also returning null and blank values.

Example Query:
SELECT Id, TestNumber__c FROM Contact WHERE TestNumber__c > 0 OR TestNumber__c < 0

- Actual Result
Running the SOQL query is also returning all records where the filter field value is null or blank.

- Expected Result
Returns all records where the filter field value is > 0 or < 0 which should not include null/blank values.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Solution Deployed with 1 report

    Nov 30, 2026

SOQL query return records with null values when using Operand 0 condition in where clause predicate · Bug Barometer