home Home build Tools bug_report Errors menu_book Guides lightbulb Tips smart_toy Prompts extension Extensions folder_open Resources info About
search
search
Query Syntax

Aggregate Query Does Not Support queryMore()

Aggregate queries don't support pagination with queryMore(). Use LIMIT and OFFSET instead.

Read Solution arrow_forward
Query Syntax

Aggregate Query Too Many Rows For Loop

Aggregate queries with for-loops exceed 2,000 row limits. Use LIMIT and OFFSET pagination.

Read Solution arrow_forward
Governor Limit

Apex CPU Time Limit Exceeded

Synchronous limit is 10,000ms, async is 60,000ms. Optimize loops, queries, and logic.

Read Solution arrow_forward
Governor Limit

Apex Heap Size Too Large

Synchronous heap limit is 6MB, async is 12MB. Reduce collections and use transient variables.

Read Solution arrow_forward
Deployment

Code Coverage Below 75%

Production deployments require 75% overall test coverage. Improve your test classes.

Read Solution arrow_forward
DML Error

FIELD_CUSTOM_VALIDATION_EXCEPTION

A validation rule is blocking the DML operation. Debug field values against validation criteria.

Read Solution arrow_forward
Syntax Error

Field Not Relationship Includes

Cannot use relationship traversal on a non-relationship field in your SOQL query.

Read Solution arrow_forward
DML Error

Insufficient Access / Cross Reference Entity

Permission, sharing, or ownership issues preventing record creation or updates.

Read Solution arrow_forward
Query Syntax

Invalid Cross Join Query

Cross joins are not permitted in SOQL. Use supported relationship traversal patterns.

Read Solution arrow_forward
Syntax Error

Invalid Date Format

Date values must be formatted as YYYY-MM-DD in SOQL queries.

Read Solution arrow_forward
Query Syntax

Invalid Query Filter Operator

The SOQL operator used is not valid for this field type. Check operator compatibility.

Read Solution arrow_forward
Syntax Error

Invalid Replication Date

The replication date value is invalid. Ensure date format and value are correct.

Read Solution arrow_forward
Syntax Error

Invalid Type SObject

Referenced SObject type doesn't exist in your org. Check the spelling and API names.

Read Solution arrow_forward
Runtime Error

List Has No Rows

Accessed a list element without checking if it contains data. Always verify list size.

Read Solution arrow_forward
Runtime Error

List Index Out Of Bounds

Attempted to access a list index that doesn't exist. Verify index is within range.

Read Solution arrow_forward
Query Syntax

Malformed Query Unexpected Token

SOQL syntax error detected. Check brackets, quotes, commas, and reserved keywords.

Read Solution arrow_forward
Runtime Error

Math Exception Divide By Zero

Cannot divide by zero. Always check divisor values before arithmetic operations.

Read Solution arrow_forward
Query Syntax

MAX/MIN Not Supported With Rollup

Cannot combine MAX or MIN aggregate functions with rollup fields. Use separate queries.

Read Solution arrow_forward
Governor Limit

Maximum Trigger Depth Exceeded

Recursive trigger firing exceeds 16-depth limit. Implement recursion guards or batch processes.

Read Solution arrow_forward
Query Syntax

No Such Column

Field doesn't exist on the SObject. Verify field API name spelling and permissions.

Read Solution arrow_forward
Query Syntax

Non-Selective Query Over 200k Rows

Query returns too many rows without selective filters. Add indexed field conditions.

Read Solution arrow_forward
Query Syntax

Non-Selective Query

Query lacks selective filters or indexed fields. Add WHERE conditions on indexed fields.

Read Solution arrow_forward
Runtime Error

Null Pointer Exception

Attempted operation on a null object reference. Always validate objects exist before access.

Read Solution arrow_forward
Query Syntax

Only Variable References Allowed

Bind variables must be referenced variables only. Cannot use expressions or method calls.

Read Solution arrow_forward
Query Syntax

Query Timeout

Query execution exceeded time limit. Optimize with filters, indexes, or pagination.

Read Solution arrow_forward
Governor Limit

Request Limit Exceeded

API request count exceeds org limits. Implement request throttling and batching strategies.

Read Solution arrow_forward
Query Syntax

Semijoins Only In WHERE Clause

Semijoins using IN with subqueries are only allowed in WHERE clauses, not SELECT.

Read Solution arrow_forward
Runtime Error

SObject Field Not Queried

Field wasn't included in the query. Add it to SELECT clause before accessing.

Read Solution arrow_forward
Query Syntax

SOQL Query No Filter Warning

Query lacks filters on indexed fields. Add WHERE conditions to improve performance.

Read Solution arrow_forward
Governor Limit

Too Many Aggregate Queries 301

Aggregate query limit exceeded. Combine aggregate queries or use Batch Apex.

Read Solution arrow_forward
Governor Limit

Too Many Callouts 101

Exceeded 100 callout limit per transaction. Batch requests or use asynchronous processing.

Read Solution arrow_forward
Governor Limit

Too Many DML Statements 150

Exceeded the 150 DML statement limit. Consolidate operations using lists and single calls.

Read Solution arrow_forward
Governor Limit

Too Many Future Calls 51

Exceeded 50 @future method calls per transaction. Use Batch Apex or Queueable instead.

Read Solution arrow_forward
Query Syntax

Too Many Query Rows 50001

Query returned more than 50,000 rows. Add filters or use LIMIT to paginate results.

Read Solution arrow_forward
Governor Limit

Too Many Query Rows Batch Apex

Batch job query returns more than 50,000,000 rows. Add filters or process in smaller batches.

Read Solution arrow_forward
Governor Limit

Too Many Queueable Jobs 51

Exceeded 50 Queueable job enqueues per transaction. Use chaining sparingly.

Read Solution arrow_forward
Governor Limit

Too Many SOQL Queries 101

Exceeded the 100 SOQL query limit per transaction. Learn bulkification patterns to fix this.

Read Solution arrow_forward
DML Error

Unable to Lock Row

Row-level locking contention when multiple operations target the same record simultaneously.

Read Solution arrow_forward
Syntax Error

Unexpected Token EOF

SOQL query is incomplete. Check for missing clauses, brackets, or punctuation.

Read Solution arrow_forward
DML Error

Mixed DML Operation

Setup and non-setup sObjects cannot be modified in the same transaction. Separate operations using @future or Queueable.

Read Solution arrow_forward
DML Error

DUPLICATE_VALUE: Duplicate Value On Record

A duplicate rule or unique field constraint is blocking the insert or update. Review duplicate rules and unique field configuration.

Read Solution arrow_forward
Runtime Error

ENTITY_IS_DELETED

The record you are trying to access has been deleted. Check for soft-deleted records or race conditions in your logic.

Read Solution arrow_forward
DML Error

REQUIRED_FIELD_MISSING

A required field was not populated before a DML operation. Ensure all mandatory fields are set on the sObject before insert or update.

Read Solution arrow_forward
DML Error

STRING_TOO_LONG

A field value exceeds its maximum allowed character length. Truncate the string or increase the field length in Object Manager.

Read Solution arrow_forward
DML Error

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

A trigger, workflow, or process automation is throwing an unhandled exception and blocking the DML. Inspect the referenced entity's automation.

Read Solution arrow_forward
Runtime Error

Visualforce View State Too Large

View state exceeds the 170 KB limit. Mark variables as transient, reduce collection sizes, and move heavy logic server-side.

Read Solution arrow_forward
Governor Limit

Too Many Email Invocations 11

Exceeded the 10 sendEmail() call limit per transaction. Consolidate email sends into a single Messaging.sendEmail() call with a list.

Read Solution arrow_forward
Runtime Error

Self Reference From Trigger

A trigger attempts to update the same record that fired it, creating a recursive loop. Use a static Boolean flag to prevent re-entry.

Read Solution arrow_forward
Runtime Error

INVALID_SESSION_ID

The session token has expired or is malformed. Re-authenticate your integration or refresh the OAuth access token before retrying.

Read Solution arrow_forward
Runtime Error

Record Type Not Found

The referenced Record Type does not exist or is inaccessible to the running user's profile. Verify Record Type assignment and profile permissions.

Read Solution arrow_forward
Governor Limit

Too Many Batch Jobs In The Apex Flex Queue

The Apex Flex Queue holds a maximum of 100 batch jobs. Monitor and stagger job submissions using Database.getAsyncApexJobId.

Read Solution arrow_forward
DML Error

INVALID_FIELD_FOR_INSERT_UPDATE

A read-only or non-creatable field was included in an insert or update. Remove formula fields, auto-number fields, and system fields from your DML.

Read Solution arrow_forward
Query Syntax

Foreign Key Relationship Not Supported

The relationship traversal used in the SOQL query is not supported for this object pairing. Restructure using a separate query and a Map.

Read Solution arrow_forward
Deployment

Deployment Component Failure

One or more metadata components failed validation during deployment. Review the component errors in the deployment detail page and fix each individually.

Read Solution arrow_forward