Unbound SOQL statement

Overview

Salesforce limits the maximum number of rows that a SOQL query can return to 50,000 records. When this number is exceeded, a runtime exception is thrown. As a best practice, developers should always use either a WHERE or a LIMIT clause to cap the maximum number of results.

Business Impact

Increased system downtime and inaccessibility, leading to decreased customer satisfaction and operational inefficiency.

Resources

Very Frequent

Incidence

How common is this issue?
51%22%
arrow down29%
lower

Exposure

How long do organizations remain exposed before fixing the problem?
2 years7 months
arrow down70%
shorter
BenchmarkWith Clayton

Frameworks

TrustediconReliableiconScalabilityiconData Volumeicon